koverstreet / bcachefs

Other
695 stars 72 forks source link

Oops: bch2_set_bucket_needs_journal_commit+0x11d/0x320 #345

Closed marcin-github closed 2 years ago

marcin-github commented 2 years ago

commit 5d9821e5caba

2022-01-15T20:19:04.269695+01:00 zserwerek kernel: [12479.031502] perf: interrupt took too long (4946 > 4935), lowering kernel.perf_event_max_sample_rate to 40250
2022-01-15T23:50:16.582375+01:00 zserwerek kernel: [25151.456406] BUG: kernel NULL pointer dereference, address: 0000000000000000
2022-01-15T23:50:16.582387+01:00 zserwerek kernel: [25151.458916] #PF: supervisor read access in kernel mode
2022-01-15T23:50:16.582388+01:00 zserwerek kernel: [25151.460248] #PF: error_code(0x0000) - not-present page
2022-01-15T23:50:16.582389+01:00 zserwerek kernel: [25151.461490] PGD 0 P4D 0
2022-01-15T23:50:16.582390+01:00 zserwerek kernel: [25151.462842] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC NOPTI
2022-01-15T23:50:16.582391+01:00 zserwerek kernel: [25151.464194] CPU: 1 PID: 6730 Comm: rsync Not tainted 5.15.0-01118-g5d9821e5caba #22
2022-01-15T23:50:16.582391+01:00 zserwerek kernel: [25151.465578] Hardware name: MSI MS-7982/B150M PRO-VDH (MS-7982), BIOS 3.H0 07/10/2018
2022-01-15T23:50:16.582392+01:00 zserwerek kernel: [25151.466957] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
2022-01-15T23:50:16.582395+01:00 zserwerek kernel: [25151.468362] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 99 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 99    mov    $0xffffffff99e39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
2022-01-15T23:50:16.582396+01:00 zserwerek kernel: [25151.469860] RSP: 0018:ffffaa4c412cb448 EFLAGS: 00010246
2022-01-15T23:50:16.582396+01:00 zserwerek kernel: [25151.471354] RAX: ffffffff99e39d8c RBX: 0000000000000000 RCX: 0000000000020df2
2022-01-15T23:50:16.582397+01:00 zserwerek kernel: [25151.472874] RDX: 000000009c56f6c7 RSI: ffffffff99e39d8c RDI: 0000000000754df5
2022-01-15T23:50:16.582397+01:00 zserwerek kernel: [25151.474412] RBP: ffffaa4c412cb4a0 R08: 0000000000000007 R09: ffff8d7aa1465f50
2022-01-15T23:50:16.582398+01:00 zserwerek kernel: [25151.475955] R10: 0000000000754df5 R11: 00000000a6267ba9 R12: 0000000000000000
2022-01-15T23:50:16.582398+01:00 zserwerek kernel: [25151.477496] R13: 0000000000020df5 R14: ffff8d7bcbd80000 R15: ffff8d7aa1465f00
2022-01-15T23:50:16.582399+01:00 zserwerek kernel: [25151.479038] FS:  00007f99f59dbf00(0000) GS:ffff8d7c1be80000(0000) knlGS:0000000000000000
2022-01-15T23:50:16.582399+01:00 zserwerek kernel: [25151.480605] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-15T23:50:16.582400+01:00 zserwerek kernel: [25151.482170] CR2: 0000000000000000 CR3: 000000000c9c6006 CR4: 00000000003706e0
2022-01-15T23:50:16.582401+01:00 zserwerek kernel: [25151.483778] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-15T23:50:16.582401+01:00 zserwerek kernel: [25151.485355] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-01-15T23:50:16.582402+01:00 zserwerek kernel: [25151.486932] Call Trace:
2022-01-15T23:50:16.582403+01:00 zserwerek kernel: [25151.488466] ? bch2_alloc_unpack (fs/bcachefs/alloc_background.c:251)
2022-01-15T23:50:16.582403+01:00 zserwerek kernel: [25151.490372] bch2_mark_alloc.isra.0 (fs/bcachefs/buckets.c:541)
2022-01-15T23:50:16.582404+01:00 zserwerek kernel: [25151.491871] ? bch2_extent_crc_unpack (fs/bcachefs/extents.h:133)
2022-01-15T23:50:16.582405+01:00 zserwerek kernel: [25151.493390] bch2_mark_key (fs/bcachefs/buckets.c:1245)
2022-01-15T23:50:16.582405+01:00 zserwerek kernel: [25151.494992] ? bch2_trans_mark_pointer.constprop.0 (fs/bcachefs/buckets.c:1459)
2022-01-15T23:50:16.582406+01:00 zserwerek kernel: [25151.496562] bch2_mark_update (fs/bcachefs/buckets.c:1288)
2022-01-15T23:50:16.582406+01:00 zserwerek kernel: [25151.498514] ? bch2_trans_fs_usage_apply (./arch/x86/include/asm/preempt.h:103 ./include/linux/percpu-rwsem.h:121 fs/bcachefs/buckets.c:1397)
2022-01-15T23:50:16.582407+01:00 zserwerek kernel: [25151.500078] do_bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:513 fs/bcachefs/btree_update_leaf.c:708)
2022-01-15T23:50:16.582407+01:00 zserwerek kernel: [25151.501601] ? bch2_trans_mark_extent (fs/bcachefs/buckets.c:1580)
2022-01-15T23:50:16.582409+01:00 zserwerek kernel: [25151.503132] ? btree_path_set_pos (fs/bcachefs/bset.h:470 fs/bcachefs/btree_iter.c:1074 fs/bcachefs/btree_iter.c:1758)
2022-01-15T23:50:16.582409+01:00 zserwerek kernel: [25151.504799] __bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:1042 (discriminator 2))
2022-01-15T23:50:16.582410+01:00 zserwerek kernel: [25151.506681] bch2_inode_delete_keys.isra.0 (fs/bcachefs/btree_update.h:107 fs/bcachefs/inode.c:623)
2022-01-15T23:50:16.582410+01:00 zserwerek kernel: [25151.508389] bch2_inode_rm (fs/bcachefs/inode.c:658)
2022-01-15T23:50:16.582411+01:00 zserwerek kernel: [25151.509935] evict (fs/inode.c:637)
2022-01-15T23:50:16.582412+01:00 zserwerek kernel: [25151.511458] __dentry_kill (fs/dcache.c:585)
2022-01-15T23:50:16.582413+01:00 zserwerek kernel: [25151.513053] dput (fs/dcache.c:721 fs/dcache.c:888)
2022-01-15T23:50:16.582413+01:00 zserwerek kernel: [25151.515076] do_renameat2 (fs/namei.c:4783)
2022-01-15T23:50:16.582414+01:00 zserwerek kernel: [25151.516654] __x64_sys_rename (fs/namei.c:4823)
2022-01-15T23:50:16.582414+01:00 zserwerek kernel: [25151.518197] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
2022-01-15T23:50:16.582415+01:00 zserwerek kernel: [25151.519752] ? do_syscall_64 (./arch/x86/include/asm/jump_label.h:27 arch/x86/entry/common.c:75)
2022-01-15T23:50:16.582416+01:00 zserwerek kernel: [25151.521481] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
2022-01-15T23:50:16.582416+01:00 zserwerek kernel: [25151.523261] RIP: 0033:0x7f99f5a57087
2022-01-15T23:50:16.582417+01:00 zserwerek kernel: [25151.524879] Code: e8 0e 62 09 00 f7 d8 19 c0 5d c3 0f 1f 84 00 00 00 00 00 b8 ff ff ff ff 5d c3 66 0f 1f 84 00 00 00 00 00 b8 52 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 b9 ed 15 00 f7 d8 64 89 02 b8
All code
========
   0:   e8 0e 62 09 00          call   0x96213
   5:   f7 d8                   neg    %eax
   7:   19 c0                   sbb    %eax,%eax
   9:   5d                      pop    %rbp
   a:   c3                      ret
   b:   0f 1f 84 00 00 00 00    nopl   0x0(%rax,%rax,1)
  12:   00
  13:   b8 ff ff ff ff          mov    $0xffffffff,%eax
  18:   5d                      pop    %rbp
  19:   c3                      ret
  1a:   66 0f 1f 84 00 00 00    nopw   0x0(%rax,%rax,1)
  21:   00 00
  23:   b8 52 00 00 00          mov    $0x52,%eax
  28:   0f 05                   syscall
  2a:*  48 3d 00 f0 ff ff       cmp    $0xfffffffffffff000,%rax         <-- trapping instruction
  30:   77 01                   ja     0x33
  32:   c3                      ret
  33:   48 8b 15 b9 ed 15 00    mov    0x15edb9(%rip),%rdx        # 0x15edf3
  3a:   f7 d8                   neg    %eax
  3c:   64 89 02                mov    %eax,%fs:(%rdx)
  3f:   b8                      .byte 0xb8

Code starting with the faulting instruction
===========================================
   0:   48 3d 00 f0 ff ff       cmp    $0xfffffffffffff000,%rax
   6:   77 01                   ja     0x9
   8:   c3                      ret
   9:   48 8b 15 b9 ed 15 00    mov    0x15edb9(%rip),%rdx        # 0x15edc9
  10:   f7 d8                   neg    %eax
  12:   64 89 02                mov    %eax,%fs:(%rdx)
  15:   b8                      .byte 0xb8
