syzbot


BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof (2)

Status: upstream: reported C repro on 2025/06/01 06:06
Subsystems: bcachefs
[Documentation on labels]
Reported-by: syzbot+56edda805363e0a093b8@syzkaller.appspotmail.com
First crash: 45d, last: 21h23m
Cause bisection: introduced by (bisect log) :
commit d4d71b58e5139afc5f9bda0139b99404eb216d8a
Author: Kent Overstreet <kent.overstreet@linux.dev>
Date: Sat Apr 5 21:36:04 2025 +0000

  bcachefs: RO mounts now use less memory

Crash: BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [bcachefs?] BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof (2) 0 (2) 2025/06/01 18:07
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof block 3 344d 374d 0/28 auto-obsoleted due to no activity on 2024/09/23 15:37

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 0 P4D 0 
Oops: Oops: 0010 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 5828 Comm: syz-executor274 Not tainted 6.15.0-syzkaller-10402-g4cb6c8af8591 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000435edb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff888077f03ee8
RDX: 1ffff1100efe07dd RSI: 0000000000000000 RDI: 0000000000092800
RBP: ffffc9000435ef10 R08: ffffc9000435ee87 R09: 0000000000000000
R10: ffffc9000435ee60 R11: 0000000000000000 R12: 1ffff9200086bdc8
R13: ffff888077f03ee8 R14: 0000000000092c40 R15: 0000000000092800
FS:  0000000000000000(0000) GS:ffff888125d99000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000077cc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 mempool_alloc_noprof+0x1a4/0x510 mm/mempool.c:402
 bch2_btree_update_start+0x549/0x1480 fs/bcachefs/btree_update_interior.c:1194
 bch2_btree_node_rewrite+0x17e/0x1120 fs/bcachefs/btree_update_interior.c:2208
 bch2_move_btree+0x6f0/0xc70 fs/bcachefs/move.c:1093
 bch2_scan_old_btree_nodes+0x95/0x240 fs/bcachefs/move.c:1215
 bch2_data_job+0x646/0x910 fs/bcachefs/move.c:1354
 bch2_data_thread+0x8f/0x1d0 fs/bcachefs/chardev.c:315
 kthread+0x711/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
CR2: 0000000000000000
---[ end trace 0000000000000000 ]---
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
RSP: 0018:ffffc9000435edb8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffff888077f03ee8
RDX: 1ffff1100efe07dd RSI: 0000000000000000 RDI: 0000000000092800
RBP: ffffc9000435ef10 R08: ffffc9000435ee87 R09: 0000000000000000
R10: ffffc9000435ee60 R11: 0000000000000000 R12: 1ffff9200086bdc8
R13: ffff888077f03ee8 R14: 0000000000092c40 R15: 0000000000092800
FS:  0000000000000000(0000) GS:ffff888125d99000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffd6 CR3: 0000000077cc2000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/06/01 09:06 upstream 4cb6c8af8591 3d2f584d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof
2025/06/01 06:05 upstream 4cb6c8af8591 3d2f584d .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2 (corrupt fs)] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof
2025/06/04 12:32 upstream 5abc7438f1e9 e565f08d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof
2025/06/01 05:18 upstream 4cb6c8af8591 3d2f584d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof
2025/04/21 05:14 upstream 6fea5fabd332 2a20f901 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root BUG: unable to handle kernel NULL pointer dereference in mempool_alloc_noprof
* Struck through repros no longer work on HEAD.