Score:0

Kernel panic on read syscall. Could the RAM be broken?

ec flag

I have an issue with a computer, where it randomly crashes sometimes, completely out of nowhere, and has to be force-shutdown to be used again. After looking into the kernel logs using journalctl -k -b -1, a possible culprit was spotted, as seen in the kernel log below. It seems that when processing the __x64_sys_read function, which directly corresponds to the read syscall to read from file descriptors, a page fault is produced that causes a crash and kernel panic. I strongly suspect this issue to be hardware-related. Is this issue caused by broken RAM or a broken disk? Is it a software issue with the kernel or a driver?

The kernel log:

Nov 09 19:08:48 computer kernel: BUG: unable to handle page fault for address: 00000000f00000d8
Nov 09 19:08:48 computer kernel: #PF: supervisor read access in kernel mode
Nov 09 19:08:48 computer kernel: #PF: error_code(0x0000) - not-present page
Nov 09 19:08:48 computer kernel: PGD 0 P4D 0 
Nov 09 19:08:48 computer kernel: Oops: 0000 [#1] SMP NOPTI
Nov 09 19:08:48 computer kernel: CPU: 3 PID: 35978 Comm: Discord Tainted: P           OE     5.11.0-38-generic #42-Ubuntu
Nov 09 19:08:48 computer kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450 Pro4, BIOS P1.50 11/05/2018
Nov 09 19:08:48 computer kernel: RIP: 0010:__handle_mm_fault+0x5b/0x7c0
Nov 09 19:08:48 computer kernel: Code: 00 00 00 48 89 45 d0 31 c0 4c 89 bd 70 ff ff ff f3 48 ab 89 95 78 ff ff ff 49 8b 97 a0 00 00 00 b8 c0 0c 00 00 48 85 d2 74 0c <48> 8b 82 d8 00 00 00 8b 40 18 0c c0 89 85 7c ff ff ff 41 f6 47 52
Nov 09 19:08:48 computer kernel: RSP: 0018:ffffbf17cf423b38 EFLAGS: 00010206
Nov 09 19:08:48 computer kernel: RAX: 0000000000000cc0 RBX: 0000000000000215 RCX: 0000000000000000
Nov 09 19:08:48 computer kernel: RDX: 00000000f0000000 RSI: 00003ffc00aa8000 RDI: ffffbf17cf423ba8
Nov 09 19:08:48 computer kernel: RBP: ffffbf17cf423bd8 R08: 0000000000000001 R09: 0000000000000000
Nov 09 19:08:48 computer kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000215
Nov 09 19:08:48 computer kernel: R13: 00003ffc00aa8000 R14: ffffbf17cf423ca8 R15: ffff9cf752488750
Nov 09 19:08:48 computer kernel: FS:  00007fa0fdfeedc0(0000) GS:ffff9cfa4ecc0000(0000) knlGS:0000000000000000
Nov 09 19:08:48 computer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 09 19:08:48 computer kernel: CR2: 00000000f00000d8 CR3: 00000002741e0000 CR4: 00000000003506e0
Nov 09 19:08:48 computer kernel: Call Trace:
Nov 09 19:08:48 computer kernel:  handle_mm_fault+0xd7/0x2b0
Nov 09 19:08:48 computer kernel:  do_user_addr_fault+0x1a0/0x450
Nov 09 19:08:48 computer kernel:  exc_page_fault+0x69/0x150
Nov 09 19:08:48 computer kernel:  asm_exc_page_fault+0x1e/0x30
Nov 09 19:08:48 computer kernel: RIP: 0010:copy_user_generic_string+0x2c/0x40
Nov 09 19:08:48 computer kernel: Code: cb 83 fa 08 72 27 89 f9 83 e1 07 74 15 83 e9 08 f7 d9 29 ca 8a 06 88 07 48 ff c6 48 ff c7 ff c9 75 f2 89 d1 c1 e9 03 83 e2 07 <f3> 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01
Nov 09 19:08:48 computer kernel: RSP: 0018:ffffbf17cf423d50 EFLAGS: 00050202
Nov 09 19:08:48 computer kernel: RAX: 00007ffffffff000 RBX: 00000000000005a9 RCX: 00000000000000b5
Nov 09 19:08:48 computer kernel: RDX: 0000000000000001 RSI: ffff9cf79da41000 RDI: 00003ffc00aa8000
Nov 09 19:08:48 computer kernel: RBP: ffffbf17cf423d58 R08: ffff9cf79da41000 R09: 0000000000000001
Nov 09 19:08:48 computer kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 00000000000005a9
Nov 09 19:08:48 computer kernel: R13: ffffbf17cf423e38 R14: ffffbf17cf423e28 R15: 00000000000005a9
Nov 09 19:08:48 computer kernel:  ? copyout+0x31/0x50
Nov 09 19:08:48 computer kernel:  _copy_to_iter+0x91/0x300
Nov 09 19:08:48 computer kernel:  ? __check_object_size.part.0+0x128/0x150
Nov 09 19:08:48 computer kernel:  seq_read_iter+0x467/0x4b0
Nov 09 19:08:48 computer kernel:  seq_read+0xfa/0x140
Nov 09 19:08:48 computer kernel:  vfs_read+0xb5/0x1c0
Nov 09 19:08:48 computer kernel:  ksys_read+0x67/0xe0
Nov 09 19:08:48 computer kernel:  __x64_sys_read+0x1a/0x20
Nov 09 19:08:48 computer kernel:  do_syscall_64+0x38/0x90
Nov 09 19:08:48 computer kernel:  entry_SYSCALL_64_after_hwframe+0x44/0xa9
Nov 09 19:08:48 computer kernel: RIP: 0033:0x7fa100a8218c
Nov 09 19:08:48 computer kernel: Code: ec 28 48 89 54 24 18 48 89 74 24 10 89 7c 24 08 e8 a9 fc ff ff 48 8b 54 24 18 48 8b 74 24 10 41 89 c0 8b 7c 24 08 31 c0 0f 05 <48> 3d 00 f0 ff ff 77 34 44 89 c7 48 89 44 24 08 e8 ff fc ff ff 48
Nov 09 19:08:48 computer kernel: RSP: 002b:00007fffc7730680 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
Nov 09 19:08:48 computer kernel: RAX: ffffffffffffffda RBX: 00007fffc77329f8 RCX: 00007fa100a8218c
Nov 09 19:08:48 computer kernel: RDX: 0000000000002000 RSI: 00003ffc00aa8000 RDI: 0000000000000065
Nov 09 19:08:48 computer kernel: RBP: 00007fffc77328d0 R08: 0000000000000000 R09: ffffffffffffffff
Nov 09 19:08:48 computer kernel: R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000002
Nov 09 19:08:48 computer kernel: R13: 00007fffc7732938 R14: 0000559d1ba414e0 R15: 00007fffc77329a8
Nov 09 19:08:48 computer kernel: Modules linked in: cpuid binfmt_misc nls_iso8859_1 nvidia_uvm(POE) nvidia_drm(POE) nvidia_modeset(POE) snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi intel_rapl_msr snd_hda_intel snd_intel_dspcfg soundwire_intel soundwire_generic_allocation soundwire_cadence snd_hda_codec snd_hda_core nvidia(POE) soundwire_bus snd_usb_audio snd_soc_core snd_usbmidi_lib intel_rapl_common snd_compress snd_hwdep ac97_bus mc snd_pcm_dmaengine snd_pcm edac_mce_amd snd_seq_midi snd_seq_midi_event kvm_amd snd_rawmidi kvm snd_seq crct10dif_pclmul drm_kms_helper ghash_clmulni_intel aesni_intel snd_seq_device cec snd_timer crypto_simd rc_core cryptd fb_sys_fops glue_helper syscopyarea sysfillrect snd input_leds joydev rapl wmi_bmof efi_pstore sysimgblt soundcore ccp k10temp mac_hid sch_fq_codel nct6775 hwmon_vid msr parport_pc ppdev lp parport drm ip_tables x_tables autofs4 hid_generic usbhid hid crc32_pclmul r8169 ahci xhci_pci gpio_amdpt i2c_piix4 realtek libahci
Nov 09 19:08:48 computer kernel:  xhci_pci_renesas wmi gpio_generic
Nov 09 19:08:48 computer kernel: CR2: 00000000f00000d8
Nov 09 19:08:48 computer kernel: ---[ end trace 590d2940425a8404 ]---
Nov 09 19:08:48 computer kernel: RIP: 0010:__handle_mm_fault+0x5b/0x7c0
Nov 09 19:08:48 computer kernel: Code: 00 00 00 48 89 45 d0 31 c0 4c 89 bd 70 ff ff ff f3 48 ab 89 95 78 ff ff ff 49 8b 97 a0 00 00 00 b8 c0 0c 00 00 48 85 d2 74 0c <48> 8b 82 d8 00 00 00 8b 40 18 0c c0 89 85 7c ff ff ff 41 f6 47 52
Nov 09 19:08:48 computer kernel: RSP: 0018:ffffbf17cf423b38 EFLAGS: 00010206
Nov 09 19:08:48 computer kernel: RAX: 0000000000000cc0 RBX: 0000000000000215 RCX: 0000000000000000
Nov 09 19:08:48 computer kernel: RDX: 00000000f0000000 RSI: 00003ffc00aa8000 RDI: ffffbf17cf423ba8
Nov 09 19:08:48 computer kernel: RBP: ffffbf17cf423bd8 R08: 0000000000000001 R09: 0000000000000000
Nov 09 19:08:48 computer kernel: R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000215
Nov 09 19:08:48 computer kernel: R13: 00003ffc00aa8000 R14: ffffbf17cf423ca8 R15: ffff9cf752488750
Nov 09 19:08:48 computer kernel: FS:  00007fa0fdfeedc0(0000) GS:ffff9cfa4ecc0000(0000) knlGS:0000000000000000
Nov 09 19:08:48 computer kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Nov 09 19:08:48 computer kernel: CR2: 00000000f00000d8 CR3: 00000002741e0000 CR4: 00000000003506e0
Nmath avatar
ng flag
There are utilities to check your RAM like `memtest` as a GRUB option and utilities to monitor and test your hard drives like S.M.A.R.T. You should run these utilities and add the results to your question.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.