2022-01-15T23:50:16.582418+01:00 zserwerek kernel: [25151.526505] RSP: 002b:00007ffcb4dd8a68 EFLAGS: 00000202 ORIG_RAX: 0000000000000052
2022-01-15T23:50:16.582433+01:00 zserwerek kernel: [25151.528328] RAX: ffffffffffffffda RBX: 00007ffcb4dd8c20 RCX: 00007f99f5a57087
2022-01-15T23:50:16.582440+01:00 zserwerek kernel: [25151.530316] RDX: 0000000000000000 RSI: 00007ffcb4dd8c20 RDI: 00007ffcb4ddac20
2022-01-15T23:50:16.582441+01:00 zserwerek kernel: [25151.531951] RBP: 00007ffcb4ddac20 R08: 0000000061e34f7f R09: 0000000000000001
2022-01-15T23:50:16.582442+01:00 zserwerek kernel: [25151.533617] R10: 00007f99f5a113a0 R11: 0000000000000202 R12: 0000000000000000
2022-01-15T23:50:16.582443+01:00 zserwerek kernel: [25151.535456] R13: 00007f99f5198750 R14: 0000000000008180 R15: 0000000000000004
2022-01-15T23:50:16.582444+01:00 zserwerek kernel: [25151.537498] Modules linked in: xfs netconsole configfs zram xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat ip_tables x_tables bpfilter br_netfilter tun nfsd auth_rpcgss oid_registry nfs_acl lockd grace sunrpc overlay af_packet bridge stp llc snd_hda_codec_hdmi binfmt_misc i915 coretemp hwmon pcrypt nf_nat_ftp nf_conntrack_ftp nf_nat intel_gtt iosf_mbi nf_conntrack ttm i2c_algo_bit drm_kms_helper nf_defrag_ipv6 nf_defrag_ipv4 cfbfillrect syscopyarea x86_pkg_temp_thermal cfbimgblt intel_powerclamp sysfillrect sysimgblt fb_sys_fops cfbcopyarea kvm_intel drm kvm snd_hda_intel snd_intel_dspcfg snd_hda_codec r8169 snd_hda_core realtek snd_pcm mdio_devres irqbypass of_mdio rapl fixed_phy intel_cstate snd_timer i2c_i801 fwnode_mdio intel_uncore snd libphy i2c_smbus soundcore fb mei_me mousedev mei font fbdev i2c_core intel_lpss_pci intel_lpss idma64 virt_dma cdc_acm drm_panel_orientation_quirks
2022-01-15T23:50:16.582445+01:00 zserwerek kernel: [25151.537545]  tiny_power_button mfd_core intel_pch_thermal bfq thermal fan video backlight acpi_pad button hid_generic raid1 md_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel mpt3sas aesni_intel crypto_simd xhci_pci xhci_hcd cryptd raid_class scsi_transport_sas dm_mod
2022-01-15T23:50:16.582447+01:00 zserwerek kernel: [25151.547862] CR2: 0000000000000000
2022-01-15T23:50:16.582447+01:00 zserwerek kernel: [25151.550118] ---[ end trace 871fcc5d269b5c3f ]---
2022-01-15T23:50:16.582448+01:00 zserwerek kernel: [25151.552301] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
2022-01-15T23:50:16.582448+01:00 zserwerek kernel: [25151.554700] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 99 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 99    mov    $0xffffffff99e39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
2022-01-15T23:50:16.582449+01:00 zserwerek kernel: [25151.557021] RSP: 0018:ffffaa4c412cb448 EFLAGS: 00010246
2022-01-15T23:50:16.582450+01:00 zserwerek kernel: [25151.559356] RAX: ffffffff99e39d8c RBX: 0000000000000000 RCX: 0000000000020df2
2022-01-15T23:50:16.582451+01:00 zserwerek kernel: [25151.561892] RDX: 000000009c56f6c7 RSI: ffffffff99e39d8c RDI: 0000000000754df5
2022-01-15T23:50:16.582451+01:00 zserwerek kernel: [25151.564333] RBP: ffffaa4c412cb4a0 R08: 0000000000000007 R09: ffff8d7aa1465f50
2022-01-15T23:50:16.582452+01:00 zserwerek kernel: [25151.566667] R10: 0000000000754df5 R11: 00000000a6267ba9 R12: 0000000000000000
2022-01-15T23:50:16.582452+01:00 zserwerek kernel: [25151.569207] R13: 0000000000020df5 R14: ffff8d7bcbd80000 R15: ffff8d7aa1465f00
2022-01-15T23:50:16.582454+01:00 zserwerek kernel: [25151.571640] FS:  00007f99f59dbf00(0000) GS:ffff8d7c1be80000(0000) knlGS:0000000000000000
2022-01-15T23:50:16.582454+01:00 zserwerek kernel: [25151.573917] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-15T23:50:16.582455+01:00 zserwerek kernel: [25151.576282] CR2: 0000000000000000 CR3: 000000000c9c6006 CR4: 00000000003706e0
2022-01-15T23:50:16.582455+01:00 zserwerek kernel: [25151.578798] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-15T23:50:16.582456+01:00 zserwerek kernel: [25151.581169] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-01-15T23:50:16.782200+01:00 zserwerek kernel: [25151.767973] list_add corruption. next->prev should be prev (ffff8d7bcbd82ef8), but was 0000000000000000. (next=ffffaa4c412cbb68).
2022-01-15T23:50:16.782236+01:00 zserwerek kernel: [25151.775668] ------------[ cut here ]------------
2022-01-15T23:50:16.782239+01:00 zserwerek kernel: [25151.783318] kernel BUG at lib/list_debug.c:23!
2022-01-15T23:50:16.899446+01:00 zserwerek kernel: [25151.790991] invalid opcode: 0000 [#2] PREEMPT SMP DEBUG_PAGEALLOC NOPTI
2022-01-15T23:50:16.899454+01:00 zserwerek kernel: [25151.798709] CPU: 1 PID: 5043 Comm: bch-reclaim/sde Tainted: G      D           5.15.0-01118-g5d9821e5caba #22
2022-01-15T23:50:16.899455+01:00 zserwerek kernel: [25151.806483] Hardware name: MSI MS-7982/B150M PRO-VDH (MS-7982), BIOS 3.H0 07/10/2018
2022-01-15T23:50:16.899456+01:00 zserwerek kernel: [25151.814319] RIP: 0010:__list_add_valid.cold (lib/list_debug.c:23 (discriminator 3))
2022-01-15T23:50:16.899457+01:00 zserwerek kernel: [25151.822098] Code: 48 c7 c6 e8 5a 0b 9a 48 89 ef e8 60 d4 00 00 49 c7 c7 f4 ff ff ff e9 a8 19 bf ff 4c 89 c1 48 c7 c7 d0 5b 0b 9a e8 db 65 fe ff <0f> 0b 48 89 f2 4c 89 c1 48 89 fe 48 c7 c7 80 5c 0b 9a e8 c4 65 fe
All code
========
   0:   48 c7 c6 e8 5a 0b 9a    mov    $0xffffffff9a0b5ae8,%rsi
   7:   48 89 ef                mov    %rbp,%rdi
   a:   e8 60 d4 00 00          call   0xd46f
   f:   49 c7 c7 f4 ff ff ff    mov    $0xfffffffffffffff4,%r15
  16:   e9 a8 19 bf ff          jmp    0xffffffffffbf19c3
  1b:   4c 89 c1                mov    %r8,%rcx
  1e:   48 c7 c7 d0 5b 0b 9a    mov    $0xffffffff9a0b5bd0,%rdi
  25:   e8 db 65 fe ff          call   0xfffffffffffe6605
  2a:*  0f 0b                   ud2             <-- trapping instruction
  2c:   48 89 f2                mov    %rsi,%rdx
  2f:   4c 89 c1                mov    %r8,%rcx
  32:   48 89 fe                mov    %rdi,%rsi
  35:   48 c7 c7 80 5c 0b 9a    mov    $0xffffffff9a0b5c80,%rdi
  3c:   e8                      .byte 0xe8
  3d:   c4                      .byte 0xc4
  3e:   65                      gs
  3f:   fe                      .byte 0xfe

Code starting with the faulting instruction
===========================================
   0:   0f 0b                   ud2
   2:   48 89 f2                mov    %rsi,%rdx
   5:   4c 89 c1                mov    %r8,%rcx
   8:   48 89 fe                mov    %rdi,%rsi
   b:   48 c7 c7 80 5c 0b 9a    mov    $0xffffffff9a0b5c80,%rdi
  12:   e8                      .byte 0xe8
  13:   c4                      .byte 0xc4
  14:   65                      gs
  15:   fe                      .byte 0xfe
2022-01-15T23:50:16.899458+01:00 zserwerek kernel: [25151.827452] RSP: 0018:ffffaa4cbdb4fc80 EFLAGS: 00010246
2022-01-15T23:50:16.899459+01:00 zserwerek kernel: [25151.831621] RAX: 0000000000000075 RBX: ffffaa4cbdb4fcd8 RCX: 0000000000000000
2022-01-15T23:50:16.899459+01:00 zserwerek kernel: [25151.835110] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
2022-01-15T23:50:16.899460+01:00 zserwerek kernel: [25151.838276] RBP: ffff8d7bcbd80000 R08: 0000000000000000 R09: 0000000000000000
2022-01-15T23:50:16.899460+01:00 zserwerek kernel: [25151.841154] R10: 0000000000000000 R11: 0000000000000000 R12: ffffaa4cbdb4fce8
2022-01-15T23:50:16.899461+01:00 zserwerek kernel: [25151.843755] R13: ffffaa4c412cbb68 R14: ffff8d7bcbd82ed8 R15: ffff8d7bcbd82ef8
2022-01-15T23:50:16.899461+01:00 zserwerek kernel: [25151.846256] FS:  0000000000000000(0000) GS:ffff8d7c1be80000(0000) knlGS:0000000000000000
2022-01-15T23:50:16.899462+01:00 zserwerek kernel: [25151.848842] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-15T23:50:16.899463+01:00 zserwerek kernel: [25151.851253] CR2: 0000000000000000 CR3: 000000030f210004 CR4: 00000000003706e0
2022-01-15T23:50:16.899463+01:00 zserwerek kernel: [25151.853650] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-15T23:50:16.899464+01:00 zserwerek kernel: [25151.856393] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-01-15T23:50:16.899464+01:00 zserwerek kernel: [25151.858750] Call Trace:
2022-01-15T23:50:16.899465+01:00 zserwerek kernel: [25151.861125] __bch2_trans_init (./include/linux/list.h:67 ./include/linux/list.h:86 fs/bcachefs/btree_iter.c:3026)
2022-01-15T23:50:16.899466+01:00 zserwerek kernel: [25151.863734] bch2_btree_key_cache_journal_flush (fs/bcachefs/btree_key_cache.c:484)
2022-01-15T23:50:16.899466+01:00 zserwerek kernel: [25151.866191] ? btree_key_cache_flush_pos (fs/bcachefs/btree_key_cache.c:465)
2022-01-15T23:50:16.899467+01:00 zserwerek kernel: [25151.868569] journal_flush_pins (fs/bcachefs/journal_reclaim.c:521)
2022-01-15T23:50:16.899468+01:00 zserwerek kernel: [25151.871242] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:103 ./include/linux/spinlock_api_smp.h:152 kernel/locking/spinlock.c:186)
2022-01-15T23:50:16.899469+01:00 zserwerek kernel: [25151.873682] __bch2_journal_reclaim (fs/bcachefs/journal_reclaim.c:663)
2022-01-15T23:50:16.899469+01:00 zserwerek kernel: [25151.876122] bch2_journal_reclaim_thread (fs/bcachefs/journal_reclaim.c:699)
2022-01-15T23:50:16.899470+01:00 zserwerek kernel: [25151.878506] ? __bch2_journal_reclaim (fs/bcachefs/journal_reclaim.c:684)
2022-01-15T23:50:16.899470+01:00 zserwerek kernel: [25151.881016] kthread (kernel/kthread.c:319)
2022-01-15T23:50:16.899484+01:00 zserwerek kernel: [25151.883246] ? set_kthread_struct (kernel/kthread.c:272)
2022-01-15T23:50:16.899485+01:00 zserwerek kernel: [25151.885528] ret_from_fork (arch/x86/entry/entry_64.S:295)
2022-01-15T23:50:16.899485+01:00 zserwerek kernel: [25151.887909] Modules linked in: xfs netconsole configfs zram xt_nat xt_tcpudp veth xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat ip_tables x_tables bpfilter br_netfilter tun nfsd auth_rpcgss oid_registry nfs_acl lockd grace sunrpc overlay af_packet bridge stp llc snd_hda_codec_hdmi binfmt_misc i915 coretemp hwmon pcrypt nf_nat_ftp nf_conntrack_ftp nf_nat intel_gtt iosf_mbi nf_conntrack ttm i2c_algo_bit drm_kms_helper nf_defrag_ipv6 nf_defrag_ipv4 cfbfillrect syscopyarea x86_pkg_temp_thermal cfbimgblt intel_powerclamp sysfillrect sysimgblt fb_sys_fops cfbcopyarea kvm_intel drm kvm snd_hda_intel snd_intel_dspcfg snd_hda_codec r8169 snd_hda_core realtek snd_pcm mdio_devres irqbypass of_mdio rapl fixed_phy intel_cstate snd_timer i2c_i801 fwnode_mdio intel_uncore snd libphy i2c_smbus soundcore fb mei_me mousedev mei font fbdev i2c_core intel_lpss_pci intel_lpss idma64 virt_dma cdc_acm drm_panel_orientation_quirks
2022-01-15T23:50:16.899486+01:00 zserwerek kernel: [25151.887989]  tiny_power_button mfd_core intel_pch_thermal bfq thermal fan video backlight acpi_pad button hid_generic raid1 md_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel mpt3sas aesni_intel crypto_simd xhci_pci xhci_hcd cryptd raid_class scsi_transport_sas dm_mod
2022-01-15T23:50:16.899487+01:00 zserwerek kernel: [25151.900608] ---[ end trace 871fcc5d269b5c40 ]---
2022-01-15T23:50:16.905103+01:00 zserwerek kernel: [25151.903545] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
2022-01-15T23:50:16.905110+01:00 zserwerek kernel: [25151.906243] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 99 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 99    mov    $0xffffffff99e39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
2022-01-15T23:50:16.910860+01:00 zserwerek kernel: [25151.909222] RSP: 0018:ffffaa4c412cb448 EFLAGS: 00010246
2022-01-15T23:50:16.910867+01:00 zserwerek kernel: [25151.911979] RAX: ffffffff99e39d8c RBX: 0000000000000000 RCX: 0000000000020df2
2022-01-15T23:50:16.916668+01:00 zserwerek kernel: [25151.914861] RDX: 000000009c56f6c7 RSI: ffffffff99e39d8c RDI: 0000000000754df5
2022-01-15T23:50:16.916695+01:00 zserwerek kernel: [25151.917803] RBP: ffffaa4c412cb4a0 R08: 0000000000000007 R09: ffff8d7aa1465f50
2022-01-15T23:50:16.925081+01:00 zserwerek kernel: [25151.920633] R10: 0000000000754df5 R11: 00000000a6267ba9 R12: 0000000000000000
2022-01-15T23:50:16.925105+01:00 zserwerek kernel: [25151.923416] R13: 0000000000020df5 R14: ffff8d7bcbd80000 R15: ffff8d7aa1465f00
2022-01-15T23:50:16.927986+01:00 zserwerek kernel: [25151.926301] FS:  0000000000000000(0000) GS:ffff8d7c1bf80000(0000) knlGS:0000000000000000
2022-01-15T23:50:16.927993+01:00 zserwerek kernel: [25151.929141] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-15T23:50:16.933536+01:00 zserwerek kernel: [25151.931854] CR2: 00007f99f59dc1f8 CR3: 000000030f210004 CR4: 00000000003706e0
2022-01-15T23:50:16.936415+01:00 zserwerek kernel: [25151.934763] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-15T23:50:16.939242+01:00 zserwerek kernel: [25151.937605] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-01-16T00:01:16.358781+01:00 zserwerek kernel: [25811.362408] r8169 0000:02:00.0 lan: Link is Down
2022-01-16T00:01:16.358793+01:00 zserwerek kernel: [25811.369575] br0: port 1(lan) entered disabled state
marcin-github commented 2 years ago

