syzbot


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

Status: upstream: reported on 2024/12/13 09:18
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+a4aee0aec9e2bdcac817@syzkaller.appspotmail.com
First crash: 159d, last: 3d23h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [kernel?] BUG: unable to handle kernel NULL pointer dereference in deactivate_slab (2) 0 (1) 2024/12/13 09:18
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel NULL pointer dereference in deactivate_slab kernel 14 325d 354d 0/28 auto-obsoleted due to no activity on 2024/09/04 01:58
upstream KMSAN: kernel-infoleak in v4l2_compat_put_array_args media 8 910d 1214d 22/28 fixed on 2023/02/24 13:50

Sample crash report:
BUG: kernel NULL pointer dereference, address: 0000000000000003
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 80000000320c7067 P4D 80000000320c7067 PUD 0 
Oops: Oops: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 10 Comm: kworker/0:1 Not tainted 6.15.0-rc3-syzkaller-00342-g5bc1018675ec #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Workqueue: slub_flushwq flush_cpu_slab
RIP: 0010:PagePoisoned include/linux/page-flags.h:331 [inline]
RIP: 0010:page_to_nid include/linux/mm.h:1736 [inline]
RIP: 0010:folio_nid include/linux/mm.h:1742 [inline]
RIP: 0010:slab_nid mm/slab.h:201 [inline]
RIP: 0010:deactivate_slab+0x1e/0x360 mm/slub.c:3085
Code: 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 48 49 89 f5 65 48 8b 05 d7 83 5c 10 48 89 44 24 40 <48> 8b 06 48 83 f8 ff 0f 84 04 03 00 00 49 89 ff 48 c1 e8 3a 48 8b
RSP: 0000:ffffc900000f7a48 EFLAGS: 00010296
RAX: 0405afa7d5866400 RBX: ffff88814d800b40 RCX: 0405afa7d5866400
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff88814d800b40
RBP: 0000000000000000 R08: ffffffff8f7d9f77 R09: 1ffffffff1efb3ee
R10: dffffc0000000000 R11: fffffbfff1efb3ef R12: 0000000000000003
R13: 0000000000000003 R14: 0000000000000206 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888126102000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000003 CR3: 00000000618b0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 flush_slab mm/slub.c:3305 [inline]
 flush_cpu_slab+0x18f/0x450 mm/slub.c:3351
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/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: 0000000000000003
---[ end trace 0000000000000000 ]---
RIP: 0010:PagePoisoned include/linux/page-flags.h:331 [inline]
RIP: 0010:page_to_nid include/linux/mm.h:1736 [inline]
RIP: 0010:folio_nid include/linux/mm.h:1742 [inline]
RIP: 0010:slab_nid mm/slab.h:201 [inline]
RIP: 0010:deactivate_slab+0x1e/0x360 mm/slub.c:3085
Code: 90 90 90 90 90 90 90 90 90 90 90 90 55 41 57 41 56 41 55 41 54 53 48 83 ec 48 49 89 f5 65 48 8b 05 d7 83 5c 10 48 89 44 24 40 <48> 8b 06 48 83 f8 ff 0f 84 04 03 00 00 49 89 ff 48 c1 e8 3a 48 8b
RSP: 0000:ffffc900000f7a48 EFLAGS: 00010296
RAX: 0405afa7d5866400 RBX: ffff88814d800b40 RCX: 0405afa7d5866400
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff88814d800b40
RBP: 0000000000000000 R08: ffffffff8f7d9f77 R09: 1ffffffff1efb3ee
R10: dffffc0000000000 R11: fffffbfff1efb3ef R12: 0000000000000003
R13: 0000000000000003 R14: 0000000000000206 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff888126102000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000003 CR3: 00000000618b0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	90                   	nop
   1:	90                   	nop
   2:	90                   	nop
   3:	90                   	nop
   4:	90                   	nop
   5:	90                   	nop
   6:	90                   	nop
   7:	90                   	nop
   8:	90                   	nop
   9:	90                   	nop
   a:	90                   	nop
   b:	90                   	nop
   c:	55                   	push   %rbp
   d:	41 57                	push   %r15
   f:	41 56                	push   %r14
  11:	41 55                	push   %r13
  13:	41 54                	push   %r12
  15:	53                   	push   %rbx
  16:	48 83 ec 48          	sub    $0x48,%rsp
  1a:	49 89 f5             	mov    %rsi,%r13
  1d:	65 48 8b 05 d7 83 5c 	mov    %gs:0x105c83d7(%rip),%rax        # 0x105c83fc
  24:	10
  25:	48 89 44 24 40       	mov    %rax,0x40(%rsp)
* 2a:	48 8b 06             	mov    (%rsi),%rax <-- trapping instruction
  2d:	48 83 f8 ff          	cmp    $0xffffffffffffffff,%rax
  31:	0f 84 04 03 00 00    	je     0x33b
  37:	49 89 ff             	mov    %rdi,%r15
  3a:	48 c1 e8 3a          	shr    $0x3a,%rax
  3e:	48                   	rex.W
  3f:	8b                   	.byte 0x8b

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/04/27 07:49 upstream 5bc1018675ec c6b4fb39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2025/03/20 04:29 upstream a7f2e10ecd8f 9209bc22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2025/02/28 02:26 upstream 1e15510b71c9 6a8fcbc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2025/01/25 05:11 upstream b46c89c08f41 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2024/12/12 03:49 upstream 231825b2e1ff 6f1b0fa8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2024/12/09 05:39 linux-next af2ea8ab7a54 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2025/04/16 05:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c72692105976 23b969b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 BUG: unable to handle kernel NULL pointer dereference in deactivate_slab
2025/05/13 07:50 upstream 02ddfb981de8 f6671af7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in deactivate_slab
2025/04/29 15:21 upstream 02ddfb981de8 aeb6ec69 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-root KMSAN: uninit-value in deactivate_slab
* Struck through repros no longer work on HEAD.