syzbot


BUG: unable to handle kernel paging request in bch2_btree_cache_scan (2)

Status: upstream: reported on 2024/11/11 19:43
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+7b48a45a8154d8d0a75d@syzkaller.appspotmail.com
First crash: 37d, last: 24d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] BUG: unable to handle kernel paging request in bch2_btree_cache_scan (2) 0 (1) 2024/11/11 19:43
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in bch2_btree_cache_scan bcachefs 2 197d 200d 0/28 auto-obsoleted due to no activity on 2024/08/29 02:52

Sample crash report:
BUG: unable to handle page fault for address: ffffe8fffd64d038
#PF: supervisor write access in kernel mode
#PF: error_code(0x0002) - not-present page
PGD 1ac3f067 P4D 1ac3f067 PUD 1e7ef067 PMD 4f652067 PTE 0
Oops: Oops: 0002 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 79 Comm: kswapd0 Not tainted 6.12.0-syzkaller-01782-gbf9aa14fc523 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:bch2_btree_cache_scan+0xb57/0xed0 fs/bcachefs/btree_cache.c:561
Code: 24 38 0f 85 12 02 00 00 44 21 2a 48 81 c3 38 b6 04 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 dc 0a ea fd 48 8b 03 <65> 48 ff 40 38 41 80 3c 2e 00 74 08 4c 89 ff e8 c5 0a ea fd 49 8b
RSP: 0018:ffffc90000e373b8 EFLAGS: 00010246
RAX: 0000607fdda4d000 RBX: ffff888057d4b638 RCX: ffffffff8bd25eae
RDX: ffff88801f01002c RSI: 0000000000000008 RDI: ffffc90000e37340
RBP: dffffc0000000000 R08: ffffc90000e37347 R09: 1ffff920001c6e68
R10: dffffc0000000000 R11: fffff520001c6e69 R12: 0000000000000003
R13: 00000000fffbffff R14: 1ffff920001c6ed1 R15: ffffc90000e37688
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8fffd64d038 CR3: 0000000041c1a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_shrink_slab+0x701/0x1160 mm/shrinker.c:437
 shrink_slab+0x1093/0x14d0 mm/shrinker.c:664
 shrink_one+0x43b/0x850 mm/vmscan.c:4824
 shrink_many mm/vmscan.c:4885 [inline]
 lru_gen_shrink_node mm/vmscan.c:4963 [inline]
 shrink_node+0x3789/0x3e10 mm/vmscan.c:5943
 kswapd_shrink_node mm/vmscan.c:6771 [inline]
 balance_pgdat mm/vmscan.c:6963 [inline]
 kswapd+0x1ca9/0x3700 mm/vmscan.c:7232
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
CR2: ffffe8fffd64d038
---[ end trace 0000000000000000 ]---
RIP: 0010:bch2_btree_cache_scan+0xb57/0xed0 fs/bcachefs/btree_cache.c:561
Code: 24 38 0f 85 12 02 00 00 44 21 2a 48 81 c3 38 b6 04 00 48 89 d8 48 c1 e8 03 80 3c 28 00 74 08 48 89 df e8 dc 0a ea fd 48 8b 03 <65> 48 ff 40 38 41 80 3c 2e 00 74 08 4c 89 ff e8 c5 0a ea fd 49 8b
RSP: 0018:ffffc90000e373b8 EFLAGS: 00010246
RAX: 0000607fdda4d000 RBX: ffff888057d4b638 RCX: ffffffff8bd25eae
RDX: ffff88801f01002c RSI: 0000000000000008 RDI: ffffc90000e37340
RBP: dffffc0000000000 R08: ffffc90000e37347 R09: 1ffff920001c6e68
R10: dffffc0000000000 R11: fffff520001c6e69 R12: 0000000000000003
R13: 00000000fffbffff R14: 1ffff920001c6ed1 R15: ffffc90000e37688
FS:  0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffe8fffd64d038 CR3: 0000000041c1a000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	24 38                	and    $0x38,%al
   2:	0f 85 12 02 00 00    	jne    0x21a
   8:	44 21 2a             	and    %r13d,(%rdx)
   b:	48 81 c3 38 b6 04 00 	add    $0x4b638,%rbx
  12:	48 89 d8             	mov    %rbx,%rax
  15:	48 c1 e8 03          	shr    $0x3,%rax
  19:	80 3c 28 00          	cmpb   $0x0,(%rax,%rbp,1)
  1d:	74 08                	je     0x27
  1f:	48 89 df             	mov    %rbx,%rdi
  22:	e8 dc 0a ea fd       	call   0xfdea0b03
  27:	48 8b 03             	mov    (%rbx),%rax
* 2a:	65 48 ff 40 38       	incq   %gs:0x38(%rax) <-- trapping instruction
  2f:	41 80 3c 2e 00       	cmpb   $0x0,(%r14,%rbp,1)
  34:	74 08                	je     0x3e
  36:	4c 89 ff             	mov    %r15,%rdi
  39:	e8 c5 0a ea fd       	call   0xfdea0b03
  3e:	49                   	rex.WB
  3f:	8b                   	.byte 0x8b

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/20 11:17 upstream bf9aa14fc523 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/20 11:08 upstream bf9aa14fc523 7d02db5a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/18 18:03 upstream adc218676eef e7bb5d6e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/17 21:17 upstream f66d6acccbc0 cfe3a04a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/13 06:50 upstream 3022e9d00ebe 62026c85 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/11 03:41 upstream a9cda7c0ffed 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/10 22:41 upstream a9cda7c0ffed 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/10 02:24 upstream da4373fbcf00 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/09 10:05 upstream f1dce1f09380 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/09 03:19 upstream f1dce1f09380 6b856513 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/07 19:55 upstream ff7afaeca1a1 867e44df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
2024/11/07 19:33 upstream ff7afaeca1a1 867e44df .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel paging request in bch2_btree_cache_scan
* Struck through repros no longer work on HEAD.