Skip to contentSkip to conversation

__bch_btree_iter_unlock+0x6a/0xb0 or OpenAFS bug?

DISCUSSION Karl-Philipp Richter 2 participants 4 messages Nov 16, 2016 bcache (block layer cache)

lore
Share & tools
lore
#0 lore raw

Hi,
Is

    [   67.449496] BUG: unable to handle kernel NULL pointer dereference
at           (null)
    [   67.450138] IP: [<ffffffffc0b02d97>] osi_get_fh+0x37/0x100 [openafs]
    [   67.450783] PGD 0
    [   67.451426] Oops: 0000 [#1] SMP
    [   67.452053] Modules linked in: snd_hda_codec_hdmi

snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd soundcore openafs(POE) iptable_filter bridge stp llc pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) bnep binfmt_misc rtsx_usb_ms memstick intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel nls_iso8859_1 kvm arc4 irqbypass crct10dif_pclmul crc32_pclmul iwldvm ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw ablk_helper cryptd intel_cstate mac80211 btusb btrtl btbcm btintel intel_rapl_perf cdc_ether uvcvideo usbnet bluetooth r8152 videobuf2_vmalloc videobuf2_memops input_leds videobuf2_v4l2 iwlwifi joydev videobuf2_core videodev hid_multitouch serio_raw media cfg80211 ideapad_laptop sparse_keymap

    [   67.455055]  wmi mei_me mei mac_hid shpchp lpc_ich sunrpc coda

parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb hid_generic usbhid hid i915 psmouse i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm r8169 video mii fjes ahci libahci

    [   67.457524] CPU: 5 PID: 15383 Comm: afsd Tainted: P        W  OE
 5.8.0+ #4
    [   67.458361] Hardware name: LENOVO 20221/INVALID, BIOS
71CN51WW(V1.21) 07/12/2013
    [   67.459202] task: ffff950fa9304740 task.stack: ffff950fa6c3c000
    [   67.460024] RIP: 0010:[<ffffffffc0b02d97>]  [<ffffffffc0b02d97>]
osi_get_fh+0x37/0x100 [openafs]
    [   67.460892] RSP: 0018:ffff950fa6c3fc38  EFLAGS: 00010286
    [   67.461726] RAX: 0000000000000000 RBX: ffff950fa9304740 RCX:
0000000000000000
    [   67.462568] RDX: 000000000000000a RSI: ffffffffc0b2b9a0 RDI:
ffff950f5b809840
    [   67.463449] RBP: ffff950fa6c3fc48 R08: 000000000001cb00 R09:
ffffffff8ec3dc24
    [   67.464298] R10: ffff950fbf35cb00 R11: ffffea000f58ca00 R12:
0000561ce8ca4680
    [   67.465152] R13: ffff950f75923800 R14: 0000000000000007 R15:
0000000000000000
    [   67.466001] FS:  00007fcdfde66700(0000) GS:ffff950fbf340000(0000)
knlGS:0000000000000000
    [   67.466859] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [   67.467739] CR2: 0000000000000000 CR3: 00000003dce61000 CR4:
00000000001406e0
    [   67.468607] Stack:
    [   67.469481]  0000000a75923800 0000000015c5fb9b ffff950fa6c3fc70
ffffffffc0b0322e
    [   67.470381]  00000000720a7000 ffff950f5b809840 0000000015c5fb9b
ffff950fa6c3fcb0
    [   67.471318]  ffffffffc0ab2727 0000000000000000 ffff950fa6c3fc98
ffffffffc0ab90a0
    [   67.472219] Call Trace:
    [   67.473117]  [<ffffffffc0b0322e>] osi_InitCacheInfo+0x5e/0xa0
[openafs]
    [   67.474032]  [<ffffffffc0ab2727>] afs_InitCacheInfo+0x37/0x130
[openafs]
    [   67.474952]  [<ffffffffc0ab90a0>] ?
afs_osi_Alloc.part.0+0x20/0x30 [openafs]
    [   67.475883]  [<ffffffffc0b0f93d>] afs_syscall_call+0xe0d/0x1be0
[openafs]
    [   67.476810]  [<ffffffff8ec38154>] ? terminate_walk+0x64/0xd0
    [   67.477707]  [<ffffffff8ec3c8e9>] ? path_openat+0x419/0x15e0
    [   67.478607]  [<ffffffff8f0d04ea>] ?
    [   67.479550]  [<ffffffffc0abf629>] afs_syscall+0x319/0x5b0 [openafs]
    [   67.480444]  [<ffffffff8ec428a0>] ? iterate_dir+0x190/0x190
    [   67.481337]  [<ffffffffc0b057e6>] afs_unlocked_ioctl+0x76/0xd0
