Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sonicrules1234/2736c99d8b16cce99dbc280206ac3910 to your computer and use it in GitHub Desktop.

Select an option

Save sonicrules1234/2736c99d8b16cce99dbc280206ac3910 to your computer and use it in GitHub Desktop.
[ 1.448493] tsc: Refined TSC clocksource calibration: 3193.999 MHz
[ 93.112287] bcachefs (nvme0n1p2): subvol root 4096 has wrong bi_subvol field: got 1, should be 2, fixing
[ 93.112297] bcachefs (nvme0n1p2): subvol root 4096 has wrong bi_subvol field: got 1, should be 2, fixing
[ 93.112300] bcachefs (nvme0n1p2): dirent has wrong d_parent_subvol field: got 1, should be 0, fixing
[ 93.241495] ------------[ cut here ]------------
[ 93.241497] kernel BUG at fs/bcachefs/btree_update_leaf.c:264!
[ 93.241504] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[ 93.241512] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS PRO WIFI/X570 AORUS PRO WIFI, BIOS F30 09/15/2020
[ 93.241514] RIP: 0010:__bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:264 fs/bcachefs/btree_update_leaf.c:880 fs/bcachefs/btree_update_leaf.c:1159)
[ 93.241520] Code: 8d b9 28 06 00 00 48 f7 f6 48 6b d2 14 48 c1 e0 0c 48 8d 34 10 e8 59 fc 18 00 83 78 04 00 75 0a 83 78 08 00 0f 84 5b f4 ff ff <0f> 0b 0f 0b 45 31 c0 44 89 d9 44 89 ea 4c 89 f6 4c 89 e7 44 89 9d
All code
========
0: 8d b9 28 06 00 00 lea 0x628(%rcx),%edi
6: 48 f7 f6 div %rsi
9: 48 6b d2 14 imul $0x14,%rdx,%rdx
d: 48 c1 e0 0c shl $0xc,%rax
11: 48 8d 34 10 lea (%rax,%rdx,1),%rsi
15: e8 59 fc 18 00 call 0x18fc73
1a: 83 78 04 00 cmpl $0x0,0x4(%rax)
1e: 75 0a jne 0x2a
20: 83 78 08 00 cmpl $0x0,0x8(%rax)
24: 0f 84 5b f4 ff ff je 0xfffffffffffff485
2a:* 0f 0b ud2 <-- trapping instruction
2c: 0f 0b ud2
2e: 45 31 c0 xor %r8d,%r8d
31: 44 89 d9 mov %r11d,%ecx
34: 44 89 ea mov %r13d,%edx
37: 4c 89 f6 mov %r14,%rsi
3a: 4c 89 e7 mov %r12,%rdi
3d: 44 rex.R
3e: 89 .byte 0x89
3f: 9d popf
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 0f 0b ud2
4: 45 31 c0 xor %r8d,%r8d
7: 44 89 d9 mov %r11d,%ecx
a: 44 89 ea mov %r13d,%edx
d: 4c 89 f6 mov %r14,%rsi
10: 4c 89 e7 mov %r12,%rdi
13: 44 rex.R
14: 89 .byte 0x89
15: 9d popf
[ 93.241523] RSP: 0018:ffffbf9004a97600 EFLAGS: 00010286
[ 93.241525] RAX: ffff9c2f06b2c050 RBX: 0000000000000001 RCX: 0000000000000006
[ 93.241527] RDX: ffff9c2f06b2c050 RSI: 0000000000000050 RDI: 0000000000000000
[ 93.241528] RBP: ffffbf9004a976b0 R08: ffff9c2f06b2c000 R09: 000000000000000c
[ 93.241529] R10: 0000000000000000 R11: 0000000000000060 R12: ffffbf9004a97820
[ 93.241530] R13: ffff9c2f7ded6200 R14: ffff9c2f704201a4 R15: ffff9c2f7ded6250
[ 93.241532] FS: 00007f4f618f7b80(0000) GS:ffff9c3426b40000(0000) knlGS:0000000000000000
[ 93.241534] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.241535] CR2: 00007f51c6fb11c0 CR3: 0000000105784000 CR4: 00000000003506e0
[ 93.241536] Call Trace:
[ 93.241538] <TASK>
[ 93.241540] ? check_dirents (fs/bcachefs/btree_update.h:106 fs/bcachefs/fsck.c:1686)
[ 93.241543] check_dirents (fs/bcachefs/btree_update.h:106 fs/bcachefs/fsck.c:1686)
[ 93.241547] ? check_dirents (fs/bcachefs/fsck.c:1686 (discriminator 4))
[ 93.241550] ? check_dirents (fs/bcachefs/bcachefs_format.h:159 (discriminator 16) fs/bcachefs/btree_iter.h:230 (discriminator 16) fs/bcachefs/btree_iter.h:331 (discriminator 16) fs/bcachefs/btree_iter.h:326 (discriminator 16) fs/bcachefs/fsck.c:1686 (discriminator 16))
[ 93.241552] bch2_fsck_full (fs/bcachefs/fsck.c:2367)
[ 93.241554] bch2_fs_recovery.cold (fs/bcachefs/recovery.c:1354 (discriminator 1))
[ 93.241558] ? internal_create_groups (fs/sysfs/group.c:188)
[ 93.241562] ? number (./include/linux/printbuf.h:151 lib/vsprintf.c:559)
[ 93.241565] ? prt_vprintf (./include/linux/printbuf.h:151 lib/vsprintf.c:2781)
[ 93.241567] ? __kernfs_new_node (fs/kernfs/dir.c:633)
[ 93.241570] ? __bch2_sb_field_resize (fs/bcachefs/super-io.c:79)
[ 93.241574] ? __copy_super (fs/bcachefs/super-io.c:460 (discriminator 2))
[ 93.241576] bch2_fs_start (fs/bcachefs/super.c:900)
[ 93.241579] bch2_fs_open (fs/bcachefs/super.c:1910)
[ 93.241582] bch2_mount (fs/bcachefs/fs.c:1793)
[ 93.241586] legacy_get_tree (fs/fs_context.c:612)
[ 93.241589] vfs_get_tree (fs/super.c:1498)
[ 93.241593] path_mount (fs/namespace.c:3040 fs/namespace.c:3370)
[ 93.241596] __x64_sys_mount (fs/namespace.c:3384 fs/namespace.c:3591 fs/namespace.c:3568 fs/namespace.c:3568)
[ 93.241599] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[ 93.241602] ? syscall_exit_to_user_mode (./arch/x86/include/asm/jump_label.h:55 ./arch/x86/include/asm/nospec-branch.h:306 ./arch/x86/include/asm/entry-common.h:94 kernel/entry/common.c:133 kernel/entry/common.c:296)
[ 93.241604] ? do_syscall_64 (arch/x86/entry/common.c:87)
[ 93.241606] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:115)
[ 93.241609] RIP: 0033:0x7f4f61a44abe
[ 93.241612] Code: 48 8b 0d dd a2 0e 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d aa a2 0e 00 f7 d8 64 89 01 48
All code
========
0: 48 8b 0d dd a2 0e 00 mov 0xea2dd(%rip),%rcx # 0xea2e4
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: 90 nop
1c: f3 0f 1e fa endbr64
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 aa a2 0e 00 mov 0xea2aa(%rip),%rcx # 0xea2e4
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 aa a2 0e 00 mov 0xea2aa(%rip),%rcx # 0xea2ba
10: f7 d8 neg %eax
12: 64 89 01 mov %eax,%fs:(%rcx)
15: 48 rex.W
[ 93.241614] RSP: 002b:00007fffdfadf688 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 93.241616] RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f4f61a44abe
[ 93.241617] RDX: 0000564a945c67f0 RSI: 0000564a945c7560 RDI: 0000564a945c6850
[ 93.241619] RBP: 0000564a945c65c0 R08: 0000564a945c6810 R09: 0000000000000073
[ 93.241620] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 93.241621] R13: 0000564a945c6850 R14: 0000564a945c67f0 R15: 0000564a945c65c0
[ 93.241623] </TASK>
[ 93.241624] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm joydev mousedev iwlmvm intel_rapl_msr intel_rapl_common mac80211 8021q garp snd_hda_codec_realtek mrp snd_hda_codec_generic stp edac_mce_amd ledtrig_audio snd_hda_codec_hdmi libarc4 llc kvm_amd btusb snd_hda_intel gigabyte_wmi wmi_bmof mxm_wmi btrtl snd_intel_dspcfg snd_intel_sdw_acpi kvm iwlwifi btbcm irqbypass snd_hda_codec nls_iso8859_1 btintel crct10dif_pclmul vfat snd_hda_core btmtk crc32_pclmul iwlmei ghash_clmulni_intel snd_hwdep fat bluetooth snd_pcm aesni_intel cfg80211 snd_timer crypto_simd ecdh_generic nvidia_drm(OE) ccp cryptd snd sp5100_tco rfkill nvidia_modeset(OE) rapl nvidia_uvm(OE) pcspkr igb usbhid i2c_piix4 k10temp rng_core crc16 soundcore mei dca wmi pinctrl_amd mac_hid acpi_cpufreq nvidia(OE) crypto_user fuse bpf_preload ip_tables x_tables btrfs blake2b_generic nvme sr_mod crc32c_intel xhci_pci cdrom nvme_core xhci_pci_renesas
[ 93.241679] ---[ end trace 0000000000000000 ]---
[ 93.241681] RIP: 0010:__bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:264 fs/bcachefs/btree_update_leaf.c:880 fs/bcachefs/btree_update_leaf.c:1159)
[ 93.241683] Code: 8d b9 28 06 00 00 48 f7 f6 48 6b d2 14 48 c1 e0 0c 48 8d 34 10 e8 59 fc 18 00 83 78 04 00 75 0a 83 78 08 00 0f 84 5b f4 ff ff <0f> 0b 0f 0b 45 31 c0 44 89 d9 44 89 ea 4c 89 f6 4c 89 e7 44 89 9d
All code
========
0: 8d b9 28 06 00 00 lea 0x628(%rcx),%edi
6: 48 f7 f6 div %rsi
9: 48 6b d2 14 imul $0x14,%rdx,%rdx
d: 48 c1 e0 0c shl $0xc,%rax
11: 48 8d 34 10 lea (%rax,%rdx,1),%rsi
15: e8 59 fc 18 00 call 0x18fc73
1a: 83 78 04 00 cmpl $0x0,0x4(%rax)
1e: 75 0a jne 0x2a
20: 83 78 08 00 cmpl $0x0,0x8(%rax)
24: 0f 84 5b f4 ff ff je 0xfffffffffffff485
2a:* 0f 0b ud2 <-- trapping instruction
2c: 0f 0b ud2
2e: 45 31 c0 xor %r8d,%r8d
31: 44 89 d9 mov %r11d,%ecx
34: 44 89 ea mov %r13d,%edx
37: 4c 89 f6 mov %r14,%rsi
3a: 4c 89 e7 mov %r12,%rdi
3d: 44 rex.R
3e: 89 .byte 0x89
3f: 9d popf
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 0f 0b ud2
4: 45 31 c0 xor %r8d,%r8d
7: 44 89 d9 mov %r11d,%ecx
a: 44 89 ea mov %r13d,%edx
d: 4c 89 f6 mov %r14,%rsi
10: 4c 89 e7 mov %r12,%rdi
13: 44 rex.R
14: 89 .byte 0x89
15: 9d popf
[ 93.241685] RSP: 0018:ffffbf9004a97600 EFLAGS: 00010286
[ 93.241687] RAX: ffff9c2f06b2c050 RBX: 0000000000000001 RCX: 0000000000000006
[ 93.241688] RDX: ffff9c2f06b2c050 RSI: 0000000000000050 RDI: 0000000000000000
[ 93.241689] RBP: ffffbf9004a976b0 R08: ffff9c2f06b2c000 R09: 000000000000000c
[ 93.241690] R10: 0000000000000000 R11: 0000000000000060 R12: ffffbf9004a97820
[ 93.241691] R13: ffff9c2f7ded6200 R14: ffff9c2f704201a4 R15: ffff9c2f7ded6250
[ 93.241692] FS: 00007f4f618f7b80(0000) GS:ffff9c3426b40000(0000) knlGS:0000000000000000
[ 93.241694] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.241695] CR2: 00007f51c6fb11c0 CR3: 0000000105784000 CR4: 00000000003506e0
[ 93.242297] audit: type=1106 audit(1658251489.254:83): pid=1384 uid=1000 auid=1000 ses=3 msg='op=PAM:session_close grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 93.242313] audit: type=1104 audit(1658251489.254:84): pid=1384 uid=1000 auid=1000 ses=3 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/1 res=success'
[ 93.242724] audit: type=1701 audit(1658251489.256:85): auid=1000 uid=1000 gid=0 ses=3 pid=1384 comm="sudo" exe="/usr/bin/sudo" sig=11 res=1
[ 93.261197] audit: type=1334 audit(1658251489.274:86): prog-id=17 op=LOAD
[ 93.324485] BUG: kernel NULL pointer dereference, address: 0000000000000390
[ 93.324491] #PF: supervisor read access in kernel mode
[ 93.324493] #PF: error_code(0x0000) - not-present page
[ 93.324494] PGD 0 P4D 0
[ 93.324497] Oops: 0000 [#2] PREEMPT SMP NOPTI
[ 93.324503] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS PRO WIFI/X570 AORUS PRO WIFI, BIOS F30 09/15/2020
[ 93.324505] RIP: 0010:__bch2_trans_init (fs/bcachefs/btree_iter.c:3319)
[ 93.324510] Code: 0f 84 cc 00 00 00 49 8b 46 50 8b 90 90 03 00 00 eb 14 48 8b 45 10 48 8d 68 f0 48 89 c3 4c 39 f8 0f 84 ac 00 00 00 48 8b 45 50 <3b> 90 90 03 00 00 7d e0 4c 8b 65 18 4d 8d 7e 10 48 89 da 4c 89 ff
All code
========
0: 0f 84 cc 00 00 00 je 0xd2
6: 49 8b 46 50 mov 0x50(%r14),%rax
a: 8b 90 90 03 00 00 mov 0x390(%rax),%edx
10: eb 14 jmp 0x26
12: 48 8b 45 10 mov 0x10(%rbp),%rax
16: 48 8d 68 f0 lea -0x10(%rax),%rbp
1a: 48 89 c3 mov %rax,%rbx
1d: 4c 39 f8 cmp %r15,%rax
20: 0f 84 ac 00 00 00 je 0xd2
26: 48 8b 45 50 mov 0x50(%rbp),%rax
2a:* 3b 90 90 03 00 00 cmp 0x390(%rax),%edx <-- trapping instruction
30: 7d e0 jge 0x12
32: 4c 8b 65 18 mov 0x18(%rbp),%r12
36: 4d 8d 7e 10 lea 0x10(%r14),%r15
3a: 48 89 da mov %rbx,%rdx
3d: 4c 89 ff mov %r15,%rdi
Code starting with the faulting instruction
===========================================
0: 3b 90 90 03 00 00 cmp 0x390(%rax),%edx
6: 7d e0 jge 0xffffffffffffffe8
8: 4c 8b 65 18 mov 0x18(%rbp),%r12
c: 4d 8d 7e 10 lea 0x10(%r14),%r15
10: 48 89 da mov %rbx,%rdx
13: 4c 89 ff mov %r15,%rdi
[ 93.324513] RSP: 0018:ffffbf90046f3c40 EFLAGS: 00010283
[ 93.324515] RAX: 0000000000000000 RBX: ffffbf9004a97830 RCX: 0000000000000000
[ 93.324516] RDX: 0000000000000572 RSI: 0000000000000018 RDI: ffff9c2f70423168
[ 93.324518] RBP: ffffbf9004a97820 R08: ffffffffb6e9cde0 R09: ffffbf90046f3c90
[ 93.324519] R10: 0000000000000001 R11: 00000000000338da R12: ffff9c2f70420000
[ 93.324520] R13: ffff9c2f70423168 R14: ffffbf90046f3c90 R15: ffff9c2f70423188
[ 93.324522] FS: 0000000000000000(0000) GS:ffff9c3426a40000(0000) knlGS:0000000000000000
[ 93.324523] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.324525] CR2: 0000000000000390 CR3: 0000000108326000 CR4: 00000000003506e0
[ 93.324526] Call Trace:
[ 93.324528] <TASK>
[ 93.324531] bch2_btree_key_cache_journal_flush (fs/bcachefs/btree_key_cache.c:563)
[ 93.324536] ? btree_key_cache_flush_pos (fs/bcachefs/btree_key_cache.c:544)
[ 93.324538] journal_flush_pins (fs/bcachefs/journal_reclaim.c:513)
[ 93.324541] __bch2_journal_reclaim (fs/bcachefs/journal_reclaim.c:652)
[ 93.324544] bch2_journal_reclaim_thread (fs/bcachefs/journal_reclaim.c:694)
[ 93.324546] ? __bch2_journal_reclaim (fs/bcachefs/journal_reclaim.c:676)
[ 93.324549] kthread (kernel/kthread.c:376)
[ 93.324553] ? kthread_complete_and_exit (kernel/kthread.c:331)
[ 93.324555] ret_from_fork (arch/x86/entry/entry_64.S:304)
[ 93.324559] </TASK>
[ 93.324560] Modules linked in: snd_seq_dummy snd_hrtimer snd_seq snd_seq_device ccm joydev mousedev iwlmvm intel_rapl_msr intel_rapl_common mac80211 8021q garp snd_hda_codec_realtek mrp snd_hda_codec_generic stp edac_mce_amd ledtrig_audio snd_hda_codec_hdmi libarc4 llc kvm_amd btusb snd_hda_intel gigabyte_wmi wmi_bmof mxm_wmi btrtl snd_intel_dspcfg snd_intel_sdw_acpi kvm iwlwifi btbcm irqbypass snd_hda_codec nls_iso8859_1 btintel crct10dif_pclmul vfat snd_hda_core btmtk crc32_pclmul iwlmei ghash_clmulni_intel snd_hwdep fat bluetooth snd_pcm aesni_intel cfg80211 snd_timer crypto_simd ecdh_generic nvidia_drm(OE) ccp cryptd snd sp5100_tco rfkill nvidia_modeset(OE) rapl nvidia_uvm(OE) pcspkr igb usbhid i2c_piix4 k10temp rng_core crc16 soundcore mei dca wmi pinctrl_amd mac_hid acpi_cpufreq nvidia(OE) crypto_user fuse bpf_preload ip_tables x_tables btrfs blake2b_generic nvme sr_mod crc32c_intel xhci_pci cdrom nvme_core xhci_pci_renesas
[ 93.324611] CR2: 0000000000000390
[ 93.324613] ---[ end trace 0000000000000000 ]---
[ 93.324614] RIP: 0010:__bch2_trans_commit (fs/bcachefs/btree_update_leaf.c:264 fs/bcachefs/btree_update_leaf.c:880 fs/bcachefs/btree_update_leaf.c:1159)
[ 93.324617] Code: 8d b9 28 06 00 00 48 f7 f6 48 6b d2 14 48 c1 e0 0c 48 8d 34 10 e8 59 fc 18 00 83 78 04 00 75 0a 83 78 08 00 0f 84 5b f4 ff ff <0f> 0b 0f 0b 45 31 c0 44 89 d9 44 89 ea 4c 89 f6 4c 89 e7 44 89 9d
All code
========
0: 8d b9 28 06 00 00 lea 0x628(%rcx),%edi
6: 48 f7 f6 div %rsi
9: 48 6b d2 14 imul $0x14,%rdx,%rdx
d: 48 c1 e0 0c shl $0xc,%rax
11: 48 8d 34 10 lea (%rax,%rdx,1),%rsi
15: e8 59 fc 18 00 call 0x18fc73
1a: 83 78 04 00 cmpl $0x0,0x4(%rax)
1e: 75 0a jne 0x2a
20: 83 78 08 00 cmpl $0x0,0x8(%rax)
24: 0f 84 5b f4 ff ff je 0xfffffffffffff485
2a:* 0f 0b ud2 <-- trapping instruction
2c: 0f 0b ud2
2e: 45 31 c0 xor %r8d,%r8d
31: 44 89 d9 mov %r11d,%ecx
34: 44 89 ea mov %r13d,%edx
37: 4c 89 f6 mov %r14,%rsi
3a: 4c 89 e7 mov %r12,%rdi
3d: 44 rex.R
3e: 89 .byte 0x89
3f: 9d popf
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 0f 0b ud2
4: 45 31 c0 xor %r8d,%r8d
7: 44 89 d9 mov %r11d,%ecx
a: 44 89 ea mov %r13d,%edx
d: 4c 89 f6 mov %r14,%rsi
10: 4c 89 e7 mov %r12,%rdi
13: 44 rex.R
14: 89 .byte 0x89
15: 9d popf
[ 93.324619] RSP: 0018:ffffbf9004a97600 EFLAGS: 00010286
[ 93.324620] RAX: ffff9c2f06b2c050 RBX: 0000000000000001 RCX: 0000000000000006
[ 93.324622] RDX: ffff9c2f06b2c050 RSI: 0000000000000050 RDI: 0000000000000000
[ 93.324623] RBP: ffffbf9004a976b0 R08: ffff9c2f06b2c000 R09: 000000000000000c
[ 93.324624] R10: 0000000000000000 R11: 0000000000000060 R12: ffffbf9004a97820
[ 93.324625] R13: ffff9c2f7ded6200 R14: ffff9c2f704201a4 R15: ffff9c2f7ded6250
[ 93.324626] FS: 0000000000000000(0000) GS:ffff9c3426a40000(0000) knlGS:0000000000000000
[ 93.324627] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 93.324629] CR2: 0000000000000390 CR3: 0000000108326000 CR4: 00000000003506e0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment