syzbot


BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key

Status: upstream: reported C repro on 2025/05/27 15:15
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+9b7e20f8ff98aed7254e@syzkaller.appspotmail.com
First crash: 19d, last: 1d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key 0 (1) 2025/05/27 15:15
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in __bch2_bkey_unpack_key bcachefs C 11 101d 100d 0/28 auto-obsoleted due to no activity on 2025/05/14 23:03

Sample crash report:
BUG: unable to handle page fault for address: ffffed1108cc0204
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 5ffcd067 P4D 5ffcd067 PUD 0 
Oops: Oops: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5312 Comm: read_btree_node Not tainted 6.15.0-syzkaller-01599-gddddf9d64f73 #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:unpack_state_init fs/bcachefs/bkey.c:151 [inline]
RIP: 0010:__bch2_bkey_unpack_key+0x5b/0xe10 fs/bcachefs/bkey.c:269
Code: 42 0f b6 04 38 84 c0 0f 85 b2 09 00 00 48 89 5c 24 18 0f b6 1b 8d 43 ff 4c 8d 34 c5 00 00 00 00 4d 01 ee 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 f6 32 0c fe 4c 89 74 24 08 49 8b
RSP: 0018:ffffc9000d336ab8 EFLAGS: 00010a02
RAX: 1ffff11108cc0204 RBX: 0000000000000000 RCX: ffff88801fd64880
RDX: 0000000000000000 RSI: ffff88803ed370c0 RDI: ffffc9000d336d30
RBP: ffffc9000d336dc8 R08: ffff88801fd64880 R09: 0000000000000005
R10: 0000000000000004 R11: 0000000000000000 R12: ffffc9000d336d30
R13: ffff888046601028 R14: ffff888846601020 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88808d6b1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1108cc0204 CR3: 0000000043885000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __bch2_bkey_compat+0x4db/0xbd0 fs/bcachefs/bkey_methods.c:480
 bch2_bkey_compat fs/bcachefs/bkey_methods.h:134 [inline]
 validate_bset_keys+0x6c1/0x1390 fs/bcachefs/btree_io.c:983
 bch2_btree_node_read_done+0x18c8/0x4f60 fs/bcachefs/btree_io.c:1211
 btree_node_read_work+0x426/0xe30 fs/bcachefs/btree_io.c:1400
 bch2_btree_node_read+0x887/0x29f0 fs/bcachefs/btree_io.c:-1
 bch2_btree_node_fill+0xd12/0x14f0 fs/bcachefs/btree_cache.c:994
 bch2_btree_node_get_noiter+0xa2c/0x1000 fs/bcachefs/btree_cache.c:1261
 found_btree_node_is_readable fs/bcachefs/btree_node_scan.c:85 [inline]
 try_read_btree_node fs/bcachefs/btree_node_scan.c:220 [inline]
 read_btree_nodes_worker+0x1319/0x1e20 fs/bcachefs/btree_node_scan.c:269
 kthread+0x711/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
CR2: ffffed1108cc0204
---[ end trace 0000000000000000 ]---
RIP: 0010:unpack_state_init fs/bcachefs/bkey.c:151 [inline]
RIP: 0010:__bch2_bkey_unpack_key+0x5b/0xe10 fs/bcachefs/bkey.c:269
Code: 42 0f b6 04 38 84 c0 0f 85 b2 09 00 00 48 89 5c 24 18 0f b6 1b 8d 43 ff 4c 8d 34 c5 00 00 00 00 4d 01 ee 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 f6 32 0c fe 4c 89 74 24 08 49 8b
RSP: 0018:ffffc9000d336ab8 EFLAGS: 00010a02
RAX: 1ffff11108cc0204 RBX: 0000000000000000 RCX: ffff88801fd64880
RDX: 0000000000000000 RSI: ffff88803ed370c0 RDI: ffffc9000d336d30
RBP: ffffc9000d336dc8 R08: ffff88801fd64880 R09: 0000000000000005
R10: 0000000000000004 R11: 0000000000000000 R12: ffffc9000d336d30
R13: ffff888046601028 R14: ffff888846601020 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff88808d6b1000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffed1108cc0204 CR3: 0000000043885000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	42 0f b6 04 38       	movzbl (%rax,%r15,1),%eax
   5:	84 c0                	test   %al,%al
   7:	0f 85 b2 09 00 00    	jne    0x9bf
   d:	48 89 5c 24 18       	mov    %rbx,0x18(%rsp)
  12:	0f b6 1b             	movzbl (%rbx),%ebx
  15:	8d 43 ff             	lea    -0x1(%rbx),%eax
  18:	4c 8d 34 c5 00 00 00 	lea    0x0(,%rax,8),%r14
  1f:	00
  20:	4d 01 ee             	add    %r13,%r14
  23:	4c 89 f0             	mov    %r14,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 f6 32 0c fe       	call   0xfe0c332f
  39:	4c 89 74 24 08       	mov    %r14,0x8(%rsp)
  3e:	49                   	rex.WB
  3f:	8b                   	.byte 0x8b