After restart there si a problem o mount fs:

2022-01-16T11:29:33.225858+01:00 zserwerek kernel: [  547.299086] bcachefs (sde): recovering from unclean shutdown
2022-01-16T11:32:32.047323+01:00 zserwerek kernel: [  726.119404] INFO: task mount:5172 blocked for more than 120 seconds.
2022-01-16T11:32:32.047364+01:00 zserwerek kernel: [  726.124755]       Not tainted 5.15.0-01118-g5d9821e5caba #22
2022-01-16T11:32:32.047365+01:00 zserwerek kernel: [  726.126611] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2022-01-16T11:32:32.047365+01:00 zserwerek kernel: [  726.128548] task:mount           state:D stack:    0 pid: 5172 ppid:  5152 flags:0x00004000
2022-01-16T11:32:32.051065+01:00 zserwerek kernel: [  726.130453] Call Trace:
2022-01-16T11:32:32.051071+01:00 zserwerek kernel: [  726.132314] __schedule (kernel/sched/core.c:4940 kernel/sched/core.c:6287)
2022-01-16T11:32:32.054868+01:00 zserwerek kernel: [  726.134224] ? ttwu_do_wakeup (kernel/sched/core.c:3525)
2022-01-16T11:32:32.054874+01:00 zserwerek kernel: [  726.136110] ? _raw_spin_unlock_irqrestore (./arch/x86/include/asm/preempt.h:103 ./include/linux/spinlock_api_smp.h:161 kernel/locking/spinlock.c:194)
2022-01-16T11:32:32.058665+01:00 zserwerek kernel: [  726.138030] schedule (kernel/sched/core.c:6367 (discriminator 1))
2022-01-16T11:32:32.058675+01:00 zserwerek kernel: [  726.139964] __closure_sync (lib/closure.c:125)
2022-01-16T11:32:32.062617+01:00 zserwerek kernel: [  726.141870] bch2_journal_read (fs/bcachefs/journal_io.c:1014)
2022-01-16T11:32:32.062623+01:00 zserwerek kernel: [  726.143859] ? update_load_avg (kernel/sched/fair.c:3619 kernel/sched/fair.c:3856)
2022-01-16T11:32:32.066519+01:00 zserwerek kernel: [  726.145823] ? netpoll_start_xmit (./include/linux/netdevice.h:4988 ./include/linux/netdevice.h:5002 net/core/netpoll.c:94)
2022-01-16T11:32:32.066538+01:00 zserwerek kernel: [  726.147757] ? irq_cpu_rmap_notify (lib/closure.c:106)
2022-01-16T11:32:32.070475+01:00 zserwerek kernel: [  726.149744] ? __schedule (kernel/sched/core.c:6295)
2022-01-16T11:32:32.070494+01:00 zserwerek kernel: [  726.151710] ? prb_read_valid (kernel/printk/printk_ringbuffer.c:1930)
2022-01-16T11:32:32.074401+01:00 zserwerek kernel: [  726.153685] ? console_unlock (kernel/printk/printk.c:2735)
2022-01-16T11:32:32.074420+01:00 zserwerek kernel: [  726.155637] ? preempt_schedule_thunk (arch/x86/entry/thunk_64.S:35)
2022-01-16T11:32:32.078274+01:00 zserwerek kernel: [  726.157624] ? preempt_schedule_common (./arch/x86/include/asm/preempt.h:85 kernel/sched/core.c:6461)
2022-01-16T11:32:32.078281+01:00 zserwerek kernel: [  726.159513] ? tick_nohz_tick_stopped (kernel/time/tick-sched.c:589)
2022-01-16T11:32:32.082007+01:00 zserwerek kernel: [  726.161366] ? __irq_work_queue_local (kernel/irq_work.c:57 kernel/irq_work.c:53)
2022-01-16T11:32:32.082014+01:00 zserwerek kernel: [  726.163247] ? irq_work_queue (./arch/x86/include/asm/preempt.h:103 kernel/irq_work.c:76 kernel/irq_work.c:67)
2022-01-16T11:32:32.087610+01:00 zserwerek kernel: [  726.165110] ? eytzinger0_sort (fs/bcachefs/util.c:641 fs/bcachefs/util.c:679)
2022-01-16T11:32:32.087630+01:00 zserwerek kernel: [  726.166958] ? u64_swap (fs/bcachefs/util.c:618)
2022-01-16T11:32:32.087631+01:00 zserwerek kernel: [  726.168854] ? bch2_journal_flush_device_pins (fs/bcachefs/journal_seq_blacklist.c:124)
2022-01-16T11:32:32.091408+01:00 zserwerek kernel: [  726.170768] bch2_fs_recovery.cold (fs/bcachefs/recovery.c:1011 (discriminator 3))
2022-01-16T11:32:32.091414+01:00 zserwerek kernel: [  726.172647] ? idr_alloc_u32 (lib/idr.c:55)
2022-01-16T11:32:32.095168+01:00 zserwerek kernel: [  726.174525] ? idr_alloc_cyclic (lib/idr.c:126)
2022-01-16T11:32:32.095174+01:00 zserwerek kernel: [  726.176408] ? __kernfs_new_node.constprop.0 (./include/linux/idr.h:174 fs/kernfs/dir.c:597)
2022-01-16T11:32:32.098925+01:00 zserwerek kernel: [  726.178291] ? vsnprintf (lib/vsprintf.c:2747)
2022-01-16T11:32:32.098932+01:00 zserwerek kernel: [  726.180178] ? __bch2_sb_field_resize (fs/bcachefs/super-io.c:76)
2022-01-16T11:32:32.102646+01:00 zserwerek kernel: [  726.182012] ? __copy_super (fs/bcachefs/super-io.c:426 (discriminator 1))
2022-01-16T11:32:32.102654+01:00 zserwerek kernel: [  726.183938] bch2_fs_start (fs/bcachefs/super.c:921)
2022-01-16T11:32:32.106457+01:00 zserwerek kernel: [  726.185837] bch2_fs_open (fs/bcachefs/super.c:1989)
2022-01-16T11:32:32.106464+01:00 zserwerek kernel: [  726.187701] bch2_mount (fs/bcachefs/fs.c:1789)
2022-01-16T11:32:32.110229+01:00 zserwerek kernel: [  726.189595] legacy_get_tree (fs/fs_context.c:610)
2022-01-16T11:32:32.110235+01:00 zserwerek kernel: [  726.191474] vfs_get_tree (fs/super.c:1498)
2022-01-16T11:32:32.113932+01:00 zserwerek kernel: [  726.193310] ? capable (./include/linux/security.h:568 kernel/capability.c:375 kernel/capability.c:396 kernel/capability.c:449)
2022-01-16T11:32:32.113939+01:00 zserwerek kernel: [  726.195180] path_mount (fs/namespace.c:2989 fs/namespace.c:3318)
2022-01-16T11:32:32.119223+01:00 zserwerek kernel: [  726.196951] __x64_sys_mount (fs/namespace.c:3332 fs/namespace.c:3539 fs/namespace.c:3516 fs/namespace.c:3516)
2022-01-16T11:32:32.119246+01:00 zserwerek kernel: [  726.198657] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
2022-01-16T11:32:32.122934+01:00 zserwerek kernel: [  726.200540] ? do_syscall_64 (./arch/x86/include/asm/jump_label.h:27 arch/x86/entry/common.c:75)
2022-01-16T11:32:32.122956+01:00 zserwerek kernel: [  726.202386] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
2022-01-16T11:32:32.126541+01:00 zserwerek kernel: [  726.204256] RIP: 0033:0x7facb707906a
2022-01-16T11:32:32.126561+01:00 zserwerek kernel: [  726.206016] RSP: 002b:00007fff21576c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
2022-01-16T11:32:32.126562+01:00 zserwerek kernel: [  726.207807] RAX: ffffffffffffffda RBX: 00007facb719ae44 RCX: 00007facb707906a
2022-01-16T11:32:32.130141+01:00 zserwerek kernel: [  726.209617] RDX: 0000561c37d031e0 RSI: 0000561c37d03090 RDI: 0000561c37d01790
2022-01-16T11:32:32.130147+01:00 zserwerek kernel: [  726.211391] RBP: 0000561c37d01560 R08: 0000000000000000 R09: 0000000000000000
2022-01-16T11:32:32.135411+01:00 zserwerek kernel: [  726.213185] R10: 0000000000008400 R11: 0000000000000246 R12: 0000561c37d031e0
2022-01-16T11:32:32.135432+01:00 zserwerek kernel: [  726.214902] R13: 0000561c37d01790 R14: 0000561c37d031e0 R15: 00007facb7185b79
2022-01-16T11:34:32.875354+01:00 zserwerek kernel: [  846.953539] INFO: task mount:5172 blocked for more than 241 seconds.
2022-01-16T11:34:32.875366+01:00 zserwerek kernel: [  846.955292]       Not tainted 5.15.0-01118-g5d9821e5caba #22
2022-01-16T11:34:32.875368+01:00 zserwerek kernel: [  846.957156] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
2022-01-16T11:34:32.875368+01:00 zserwerek kernel: [  846.959005] task:mount           state:D stack:    0 pid: 5172 ppid:  5152 flags:0x00004000
2022-01-16T11:34:32.878930+01:00 zserwerek kernel: [  846.960799] Call Trace:
2022-01-16T11:34:32.878936+01:00 zserwerek kernel: [  846.962575] __schedule (kernel/sched/core.c:4940 kernel/sched/core.c:6287)
2022-01-16T11:34:32.882451+01:00 zserwerek kernel: [  846.964324] ? ttwu_do_wakeup (kernel/sched/core.c:3525)
2022-01-16T11:34:32.882457+01:00 zserwerek kernel: [  846.966083] ? _raw_spin_unlock_irqrestore (./arch/x86/include/asm/preempt.h:103 ./include/linux/spinlock_api_smp.h:161 kernel/locking/spinlock.c:194)
2022-01-16T11:34:32.885951+01:00 zserwerek kernel: [  846.967849] schedule (kernel/sched/core.c:6367 (discriminator 1))
2022-01-16T11:34:32.885957+01:00 zserwerek kernel: [  846.969598] __closure_sync (lib/closure.c:125)
2022-01-16T11:34:32.891035+01:00 zserwerek kernel: [  846.971345] bch2_journal_read (fs/bcachefs/journal_io.c:1014)
2022-01-16T11:34:32.891041+01:00 zserwerek kernel: [  846.973003] ? update_load_avg (kernel/sched/fair.c:3619 kernel/sched/fair.c:3856)
2022-01-16T11:34:32.891042+01:00 zserwerek kernel: [  846.974681] ? netpoll_start_xmit (./include/linux/netdevice.h:4988 ./include/linux/netdevice.h:5002 net/core/netpoll.c:94)
2022-01-16T11:34:32.894348+01:00 zserwerek kernel: [  846.976346] ? irq_cpu_rmap_notify (lib/closure.c:106)
2022-01-16T11:34:32.894354+01:00 zserwerek kernel: [  846.977988] ? __schedule (kernel/sched/core.c:6295)
2022-01-16T11:34:32.899170+01:00 zserwerek kernel: [  846.979633] ? prb_read_valid (kernel/printk/printk_ringbuffer.c:1930)
2022-01-16T11:34:32.899176+01:00 zserwerek kernel: [  846.981202] ? console_unlock (kernel/printk/printk.c:2735)
2022-01-16T11:34:32.899177+01:00 zserwerek kernel: [  846.982817] ? preempt_schedule_thunk (arch/x86/entry/thunk_64.S:35)
2022-01-16T11:34:32.902417+01:00 zserwerek kernel: [  846.984435] ? preempt_schedule_common (./arch/x86/include/asm/preempt.h:85 kernel/sched/core.c:6461)
2022-01-16T11:34:32.902423+01:00 zserwerek kernel: [  846.986062] ? tick_nohz_tick_stopped (kernel/time/tick-sched.c:589)
2022-01-16T11:34:32.907164+01:00 zserwerek kernel: [  846.987693] ? __irq_work_queue_local (kernel/irq_work.c:57 kernel/irq_work.c:53)
2022-01-16T11:34:32.907170+01:00 zserwerek kernel: [  846.989234] ? irq_work_queue (./arch/x86/include/asm/preempt.h:103 kernel/irq_work.c:76 kernel/irq_work.c:67)
2022-01-16T11:34:32.907171+01:00 zserwerek kernel: [  846.990818] ? eytzinger0_sort (fs/bcachefs/util.c:641 fs/bcachefs/util.c:679)
2022-01-16T11:34:32.910300+01:00 zserwerek kernel: [  846.992403] ? u64_swap (fs/bcachefs/util.c:618)
2022-01-16T11:34:32.910306+01:00 zserwerek kernel: [  846.993944] ? bch2_journal_flush_device_pins (fs/bcachefs/journal_seq_blacklist.c:124)
2022-01-16T11:34:32.914920+01:00 zserwerek kernel: [  846.995501] bch2_fs_recovery.cold (fs/bcachefs/recovery.c:1011 (discriminator 3))
2022-01-16T11:34:32.914927+01:00 zserwerek kernel: [  846.997026] ? idr_alloc_u32 (lib/idr.c:55)
2022-01-16T11:34:32.914928+01:00 zserwerek kernel: [  846.998565] ? idr_alloc_cyclic (lib/idr.c:126)
2022-01-16T11:34:32.917921+01:00 zserwerek kernel: [  847.000071] ? __kernfs_new_node.constprop.0 (./include/linux/idr.h:174 fs/kernfs/dir.c:597)
2022-01-16T11:34:32.917927+01:00 zserwerek kernel: [  847.001567] ? vsnprintf (lib/vsprintf.c:2747)
2022-01-16T11:34:32.922234+01:00 zserwerek kernel: [  847.003057] ? __bch2_sb_field_resize (fs/bcachefs/super-io.c:76)
2022-01-16T11:34:32.922240+01:00 zserwerek kernel: [  847.004477] ? __copy_super (fs/bcachefs/super-io.c:426 (discriminator 1))
2022-01-16T11:34:32.922241+01:00 zserwerek kernel: [  847.005881] bch2_fs_start (fs/bcachefs/super.c:921)
2022-01-16T11:34:32.926438+01:00 zserwerek kernel: [  847.007306] bch2_fs_open (fs/bcachefs/super.c:1989)
2022-01-16T11:34:32.926444+01:00 zserwerek kernel: [  847.008687] bch2_mount (fs/bcachefs/fs.c:1789)
2022-01-16T11:34:32.926445+01:00 zserwerek kernel: [  847.010080] legacy_get_tree (fs/fs_context.c:610)
2022-01-16T11:34:32.930523+01:00 zserwerek kernel: [  847.011448] vfs_get_tree (fs/super.c:1498)
2022-01-16T11:34:32.930530+01:00 zserwerek kernel: [  847.012794] ? capable (./include/linux/security.h:568 kernel/capability.c:375 kernel/capability.c:396 kernel/capability.c:449)
2022-01-16T11:34:32.930531+01:00 zserwerek kernel: [  847.014156] path_mount (fs/namespace.c:2989 fs/namespace.c:3318)
2022-01-16T11:34:32.934525+01:00 zserwerek kernel: [  847.015489] __x64_sys_mount (fs/namespace.c:3332 fs/namespace.c:3539 fs/namespace.c:3516 fs/namespace.c:3516)
2022-01-16T11:34:32.934532+01:00 zserwerek kernel: [  847.016784] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
2022-01-16T11:34:32.934535+01:00 zserwerek kernel: [  847.018206] ? do_syscall_64 (./arch/x86/include/asm/jump_label.h:27 arch/x86/entry/common.c:75)
2022-01-16T11:34:32.938488+01:00 zserwerek kernel: [  847.019522] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
2022-01-16T11:34:32.938494+01:00 zserwerek kernel: [  847.020794] RIP: 0033:0x7facb707906a
2022-01-16T11:34:32.938495+01:00 zserwerek kernel: [  847.022136] RSP: 002b:00007fff21576c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
2022-01-16T11:34:32.942419+01:00 zserwerek kernel: [  847.023464] RAX: ffffffffffffffda RBX: 00007facb719ae44 RCX: 00007facb707906a
2022-01-16T11:34:32.942425+01:00 zserwerek kernel: [  847.024754] RDX: 0000561c37d031e0 RSI: 0000561c37d03090 RDI: 0000561c37d01790
2022-01-16T11:34:32.942426+01:00 zserwerek kernel: [  847.026064] RBP: 0000561c37d01560 R08: 0000000000000000 R09: 0000000000000000
2022-01-16T11:34:32.946385+01:00 zserwerek kernel: [  847.027409] R10: 0000000000008400 R11: 0000000000000246 R12: 0000561c37d031e0
2022-01-16T11:34:32.946392+01:00 zserwerek kernel: [  847.028692] R13: 0000561c37d01790 R14: 0000561c37d031e0 R15: 00007facb7185b79
2022-01-16T11:35:03.745828+01:00 zserwerek kernel: [  877.827758] bcachefs (sde): journal read done, 370007 keys in 76 entries, seq 134645
2022-01-16T11:35:16.361866+01:00 zserwerek kernel: [  890.442955] bcachefs (sde): going read-write
2022-01-16T11:35:18.137839+01:00 zserwerek kernel: [  892.221153] bcachefs (sde): journal replay done
2022-01-16T11:35:20.435226+01:00 zserwerek kernel: [  894.375606] BUG: kernel NULL pointer dereference, address: 0000000000000000
2022-01-16T11:35:20.435239+01:00 zserwerek kernel: [  894.377026] #PF: supervisor read access in kernel mode
2022-01-16T11:35:20.435240+01:00 zserwerek kernel: [  894.378426] #PF: error_code(0x0000) - not-present page
2022-01-16T11:35:20.435241+01:00 zserwerek kernel: [  894.379812] PGD 0 P4D 0
2022-01-16T11:35:20.435241+01:00 zserwerek kernel: [  894.381205] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC NOPTI
2022-01-16T11:35:20.435242+01:00 zserwerek kernel: [  894.382626] CPU: 0 PID: 5172 Comm: mount Not tainted 5.15.0-01118-g5d9821e5caba #22
2022-01-16T11:35:20.435243+01:00 zserwerek kernel: [  894.384059] Hardware name: MSI MS-7982/B150M PRO-VDH (MS-7982), BIOS 3.H0 07/10/2018
2022-01-16T11:35:20.435243+01:00 zserwerek kernel: [  894.385502] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
2022-01-16T11:35:20.435244+01:00 zserwerek kernel: [ 894.386947] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 99 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 99    mov    $0xffffffff99e39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
2022-01-16T11:35:20.435245+01:00 zserwerek kernel: [  894.388486] RSP: 0018:ffffb2eb1fc1eed0 EFLAGS: 00010206
2022-01-16T11:35:20.435246+01:00 zserwerek kernel: [  894.390022] RAX: ffffffff99e39d8c RBX: 0000000000000000 RCX: 0000000000020e09
2022-01-16T11:35:20.435247+01:00 zserwerek kernel: [  894.391585] RDX: 0000000085a7de19 RSI: ffffffff99e39d8c RDI: 0000000000755352
2022-01-16T11:35:20.435247+01:00 zserwerek kernel: [  894.393113] RBP: ffffb2eb1fc1ef28 R08: 000000000000003f R09: ffff9a6c655358e0
2022-01-16T11:35:20.435248+01:00 zserwerek kernel: [  894.394712] R10: 0000000000755352 R11: 0000000091d2f26d R12: 0000000000000003
2022-01-16T11:35:20.435248+01:00 zserwerek kernel: [  894.396347] R13: 0000000000020e0b R14: ffff9a6c44a20000 R15: ffff9a6c65535800
2022-01-16T11:35:20.435249+01:00 zserwerek kernel: [  894.397870] FS:  00007facb6f28b80(0000) GS:ffff9a709be00000(0000) knlGS:0000000000000000
2022-01-16T11:35:20.435250+01:00 zserwerek kernel: [  894.399435] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-16T11:35:20.435250+01:00 zserwerek kernel: [  894.400973] CR2: 0000000000000000 CR3: 0000000004a5e006 CR4: 00000000003706f0
2022-01-16T11:35:20.435251+01:00 zserwerek kernel: [  894.402529] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-16T11:35:20.435251+01:00 zserwerek kernel: [  894.404069] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
2022-01-16T11:35:20.435252+01:00 zserwerek kernel: [  894.405610] Call Trace:
2022-01-16T11:35:20.435252+01:00 zserwerek kernel: [  894.407201] ? bch2_alloc_unpack (fs/bcachefs/alloc_background.c:251)
2022-01-16T11:35:20.435253+01:00 zserwerek kernel: [  894.408773] bch2_mark_alloc.isra.0 (fs/bcachefs/buckets.c:541)
2022-01-16T11:35:20.435253+01:00 zserwerek kernel: [  894.410353] ? bch2_extent_crc_unpack (fs/bcachefs/extents.h:133)
2022-01-16T11:35:20.435254+01:00 zserwerek kernel: [  894.411986] bch2_mark_key (fs/bcachefs/buckets.c:1245)
2022-01-16T11:35:20.435254+01:00 zserwerek kernel: [  894.413553] ? bch2_trans_mark_pointer.constprop.0 (fs/bcachefs/buckets.c:1459)
2022-01-16T11:35:20.435255+01:00 zserwerek kernel: [  894.415164] bch2_mark_update (fs/bcachefs/buckets.c:1288)
2022-01-16T11:35:20.435255+01:00 zserwerek kernel: [  894.416733] ? bch2_trans_fs_usage_apply (./arch/x86/include/asm/preempt.h:103 ./include/linux/percpu-rwsem.h:121 fs/bcachefs/buckets.c:1397)
2022-01-16T11:35:20.435256+01:00 zserwerek kernel: [  894.418339] do_bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:513 fs/bcachefs/btree_update_leaf.c:708)
2022-01-16T11:35:20.435256+01:00 zserwerek kernel: [  894.419980] ? bch2_trans_mark_extent (fs/bcachefs/buckets.c:1580)
2022-01-16T11:35:20.435257+01:00 zserwerek kernel: [  894.421566] ? bch2_btree_iter_peek (fs/bcachefs/btree_iter.c:2393)
2022-01-16T11:35:20.435257+01:00 zserwerek kernel: [  894.423184] __bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:1042 (discriminator 2))
2022-01-16T11:35:20.435258+01:00 zserwerek kernel: [  894.424748] bch2_btree_delete_range_trans (fs/bcachefs/btree_update.h:107 fs/bcachefs/btree_update_leaf.c:1543)
2022-01-16T11:35:20.435258+01:00 zserwerek kernel: [  894.426331] ? bch2_btree_iter_peek (fs/bcachefs/btree_iter.c:2393)
2022-01-16T11:35:20.435259+01:00 zserwerek kernel: [  894.427926] ? check_inodes (fs/bcachefs/fsck.c:242 fs/bcachefs/fsck.c:863 fs/bcachefs/fsck.c:956)
2022-01-16T11:35:20.435260+01:00 zserwerek kernel: [  894.429485] check_inodes (fs/bcachefs/fsck.c:242 fs/bcachefs/fsck.c:863 fs/bcachefs/fsck.c:956)
2022-01-16T11:35:20.435260+01:00 zserwerek kernel: [  894.431073] ? __bch2_bkey_cmp_left_packed (fs/bcachefs/bset.h:218 fs/bcachefs/bset.h:237 fs/bcachefs/bset.h:267 fs/bcachefs/bkey.c:1069 fs/bcachefs/bkey.c:1102)
2022-01-16T11:35:20.435261+01:00 zserwerek kernel: [  894.432622] ? bch2_btree_node_iter_set_drop (fs/bcachefs/bset.c:1427)
2022-01-16T11:35:20.435261+01:00 zserwerek kernel: [  894.434183] ? btree_path_set_pos (fs/bcachefs/bset.h:432 fs/bcachefs/bset.h:437 fs/bcachefs/bset.h:492 fs/bcachefs/btree_iter.c:1073 fs/bcachefs/btree_iter.c:1758)
2022-01-16T11:35:20.435261+01:00 zserwerek kernel: [  894.435755] ? bch2_trans_iter_exit (fs/bcachefs/btree_iter.c:2803)
2022-01-16T11:35:20.435262+01:00 zserwerek kernel: [  894.437268] ? bch2_snapshots_set_equiv (fs/bcachefs/subvolume.c:171)
2022-01-16T11:35:20.435262+01:00 zserwerek kernel: [  894.438828] bch2_fs_recovery.cold (fs/bcachefs/recovery.c:1209 (discriminator 3))
2022-01-16T11:35:20.435263+01:00 zserwerek kernel: [  894.440362] ? idr_alloc_cyclic (lib/idr.c:126)
2022-01-16T11:35:20.435263+01:00 zserwerek kernel: [  894.441880] ? __kernfs_new_node.constprop.0 (./include/linux/idr.h:174 fs/kernfs/dir.c:597)
2022-01-16T11:35:20.435264+01:00 zserwerek kernel: [  894.443445] ? vsnprintf (lib/vsprintf.c:2747)
2022-01-16T11:35:20.435264+01:00 zserwerek kernel: [  894.444977] ? __bch2_sb_field_resize (fs/bcachefs/super-io.c:76)
2022-01-16T11:35:20.435265+01:00 zserwerek kernel: [  894.446493] ? __copy_super (fs/bcachefs/super-io.c:426 (discriminator 1))
2022-01-16T11:35:20.435265+01:00 zserwerek kernel: [  894.448015] bch2_fs_start (fs/bcachefs/super.c:921)
2022-01-16T11:35:20.435266+01:00 zserwerek kernel: [  894.449529] bch2_fs_open (fs/bcachefs/super.c:1989)
2022-01-16T11:35:20.435266+01:00 zserwerek kernel: [  894.451087] bch2_mount (fs/bcachefs/fs.c:1789)
2022-01-16T11:35:20.435267+01:00 zserwerek kernel: [  894.452602] legacy_get_tree (fs/fs_context.c:610)
2022-01-16T11:35:20.435267+01:00 zserwerek kernel: [  894.454087] vfs_get_tree (fs/super.c:1498)
2022-01-16T11:35:20.435268+01:00 zserwerek kernel: [  894.455629] ? capable (./include/linux/security.h:568 kernel/capability.c:375 kernel/capability.c:396 kernel/capability.c:449)
2022-01-16T11:35:20.435268+01:00 zserwerek kernel: [  894.457125] path_mount (fs/namespace.c:2989 fs/namespace.c:3318)
2022-01-16T11:35:20.435269+01:00 zserwerek kernel: [  894.458625] __x64_sys_mount (fs/namespace.c:3332 fs/namespace.c:3539 fs/namespace.c:3516 fs/namespace.c:3516)
2022-01-16T11:35:20.435269+01:00 zserwerek kernel: [  894.460136] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
2022-01-16T11:35:20.435270+01:00 zserwerek kernel: [  894.461645] ? do_syscall_64 (./arch/x86/include/asm/jump_label.h:27 arch/x86/entry/common.c:75)
2022-01-16T11:35:20.435270+01:00 zserwerek kernel: [  894.463189] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
2022-01-16T11:35:20.435271+01:00 zserwerek kernel: [  894.464748] RIP: 0033:0x7facb707906a
2022-01-16T11:35:20.435280+01:00 zserwerek kernel: [ 894.466257] Code: 48 8b 0d 09 ae 0b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d d6 ad 0b 00 f7 d8 64 89 01 48
All code
========
   0:   48 8b 0d 09 ae 0b 00    mov    0xbae09(%rip),%rcx        # 0xbae10
   7:   f7 d8                   neg    %eax
   9:   64 89 01                mov    %eax,%fs:(%rcx)
   c:   48 83 c8 ff             or     $0xffffffffffffffff,%rax
  10:   c3                      ret
  11:   66 2e 0f 1f 84 00 00    cs nopw 0x0(%rax,%rax,1)
  18:   00 00 00
  1b:   0f 1f 44 00 00          nopl   0x0(%rax,%rax,1)
  20:   49 89 ca                mov    %rcx,%r10
  23:   b8 a5 00 00 00          mov    $0xa5,%eax
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   73 01                   jae    0x33
  32:   c3                      ret
  33:   48 8b 0d d6 ad 0b 00    mov    0xbadd6(%rip),%rcx        # 0xbae10
  3a:   f7 d8                   neg    %eax
  3c:   64 89 01                mov    %eax,%fs:(%rcx)
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   73 01                   jae    0x9
   8:   c3                      ret
   9:   48 8b 0d d6 ad 0b 00    mov    0xbadd6(%rip),%rcx        # 0xbade6
  10:   f7 d8                   neg    %eax
  12:   64 89 01                mov    %eax,%fs:(%rcx)
  15:   48                      rex.W
2022-01-16T11:35:20.435280+01:00 zserwerek kernel: [  894.467925] RSP: 002b:00007fff21576c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
2022-01-16T11:35:20.435281+01:00 zserwerek kernel: [  894.469536] RAX: ffffffffffffffda RBX: 00007facb719ae44 RCX: 00007facb707906a
2022-01-16T11:35:20.435282+01:00 zserwerek kernel: [  894.471175] RDX: 0000561c37d031e0 RSI: 0000561c37d03090 RDI: 0000561c37d01790
2022-01-16T11:35:20.435284+01:00 zserwerek kernel: [  894.472800] RBP: 0000561c37d01560 R08: 0000000000000000 R09: 0000000000000000
2022-01-16T11:35:20.435284+01:00 zserwerek kernel: [  894.474446] R10: 0000000000008400 R11: 0000000000000246 R12: 0000561c37d031e0
2022-01-16T11:35:20.435285+01:00 zserwerek kernel: [  894.476071] R13: 0000561c37d01790 R14: 0000561c37d031e0 R15: 00007facb7185b79
2022-01-16T11:35:20.435285+01:00 zserwerek kernel: [  894.477687] Modules linked in: xfs netconsole configfs veth zram xt_nat xt_tcpudp xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat ip_tables x_tables bpfilter br_netfilter tun nfsd auth_rpcgss oid_registry nfs_acl lockd grace sunrpc overlay af_packet bridge stp llc snd_hda_codec_hdmi i915 binfmt_misc pcrypt nf_nat_ftp nf_conntrack_ftp nf_nat coretemp hwmon nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_gtt iosf_mbi x86_pkg_temp_thermal intel_po
werclamp ttm i2c_algo_bit kvm_intel drm_kms_helper cfbfillrect syscopyarea cfbimgblt sysfillrect sysimgblt kvm fb_sys_fops cfbcopyarea snd_hda_intel snd_intel_dspcfg snd_hda_codec drm r8169 snd_hda_core realtek snd_pcm irqbypass rapl mdio_devres of_mdio intel_cstate fixed_phy fb fwnode_mdio mei_me intel_uncore snd_timer snd libphy mei i2c_i801 soundcore i2c_smbus intel_lpss_pci font intel_lpss fbdev idma64 i2c_core virt_dma mfd_core bfq cdc_acm drm_panel_orientation_quirks
2022-01-16T11:35:20.435286+01:00 zserwerek kernel: [  894.477764]  intel_pch_thermal thermal tiny_power_button fan video backlight button acpi_pad raid1 md_mod mpt3sas crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel xhci_pci xhci_hcd aesni_intel crypto_simd cryptd raid_class scsi_transport_sas dm_mod
2022-01-16T11:35:20.435287+01:00 zserwerek kernel: [  894.487242] CR2: 0000000000000000
2022-01-16T11:35:20.435288+01:00 zserwerek kernel: [  894.489291] ---[ end trace 0ef33a2282d7a4f2 ]---
2022-01-16T11:35:20.435288+01:00 zserwerek kernel: [  894.491396] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
2022-01-16T11:35:20.435289+01:00 zserwerek kernel: [ 894.493468] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 99 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 99    mov    $0xffffffff99e39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
2022-01-16T11:35:20.435289+01:00 zserwerek kernel: [  894.495671] RSP: 0018:ffffb2eb1fc1eed0 EFLAGS: 00010206
2022-01-16T11:35:20.435290+01:00 zserwerek kernel: [  894.497838] RAX: ffffffff99e39d8c RBX: 0000000000000000 RCX: 0000000000020e09
2022-01-16T11:35:20.435290+01:00 zserwerek kernel: [  894.500040] RDX: 0000000085a7de19 RSI: ffffffff99e39d8c RDI: 0000000000755352
2022-01-16T11:35:20.435290+01:00 zserwerek kernel: [  894.502237] RBP: ffffb2eb1fc1ef28 R08: 000000000000003f R09: ffff9a6c655358e0
2022-01-16T11:35:20.435291+01:00 zserwerek kernel: [  894.504432] R10: 0000000000755352 R11: 0000000091d2f26d R12: 0000000000000003
2022-01-16T11:35:20.435292+01:00 zserwerek kernel: [  894.506616] R13: 0000000000020e0b R14: ffff9a6c44a20000 R15: ffff9a6c65535800
2022-01-16T11:35:20.435292+01:00 zserwerek kernel: [  894.508838] FS:  00007facb6f28b80(0000) GS:ffff9a709be00000(0000) knlGS:0000000000000000
2022-01-16T11:35:20.435293+01:00 zserwerek kernel: [  894.511056] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
2022-01-16T11:35:20.435293+01:00 zserwerek kernel: [  894.513284] CR2: 0000000000000000 CR3: 0000000004a5e006 CR4: 00000000003706f0
2022-01-16T11:35:20.435294+01:00 zserwerek kernel: [  894.515522] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
2022-01-16T11:35:20.435294+01:00 zserwerek kernel: [  894.517720] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
marcin-github commented 2 years ago

I run fsck, didn't find anything. After mount:

[15152.008341] BUG: kernel NULL pointer dereference, address: 0000000000000000
[15152.010578] #PF: supervisor read access in kernel mode
[15152.012789] #PF: error_code(0x0000) - not-present page
[15152.014998] PGD 0 P4D 0
[15152.017144] Oops: 0000 [#1] PREEMPT SMP DEBUG_PAGEALLOC NOPTI
[15152.019314] CPU: 0 PID: 70375 Comm: kworker/u8:3 Not tainted 5.15.0-01118-g5d9821e5caba #22
[15152.021479] Hardware name: MSI MS-7982/B150M PRO-VDH (MS-7982), BIOS 3.H0 07/10/2018
[15152.023605] Workqueue: btree_update btree_interior_update_work
[15152.025763] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
[15152.027910] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 9e 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 9e    mov    $0xffffffff9ee39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
[15152.030142] RSP: 0018:ffffabb84f54f838 EFLAGS: 00010206
[15152.032358] RAX: ffffffff9ee39d8c RBX: 0000000000000000 RCX: 00000000000a0914
[15152.034614] RDX: 00000000d33bedf5 RSI: ffffffff9ee39d8c RDI: 00000000001b97ca
[15152.036836] RBP: ffffabb84f54f890 R08: 000000000000000f R09: ffff9a6016825f00
[15152.039072] R10: 00000000001b97ca R11: 000000004f237348 R12: 0000000000000003
[15152.041299] R13: 00000000000a092f R14: ffff9a5e6fea0000 R15: ffff9a6016825f00
[15152.043531] FS:  0000000000000000(0000) GS:ffff9a619be00000(0000) knlGS:0000000000000000
[15152.045770] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15152.047989] CR2: 0000000000000000 CR3: 00000002b4210003 CR4: 00000000003706f0
[15152.050219] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[15152.052463] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[15152.054683] Call Trace:
[15152.056887] ? bch2_alloc_unpack (fs/bcachefs/alloc_background.c:251)
[15152.059074] bch2_mark_alloc.isra.0 (fs/bcachefs/buckets.c:541)
[15152.061252] ? bch2_btree_iter_traverse (fs/bcachefs/btree_iter.c:2032)
[15152.063458] ? check_bucket_ref (fs/bcachefs/super.h:172 fs/bcachefs/buckets.c:666)
[15152.065639] bch2_mark_key (fs/bcachefs/buckets.c:1245)
[15152.067777] ? preempt_count_add (./include/linux/ftrace.h:857 kernel/sched/core.c:5381 kernel/sched/core.c:5378 kernel/sched/core.c:5406)
[15152.069904] ? bch2_trans_start_alloc_update (./arch/x86/include/asm/preempt.h:103 ./include/linux/percpu-rwsem.h:121 fs/bcachefs/alloc_background.h:70 fs/bcachefs/buckets.c:1436)
[15152.071998] ? __wake_up_common_lock (kernel/sched/wait.c:141 (discriminator 1))
[15152.074080] bch2_mark_update (fs/bcachefs/buckets.c:1288)
[15152.076146] ? bch2_trans_fs_usage_apply (./arch/x86/include/asm/preempt.h:103 ./include/linux/percpu-rwsem.h:121 fs/bcachefs/buckets.c:1397)
[15152.078206] do_bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:513 fs/bcachefs/btree_update_leaf.c:708)
[15152.080265] ? perf_ibs_handle_irq (arch/x86/events/amd/ibs.c:695)
[15152.082321] ? replicas_deltas_realloc (fs/bcachefs/buckets.c:436)
[15152.084377] ? bch2_trans_mark_extent (fs/bcachefs/buckets.c:1555)
[15152.086422] __bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:1042 (discriminator 2))
[15152.088460] btree_update_nodes_written (fs/bcachefs/btree_update.h:107 fs/bcachefs/btree_update_interior.c:582)
[15152.090485] btree_interior_update_work (fs/bcachefs/btree_update_interior.c:679)
[15152.092520] process_one_work (kernel/workqueue.c:2297)
[15152.094535] worker_thread (./include/linux/list.h:282 kernel/workqueue.c:2445)
[15152.096541] ? rescuer_thread (kernel/workqueue.c:2387)
[15152.098540] kthread (kernel/kthread.c:319)
[15152.100546] ? set_kthread_struct (kernel/kthread.c:272)
[15152.102527] ret_from_fork (arch/x86/entry/entry_64.S:295)
[15152.104513] Modules linked in: netconsole xfs configfs zram xt_nat xt_tcpudp veth tun xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat ip_tables x_tables bpfilter br_netfilter nfsd auth_rpcgss oid_registry nfs_acl l
ockd grace sunrpc overlay af_packet bridge stp llc snd_hda_codec_hdmi binfmt_misc i915 coretemp hwmon pcrypt nf_nat_ftp nf_conntrack_ftp nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_gtt iosf_mbi ttm i2c_algo_bit x86_pkg_temp_thermal intel_powerclamp drm_kms_helper kvm_intel
cfbfillrect kvm syscopyarea cfbimgblt sysfillrect sysimgblt snd_hda_intel fb_sys_fops cfbcopyarea snd_intel_dspcfg drm snd_hda_codec r8169 snd_hda_core irqbypass realtek snd_pcm mdio_devres rapl of_mdio fb fixed_phy intel_cstate fwnode_mdio libphy i2c_i801 i2c_smbus snd_timer font inte
l_uncore fbdev snd bfq soundcore mei_me i2c_core intel_lpss_pci intel_lpss mei drm_panel_orientation_quirks idma64 cdc_acm virt_dma
[15152.104567]  intel_pch_thermal mfd_core thermal fan tiny_power_button video backlight button acpi_pad raid1 md_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel xhci_pci mpt3sas aesni_intel crypto_simd xhci_hcd cryptd raid_class scsi_transport_sas dm_mod [last unloa
ded: netconsole]
[15152.115820] CR2: 0000000000000000
[15152.118197] ---[ end trace 4d9f8ddca938d3f2 ]---
[15152.120592] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
[15152.122979] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 9e 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 9e    mov    $0xffffffff9ee39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
[15152.125444] RSP: 0018:ffffabb84f54f838 EFLAGS: 00010206
[15152.127905] RAX: ffffffff9ee39d8c RBX: 0000000000000000 RCX: 00000000000a0914
[15152.130379] RDX: 00000000d33bedf5 RSI: ffffffff9ee39d8c RDI: 00000000001b97ca
[15152.132841] RBP: ffffabb84f54f890 R08: 000000000000000f R09: ffff9a6016825f00
[15152.135299] R10: 00000000001b97ca R11: 000000004f237348 R12: 0000000000000003
[15152.137760] R13: 00000000000a092f R14: ffff9a5e6fea0000 R15: ffff9a6016825f00
[15152.140207] FS:  0000000000000000(0000) GS:ffff9a619be00000(0000) knlGS:0000000000000000
[15152.142649] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15152.145111] CR2: 0000000000000000 CR3: 00000002b4210003 CR4: 00000000003706f0
[15152.147564] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[15152.150021] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[15152.169770] list_del corruption. next->prev should be ffffabb841237c38, but was ffff9a5da1fc5f40
[15152.175171] ------------[ cut here ]------------
[15152.180388] kernel BUG at lib/list_debug.c:54!
[15152.185644] invalid opcode: 0000 [#2] PREEMPT SMP DEBUG_PAGEALLOC NOPTI
[15152.190867] CPU: 0 PID: 75955 Comm: burp Tainted: G      D           5.15.0-01118-g5d9821e5caba #22
[15152.196105] Hardware name: MSI MS-7982/B150M PRO-VDH (MS-7982), BIOS 3.H0 07/10/2018
[15152.201362] RIP: 0010:__list_del_entry_valid.cold (lib/list_debug.c:54 (discriminator 3))
[15152.206616] Code: c7 c7 28 5c 0b 9f e8 ad 65 fe ff 0f 0b 48 89 fe 48 c7 c7 b8 5c 0b 9f e8 9c 65 fe ff 0f 0b 48 c7 c7 68 5d 0b 9f e8 8e 65 fe ff <0f> 0b 48 89 f2 48 89 fe 48 c7 c7 28 5d 0b 9f e8 7a 65 fe ff 0f 0b
All code
========
   0:   c7 c7 28 5c 0b 9f       mov    $0x9f0b5c28,%edi
   6:   e8 ad 65 fe ff          call   0xfffffffffffe65b8
   b:   0f 0b                   ud2
   d:   48 89 fe                mov    %rdi,%rsi
  10:   48 c7 c7 b8 5c 0b 9f    mov    $0xffffffff9f0b5cb8,%rdi
  17:   e8 9c 65 fe ff          call   0xfffffffffffe65b8
  1c:   0f 0b                   ud2
  1e:   48 c7 c7 68 5d 0b 9f    mov    $0xffffffff9f0b5d68,%rdi
  25:   e8 8e 65 fe ff          call   0xfffffffffffe65b8
  2a:*  0f 0b                   ud2             <-- trapping instruction
  2c:   48 89 f2                mov    %rsi,%rdx
  2f:   48 89 fe                mov    %rdi,%rsi
  32:   48 c7 c7 28 5d 0b 9f    mov    $0xffffffff9f0b5d28,%rdi
  39:   e8 7a 65 fe ff          call   0xfffffffffffe65b8
  3e:   0f 0b                   ud2

Code starting with the faulting instruction
===========================================
   0:   0f 0b                   ud2
   2:   48 89 f2                mov    %rsi,%rdx
   5:   48 89 fe                mov    %rdi,%rsi
   8:   48 c7 c7 28 5d 0b 9f    mov    $0xffffffff9f0b5d28,%rdi
   f:   e8 7a 65 fe ff          call   0xfffffffffffe658e
  14:   0f 0b                   ud2
[15152.211566] RSP: 0018:ffffabb841237ac8 EFLAGS: 00010246
[15152.215724] RAX: 0000000000000054 RBX: ffffabb841237c28 RCX: 0000000000000000
[15152.219384] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[15152.222800] RBP: ffff9a5e6fea0000 R08: 0000000000000000 R09: 0000000000000000
[15152.225710] R10: 0000000000000000 R11: 0000000000000000 R12: ffff9a5e6fea2ed8
[15152.228522] R13: ffff9a5e4bd1f570 R14: ffff9a5f7659f320 R15: 0000000000000000
[15152.231063] FS:  00007fef048e52c0(0000) GS:ffff9a619be00000(0000) knlGS:0000000000000000
[15152.233555] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15152.235943] CR2: 00007fabd00350a8 CR3: 0000000186ccc002 CR4: 00000000003706f0
[15152.238342] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[15152.240667] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[15152.243044] Call Trace:
[15152.245343] bch2_trans_exit (./include/linux/list.h:132 ./include/linux/list.h:146 fs/bcachefs/btree_iter.c:3067)
[15152.247693] __bch2_unlink (fs/bcachefs/fs.c:509)
[15152.249997] vfs_unlink (fs/namei.c:4102)
[15152.252276] do_unlinkat (fs/namei.c:4169)
[15152.254558] __x64_sys_unlink (fs/namei.c:4217 fs/namei.c:4215 fs/namei.c:4215)
[15152.256942] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[15152.259209] ? do_syscall_64 (./arch/x86/include/asm/jump_label.h:27 arch/x86/entry/common.c:75)
[15152.261419] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
[15152.263783] RIP: 0033:0x7fef049f8217
[15152.266293] Code: f0 ff ff 73 01 c3 48 8b 0d 56 8c 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 29 8c 0c 00 f7 d8 64 89 01 48
All code
========
   0:   f0 ff                   lock (bad)
   2:   ff 73 01                push   0x1(%rbx)
   5:   c3                      ret
   6:   48 8b 0d 56 8c 0c 00    mov    0xc8c56(%rip),%rcx        # 0xc8c63
   d:   f7 d8                   neg    %eax
   f:   64 89 01                mov    %eax,%fs:(%rcx)
  12:   48 83 c8 ff             or     $0xffffffffffffffff,%rax
  16:   c3                      ret
  17:   66 2e 0f 1f 84 00 00    cs nopw 0x0(%rax,%rax,1)
  1e:   00 00 00
  21:   66 90                   xchg   %ax,%ax
  23:   b8 57 00 00 00          mov    $0x57,%eax
  28:   0f 05                   syscall
  2a:*  48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax         <-- trapping instruction
  30:   73 01                   jae    0x33
  32:   c3                      ret
  33:   48 8b 0d 29 8c 0c 00    mov    0xc8c29(%rip),%rcx        # 0xc8c63
  3a:   f7 d8                   neg    %eax
  3c:   64 89 01                mov    %eax,%fs:(%rcx)
  3f:   48                      rex.W

Code starting with the faulting instruction
===========================================
   0:   48 3d 01 f0 ff ff       cmp    $0xfffffffffffff001,%rax
   6:   73 01                   jae    0x9
   8:   c3                      ret
   9:   48 8b 0d 29 8c 0c 00    mov    0xc8c29(%rip),%rcx        # 0xc8c39
  10:   f7 d8                   neg    %eax
  12:   64 89 01                mov    %eax,%fs:(%rcx)
  15:   48                      rex.W
[15152.268894] RSP: 002b:00007ffcf687d168 EFLAGS: 00000202 ORIG_RAX: 0000000000000057
[15152.271469] RAX: ffffffffffffffda RBX: 000055661f84dcf0 RCX: 00007fef049f8217
[15152.274021] RDX: 0000000000000004 RSI: 000055661f84dcf0 RDI: 000055661f7e3200
[15152.276582] RBP: 00007fef048e5230 R08: 000055661f7e3200 R09: 0000000000000001
[15152.279091] R10: 000000000000007c R11: 0000000000000202 R12: 000055661f847690
[15152.281529] R13: 0000000000000001 R14: 000055661f84dd03 R15: 00000000ffffffff
[15152.283986] Modules linked in: netconsole xfs configfs zram xt_nat xt_tcpudp veth tun xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat ip_tables x_tables bpfilter br_netfilter nfsd auth_rpcgss oid_registry nfs_acl l
ockd grace sunrpc overlay af_packet bridge stp llc snd_hda_codec_hdmi binfmt_misc i915 coretemp hwmon pcrypt nf_nat_ftp nf_conntrack_ftp nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 intel_gtt iosf_mbi ttm i2c_algo_bit x86_pkg_temp_thermal intel_powerclamp drm_kms_helper kvm_intel
cfbfillrect kvm syscopyarea cfbimgblt sysfillrect sysimgblt snd_hda_intel fb_sys_fops cfbcopyarea snd_intel_dspcfg drm snd_hda_codec r8169 snd_hda_core irqbypass realtek snd_pcm mdio_devres rapl of_mdio fb fixed_phy intel_cstate fwnode_mdio libphy i2c_i801 i2c_smbus snd_timer font inte
l_uncore fbdev snd bfq soundcore mei_me i2c_core intel_lpss_pci intel_lpss mei drm_panel_orientation_quirks idma64 cdc_acm virt_dma
[15152.284037]  intel_pch_thermal mfd_core thermal fan tiny_power_button video backlight button acpi_pad raid1 md_mod crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel xhci_pci mpt3sas aesni_intel crypto_simd xhci_hcd cryptd raid_class scsi_transport_sas dm_mod [last unloa
ded: netconsole]
[15152.297929] ---[ end trace 4d9f8ddca938d3f3 ]---
[15152.300908] RIP: 0010:bch2_set_bucket_needs_journal_commit (fs/bcachefs/buckets_waiting_for_journal.c:111 (discriminator 2))
[15152.303864] Code: 48 08 0f 86 da 01 00 00 4c 39 c8 48 0f 45 d8 48 83 c6 04 48 c7 c0 8c 9d e3 9e 48 39 f0 74 07 8b 16 e9 6a ff ff ff 41 83 ec 01 <48> 8b 03 48 89 3b 48 8b 53 08 4c 89 6b 08 74 20 49 8b 8e 80 2f 01
All code
========
   0:   48 08 0f                rex.W or %cl,(%rdi)
   3:   86 da                   xchg   %bl,%dl
   5:   01 00                   add    %eax,(%rax)
   7:   00 4c 39 c8             add    %cl,-0x38(%rcx,%rdi,1)
   b:   48 0f 45 d8             cmovne %rax,%rbx
   f:   48 83 c6 04             add    $0x4,%rsi
  13:   48 c7 c0 8c 9d e3 9e    mov    $0xffffffff9ee39d8c,%rax
  1a:   48 39 f0                cmp    %rsi,%rax
  1d:   74 07                   je     0x26
  1f:   8b 16                   mov    (%rsi),%edx
  21:   e9 6a ff ff ff          jmp    0xffffffffffffff90
  26:   41 83 ec 01             sub    $0x1,%r12d
  2a:*  48 8b 03                mov    (%rbx),%rax              <-- trapping instruction
  2d:   48 89 3b                mov    %rdi,(%rbx)
  30:   48 8b 53 08             mov    0x8(%rbx),%rdx
  34:   4c 89 6b 08             mov    %r13,0x8(%rbx)
  38:   74 20                   je     0x5a
  3a:   49                      rex.WB
  3b:   8b                      .byte 0x8b
  3c:   8e                      .byte 0x8e
  3d:   80 2f 01                subb   $0x1,(%rdi)