[openafs]
    [   67.482224]  [<ffffffff8eca0988>] proc_reg_unlocked_ioctl+0x48/0x70
    [   67.483136]  [<ffffffff8ec4212f>] do_vfs_ioctl+0x9f/0x5f0
    [   67.484031]  [<ffffffff8ec3dc24>] ? putname+0x54/0x60
    [   67.484925]  [<ffffffff8ec426f9>] SyS_ioctl+0x79/0x90
    [   67.485826]  [<ffffffff8f2ae5b6>] entry_SYSCALL_64_fastpath+0x1e/0xa8
    [   67.486698] Code: 89 e5 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48
89 45 f8 31 c0 8b 05 f9 5c 02 00 85 c0 0f 4e c2 89 45 f4 48 8b 47 68 48
8b 40 48 <48> 8b 00 48 85 c0 74 45 31 c9 48 8b 7f 30 48 8d 55 f4 ff d0 3d
    [   67.488707] RIP  [<ffffffffc0b02d97>] osi_get_fh+0x37/0x100 [openafs]
    [   67.489652]  RSP <ffff950fa6c3fc38>
    [   67.490574] CR2: 0000000000000000
    [   67.491537] ---[ end trace f3581cabbf420593 ]---

A bcachefs or an OpenAFS bug? I only experience this with the OpenAFS cache on a one-partition bcachefs mount.

experienced with origin-258162-gda3dd9e on Ubuntu 16.10

-Kalle

-Kalle

#1 lore raw
Quoted 2 lines · Karl-Philipp Richter

A bcachefs or an OpenAFS bug? I only experience this with the OpenAFS cache on a one-partition bcachefs mount.

Where are you getting __bch_btree_iter_unlock() from?

#2 lore raw

Am 16.11.2016 um 15:40 schrieb Kent Overstreet:

Quoted 3 lines
Quoted 2 lines

A bcachefs or an OpenAFS bug? I only experience this with the OpenAFS

Quoted 1 line

cache on a one-partition bcachefs mount.

Where are you getting __bch_btree_iter_unlock() from?

From the right backtrace

    [   65.943980] BUG: unable to handle kernel NULL pointer dereference
at           (null)
    [   65.944607] IP: [<ffffffffc0dc9d97>] osi_get_fh+0x37/0x100 [openafs]
    [   65.945234] PGD 0
    [   65.945857] Oops: 0000 [#1] SMP
    [   65.946451] Modules linked in: snd_hda_codec_hdmi

snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd soundcore openafs(POE) iptable_filter bridge stp llc pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) bnep vboxdrv(OE) binfmt_misc rtsx_usb_ms memstick intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp nls_iso8859_1 kvm_intel kvm arc4 irqbypass crct10dif_pclmul crc32_pclmul iwldvm ghash_clmulni_intel aesni_intel aes_x86_64 glue_helper lrw ablk_helper cryptd intel_cstate mac80211 cdc_ether usbnet r8152 uvcvideo btusb intel_rapl_perf btrtl btbcm videobuf2_vmalloc videobuf2_memops btintel videobuf2_v4l2 videobuf2_core bluetooth videodev iwlwifi media hid_multitouch cfg80211 joydev input_leds serio_raw ideapad_laptop sparse_keymap

    [   65.949378]  wmi mei_me mei mac_hid lpc_ich shpchp sunrpc coda

parport_pc ppdev lp parport ip_tables x_tables autofs4 btrfs xor raid6_pq rtsx_usb_sdmmc rtsx_usb hid_generic usbhid hid i915 psmouse r8169 i2c_algo_bit mii drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm video fjes ahci libahci

    [   65.951897] CPU: 7 PID: 15519 Comm: afsd Tainted: P        W  OE
 5.8.0+ #4
    [   65.952709] Hardware name: LENOVO 20221/INVALID, BIOS
71CN51WW(V1.21) 07/12/2013
    [   65.953520] task: ffff974ca389aac0 task.stack: ffff974ca9c8c000
    [   65.954347] RIP: 0010:[<ffffffffc0dc9d97>]  [<ffffffffc0dc9d97>]