Crashes (69):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/27 08:58 upstream ddddf9d64f73 874a1386 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/12 04:01 upstream 488ef3560196 98683f8f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/09 16:30 upstream 19272b37aa4f 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/09 07:20 upstream 939f15e640f1 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/07 11:10 upstream c0c9379f235d 4826c28e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 09:18 upstream 1af80d00e1e0 6b6b5f21 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/02 08:42 upstream cd2e103d57e5 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/01 07:30 upstream 4cb6c8af8591 3d2f584d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/14 00:15 upstream 27605c8c0f69 1f72c409 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/13 20:04 upstream 27605c8c0f69 1f72c409 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/13 08:11 upstream 27605c8c0f69 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/13 02:10 upstream 27605c8c0f69 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/12 20:58 upstream 2c4a1f3fe03e 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/12 12:34 upstream 2c4a1f3fe03e 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/12 08:58 upstream 488ef3560196 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/12 06:00 upstream 488ef3560196 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/11 23:20 upstream 488ef3560196 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/11 18:38 upstream aef17cb3d3c4 98683f8f .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/10 20:59 upstream f09079bd04a9 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/10 19:47 upstream f09079bd04a9 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/10 15:09 upstream f09079bd04a9 5d7e17ca .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/10 01:19 upstream 19272b37aa4f 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/09 14:25 upstream 19272b37aa4f 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/09 08:51 upstream 939f15e640f1 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/09 04:24 upstream 939f15e640f1 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/08 17:47 upstream 8630c59e9936 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/08 12:58 upstream 8630c59e9936 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/08 06:01 upstream 8630c59e9936 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/07 19:31 upstream bdc7f8c5adad 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/07 19:23 upstream bdc7f8c5adad 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/07 06:30 upstream c0c9379f235d 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/07 03:33 upstream c0c9379f235d 4826c28e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/06 11:11 upstream e271ed52b344 3d899f2c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 15:46 upstream ec7714e49479 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 13:33 upstream ec7714e49479 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 09:21 upstream 1af80d00e1e0 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 07:50 upstream 1af80d00e1e0 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 06:41 upstream 1af80d00e1e0 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 04:36 upstream 1af80d00e1e0 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/05 02:24 upstream 1af80d00e1e0 6b6b5f21 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/04 16:55 upstream 5abc7438f1e9 e565f08d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/04 04:09 upstream 5abc7438f1e9 a30356b7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/04 03:01 upstream 5abc7438f1e9 a30356b7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/03 03:39 upstream 7f9039c524a3 a30356b7 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/02 07:39 upstream cd2e103d57e5 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/02 03:14 upstream 7d4e49a77d99 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/02 02:04 upstream 7d4e49a77d99 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/01 23:33 upstream 7d4e49a77d99 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/01 21:29 upstream 7d4e49a77d99 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/01 07:36 upstream 4cb6c8af8591 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/31 15:31 upstream 0f70f5b08a47 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/31 09:06 upstream 8477ab143069 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/31 06:37 upstream 8477ab143069 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/31 05:43 upstream 8477ab143069 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/30 23:53 upstream 8477ab143069 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/30 16:10 upstream f66bc387efbe 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/30 06:06 upstream e0797d3b91de 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/30 03:19 upstream e0797d3b91de 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/30 02:18 upstream e0797d3b91de 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/28 21:17 upstream feacb1774bd5 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/27 09:08 upstream ddddf9d64f73 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/05/27 08:01 upstream ddddf9d64f73 874a1386 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
2025/06/14 02:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 39dfc971e42d 0e8da31f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel paging request in __bch2_bkey_unpack_key
* Struck through repros no longer work on HEAD.