Code starting with the faulting instruction
===========================================
   0:   48 8b 03                mov    (%rbx),%rax
   3:   48 89 3b                mov    %rdi,(%rbx)
   6:   48 8b 53 08             mov    0x8(%rbx),%rdx
   a:   4c 89 6b 08             mov    %r13,0x8(%rbx)
   e:   74 20                   je     0x30
  10:   49                      rex.WB
  11:   8b                      .byte 0x8b
  12:   8e                      .byte 0x8e
  13:   80 2f 01                subb   $0x1,(%rdi)
[15152.306887] RSP: 0018:ffffabb84f54f838 EFLAGS: 00010206
[15152.309959] RAX: ffffffff9ee39d8c RBX: 0000000000000000 RCX: 00000000000a0914
[15152.313002] RDX: 00000000d33bedf5 RSI: ffffffff9ee39d8c RDI: 00000000001b97ca
[15152.316044] RBP: ffffabb84f54f890 R08: 000000000000000f R09: ffff9a6016825f00
[15152.319100] R10: 00000000001b97ca R11: 000000004f237348 R12: 0000000000000003
[15152.322257] R13: 00000000000a092f R14: ffff9a5e6fea0000 R15: ffff9a6016825f00
[15152.325330] FS:  00007fef048e52c0(0000) GS:ffff9a619be00000(0000) knlGS:0000000000000000
[15152.328504] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[15152.331655] CR2: 00007fabd00350a8 CR3: 0000000186ccc002 CR4: 00000000003706f0
[15152.334711] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[15152.337823] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[16313.550257] perf: interrupt took too long (4072 > 4047), lowering kernel.perf_event_max_sample_rate to 49000
[17352.126620] bcachefs (sde): recovering from clean shutdown, journal seq 134790
[17362.985440] bcachefs (sde): going read-write
[17362.993450] bcachefs (sde): mounted with opts: metadata_replicas=2,compression=lz4,gc_reserve_percent=5,wide_macs
koverstreet commented 2 years ago

This should be fixed now - I rewrote the cuckoo hashing in this code