osi_get_fh+0x37/0x100 [openafs]
    [   65.955180] RSP: 0018:ffff974ca9c8fc38  EFLAGS: 00010286
    [   65.956006] RAX: 0000000000000000 RBX: ffff974ca389aac0 RCX:
0000000000000000
    [   65.956844] RDX: 000000000000000a RSI: ffffffffc0df29a0 RDI:
ffff974c57177540
    [   65.957691] RBP: ffff974ca9c8fc48 R08: 000000000001cb00 R09:
ffffffff8f43dc24
    [   65.958538] R10: ffff974cbf3dcb00 R11: ffffea000f615600 R12:
0000565285b7a680
    [   65.959398] R13: ffff974ca6def400 R14: 0000000000000007 R15:
0000000000000000
    [   65.960258] FS:  00007f2a06697700(0000) GS:ffff974cbf3c0000(0000)
knlGS:0000000000000000
    [   65.961120] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [   65.962019] CR2: 0000000000000000 CR3: 00000003eab58000 CR4:
00000000001406e0
    [   65.962925] Stack:
    [   65.963794]  0000000aa6def400 00000000c0c2219a ffff974ca9c8fc70
ffffffffc0dca22e
    [   65.964692]  00000000a44cf900 ffff974c57177540 00000000c0c2219a
ffff974ca9c8fcb0
    [   65.965587]  ffffffffc0d79727 0000000000000000 ffff974ca9c8fc98
ffffffffc0d800a0
    [   65.966492] Call Trace:
    [   65.967393]  [<ffffffffc0dca22e>] osi_InitCacheInfo+0x5e/0xa0
[openafs]
    [   65.968310]  [<ffffffffc0d79727>] afs_InitCacheInfo+0x37/0x130
[openafs]
    [   65.969224]  [<ffffffffc0d800a0>] ?
afs_osi_Alloc.part.0+0x20/0x30 [openafs]
    [   65.970161]  [<ffffffffc0dd693d>] afs_syscall_call+0xe0d/0x1be0
[openafs]
    [   65.971082]  [<ffffffff8f438154>] ? terminate_walk+0x64/0xd0
    [   65.971980]  [<ffffffff8f43c8e9>] ? path_openat+0x419/0x15e0
    [   65.972874]  [<ffffffff8f8d04ea>] ? __bch_btree_iter_unlock+0x6a/0xb0
    [   65.973777]  [<ffffffffc0d86629>] afs_syscall+0x319/0x5b0 [openafs]
    [   65.974671]  [<ffffffff8f4428a0>] ? iterate_dir+0x190/0x190
    [   65.975565]  [<ffffffffc0dcc7e6>] afs_unlocked_ioctl+0x76/0xd0
[openafs]
    [   65.976457]  [<ffffffff8f4a0988>] proc_reg_unlocked_ioctl+0x48/0x70
    [   65.977350]  [<ffffffff8f44212f>] do_vfs_ioctl+0x9f/0x5f0
    [   65.978273]  [<ffffffff8f43dc24>] ? putname+0x54/0x60
    [   65.979167]  [<ffffffff8f4426f9>] SyS_ioctl+0x79/0x90
    [   65.980090]  [<ffffffff8faae5b6>] entry_SYSCALL_64_fastpath+0x1e/0xa8
    [   65.980970] Code: 89 e5 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48
89 45 f8 31 c0 8b 05 f9 5c 02 00 85 c0 0f 4e c2 89 45 f4 48 8b 47 68 48
8b 40 48 <48> 8b 00 48 85 c0 74 45 31 c9 48 8b 7f 30 48 8d 55 f4 ff d0 3d
    [   65.983011] RIP  [<ffffffffc0dc9d97>] osi_get_fh+0x37/0x100 [openafs]
    [   65.983954]  RSP <ffff974ca9c8fc38>
    [   65.984873] CR2: 0000000000000000
    [   65.985816] ---[ end trace c635bc3382137541 ]---

Sorry for the confusion.

-Kalle

#3 lore raw
Quoted 7 lines · Karl-Philipp Richter

Am 16.11.2016 um 15:40 schrieb Kent Overstreet:

Quoted 3 lines
Quoted 2 lines

A bcachefs or an OpenAFS bug? I only experience this with the OpenAFS

Quoted 1 line

cache on a one-partition bcachefs mount.

Where are you getting __bch_btree_iter_unlock() from?

From the right backtrace

Ah ok. That's OpenAFS, not bcachefs - the backtrace code isn't reliable, it just finds anything on the stack that looks like a return address.