linux-nvdimm.lists.01.org archive mirror
 help / color / mirror / Atom feed
* nfit_test: issue #3: BUG: kernel NULL pointer dereference, address: 0000000000000018
@ 2020-03-12 14:59 Dorau, Lukasz
  2020-03-12 15:06 ` Dorau, Lukasz
  0 siblings, 1 reply; 9+ messages in thread
From: Dorau, Lukasz @ 2020-03-12 14:59 UTC (permalink / raw)
  To: linux-nvdimm; +Cc: Slusarz, Marcin

Hi,

I have inserted the 'nfit_test' module, removed it and reinserted it again (like in the previous e-mail " nfit_test: issue #2: modprobe: ERROR: could not insert 'nfit_test': Unknown symbol in module, or unknown parameter ") and called:
$ ndctl disable-region all
And got the following oops:

[ 3079.971649] nfit_test: mcsafe_test: disabled, skip.
[ 3080.030189] nfit_test nfit_test.0: failed to evaluate _FIT
[ 3080.039150] nfit_test nfit_test.1: Error found in NVDIMM nmem4 flags: save_fail restore_fail flush_fail not_armed
[ 3080.039159] nfit_test nfit_test.1: Error found in NVDIMM nmem5 flags: map_fail
[ 3080.039696] nd_pmem namespace6.0: region6 read-only, marking pmem6 read-only
[ 3080.039805] pmem6: detected capacity change from 0 to 33554432
[ 3080.039806] pmem7: detected capacity change from 0 to 4194304
[ 3080.243372] pmem7: detected capacity change from 0 to 4194304
[ 3080.251781] nd_pmem namespace6.0: region6 read-only, marking pmem6 read-only
[ 3080.251871] pmem6: detected capacity change from 0 to 33554432
[ 3080.508112] BUG: kernel NULL pointer dereference, address: 0000000000000018
[ 3080.508117] #PF: supervisor read access in kernel mode
[ 3080.508118] #PF: error_code(0x0000) - not-present page
[ 3080.508120] PGD 0 P4D 0 
[ 3080.508123] Oops: 0000 [#1] PREEMPT SMP PTI
[ 3080.508126] CPU: 3 PID: 80123 Comm: pmempool Tainted: G           O      5.5.8-arch1-1-bb #1
[ 3080.508128] Hardware name: System manufacturer System Product Name/RAMPAGE IV EXTREME, BIOS 4701 11/18/2013
[ 3080.508133] RIP: 0010:dev_dax_huge_fault+0x2b3/0x570 [device_dax]
[ 3080.508136] Code: 37 48 c1 ee 0c 48 01 f0 48 ba ff ff ff ff ff ff 0f 00 49 c1 ef 0c 48 21 d3 49 01 c7 48 c1 e3 06 48 03 1d 98 54 0d db 48 89 da <48> 83 7a 18 00 75 10 49 8b 8c 24 f0 00 00 00 48 89 42 20 48 89 4a
[ 3080.508137] RSP: 0000:ffffb44406bdfdb0 EFLAGS: 00010247
[ 3080.508139] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 3080.508141] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff924c3d789900
[ 3080.508142] RBP: ffffb44406bdfe28 R08: 000709b000000000 R09: 00000000001baf04
[ 3080.508144] R10: ffff924cbfffc000 R11: 0000000000033160 R12: ffff924c48dd4200
[ 3080.508145] R13: 0000000000000001 R14: 0000000000000100 R15: 0000000000000001
[ 3080.508147] FS:  00007fb40da5c900(0000) GS:ffff924cafac0000(0000) knlGS:0000000000000000
[ 3080.508149] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3080.508151] CR2: 0000000000000018 CR3: 00000003cab58003 CR4: 00000000000606e0
[ 3080.508152] Call Trace:
[ 3080.508161]  __do_fault+0x38/0x120
[ 3080.508165]  __handle_mm_fault+0xff2/0x1580
[ 3080.508170]  ? big_key_read+0x1b0/0x1b0
[ 3080.508174]  handle_mm_fault+0xce/0x200
[ 3080.508178]  do_user_addr_fault+0x1ef/0x470
[ 3080.508184]  page_fault+0x34/0x40
[ 3080.508187] RIP: 0033:0x7fb40de6cb7c
[ 3080.508189] Code: c3 48 81 fa 00 08 00 00 77 a1 48 83 fa 40 77 16 f3 0f 7f 07 f3 0f 7f 47 10 f3 0f 7f 44 17 f0 f3 0f 7f 44 17 e0 c3 48 8d 4f 40 <f3> 0f 7f 07 48 83 e1 c0 f3 0f 7f 44 17 f0 f3 0f 7f 47 10 f3 0f 7f
[ 3080.508190] RSP: 002b:00007ffe85e8e758 EFLAGS: 00010206
[ 3080.508192] RAX: 00007fb40ba00000 RBX: 0000000000000000 RCX: 00007fb40ba00040
[ 3080.508193] RDX: 0000000000200000 RSI: 0000000000000000 RDI: 00007fb40ba00000
[ 3080.508195] RBP: 0000000001e00000 R08: 000000000000000a R09: 0000000000000000
[ 3080.508196] R10: 0000000000000001 R11: 0000000000000206 R12: 000000000000000a
[ 3080.508197] R13: 0000000000000000 R14: 00007fb40ba00000 R15: 0000000000000000
[ 3080.508201] Modules linked in: kmem nfit_test(O) nfit(O) nd_blk dax_pmem_compat(O) device_dax(O) dax_pmem(O) dax_pmem_core(O) nd_pmem(O) nd_btt(O) libnvdimm(O) nfit_test_iomap(O) encrypted_keys trusted tpm rng_core fuse xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c br_netfilter bridge stp llc overlay intel_rapl_msr intel_rapl_common snd_hda_codec_hdmi x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm snd_hda_codec_realtek snd_hda_codec_generic irqbypass nouveau ledtrig_audio eeepc_wmi snd_hda_intel btusb asus_wmi snd_intel_dspcfg btrtl iTCO_wdt battery crct10dif_pclmul crc32_pclmul btbcm snd_hda_codec iTCO_vendor_support sparse_keymap btintel wmi_bmof ghash_clmulni_intel bluetooth mxm_wmi aesni_intel snd_hda_core crypto_simd i2c_algo_bit cryptd ttm glue_helper intel_cstate snd_hwdep intel_uncore ecdh_generic dm_mod input_leds intel_rapl_perf
  snd_pcm
[ 3080.508235]  joydev mousedev rfkill drm_kms_helper pcspkr i2c_i801 ecc snd_timer lpc_ich e1000e snd mei_me syscopyarea sysfillrect sysimgblt mei fb_sys_fops soundcore wmi evdev mac_hid drm sg crypto_user agpgart ip_tables x_tables ext4 crc32c_generic crc16 mbcache jbd2 hid_generic usbhid hid sr_mod cdrom sd_mod ahci libahci libata crc32c_intel xhci_pci scsi_mod xhci_hcd ehci_pci ehci_hcd [last unloaded: nfit]
[ 3080.508258] CR2: 0000000000000018
[ 3080.508260] ---[ end trace 4485b40fc6cb1bcb ]---
[ 3080.508264] RIP: 0010:dev_dax_huge_fault+0x2b3/0x570 [device_dax]
[ 3080.508266] Code: 37 48 c1 ee 0c 48 01 f0 48 ba ff ff ff ff ff ff 0f 00 49 c1 ef 0c 48 21 d3 49 01 c7 48 c1 e3 06 48 03 1d 98 54 0d db 48 89 da <48> 83 7a 18 00 75 10 49 8b 8c 24 f0 00 00 00 48 89 42 20 48 89 4a
[ 3080.508268] RSP: 0000:ffffb44406bdfdb0 EFLAGS: 00010247
[ 3080.508270] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 3080.508271] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff924c3d789900
[ 3080.508272] RBP: ffffb44406bdfe28 R08: 000709b000000000 R09: 00000000001baf04
[ 3080.508274] R10: ffff924cbfffc000 R11: 0000000000033160 R12: ffff924c48dd4200
[ 3080.508275] R13: 0000000000000001 R14: 0000000000000100 R15: 0000000000000001
[ 3080.508277] FS:  00007fb40da5c900(0000) GS:ffff924cafac0000(0000) knlGS:0000000000000000
[ 3080.508279] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3080.508280] CR2: 0000000000000018 CR3: 00000003cab58003 CR4: 00000000000606e0

$ ps aux | grep ndctl
root       25958  0.0  0.0   6396  1732 pts/0    D+   15:40   0:00 ndctl disable-region all
root       26409  0.0  0.0   6396  1800 pts/0    D+   15:43   0:00 ndctl disable-region all

$ sudo cat /proc/25958/stack
[<0>] __synchronize_srcu+0x8e/0xc0
[<0>] kill_dax+0x22/0x70
[<0>] pmem_release_disk+0x12/0x40 [nd_pmem]
[<0>] release_nodes+0x19b/0x1e0
[<0>] device_release_driver_internal+0xf4/0x1c0
[<0>] unbind_store+0xef/0x120
[<0>] kernfs_fop_write+0xce/0x1b0
[<0>] vfs_write+0xb6/0x1a0
[<0>] ksys_write+0x67/0xe0
[<0>] do_syscall_64+0x4e/0x150
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9

$ sudo cat /proc/26409/stack
[<0>] flush_namespaces+0x15/0x30 [libnvdimm]
[<0>] device_for_each_child+0x69/0xa0
[<0>] flush_regions_dimms+0x33/0x40 [libnvdimm]
[<0>] device_for_each_child+0x69/0xa0
[<0>] wait_probe_show+0x3d/0x60 [libnvdimm]
[<0>] dev_attr_show+0x19/0x40
[<0>] sysfs_kf_seq_show+0x9b/0xf0
[<0>] seq_read+0xcd/0x440
[<0>] vfs_read+0x9d/0x150
[<0>] ksys_read+0x67/0xe0
[<0>] do_syscall_64+0x4e/0x150
[<0>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
 
--
Lukasz
_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-03-17 16:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-12 14:59 nfit_test: issue #3: BUG: kernel NULL pointer dereference, address: 0000000000000018 Dorau, Lukasz
2020-03-12 15:06 ` Dorau, Lukasz
2020-03-12 17:08   ` Dan Williams
2020-03-13 10:06     ` Dorau, Lukasz
2020-03-13 15:49       ` Dan Williams
2020-03-16  8:58         ` Dorau, Lukasz
2020-03-17  8:26           ` Dan Williams
2020-03-17  9:09             ` Dorau, Lukasz
2020-03-17 16:14               ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).