syzbot


general protection fault in cgroup_mkdir

Status: premoderation: reported C repro on 2025/11/13 11:15
Reported-by: syzbot+8df1af6d81110ac60948@syzkaller.appspotmail.com
First crash: 4d21h, last: 4d19h
Bug presence (3)
Date Name Commit Repro Result
2025/11/14 android16-6.12 (ToT) d884f499434c C Failed due to an error; will retry later
2025/11/14 lts (merge base) 2b2cbdcede38 C Didn't crash
2025/11/14 upstream (ToT) 6da43bbeb691 C Failed due to an error; will retry later

Sample crash report:
RBP: 00007ffe181e1870 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f1cad1e5fa0 R14: 00007f1cad1e5fa0 R15: 0000000000000003
 </TASK>
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000021: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000108-0x000000000000010f]
CPU: 0 UID: 0 PID: 381 Comm: syz.2.17 Not tainted syzkaller #0 0b5ffdee5fcd2f7749818d1ff954e9c21353764e
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:cgroup_mkdir+0x1180/0x1580 kernel/cgroup/cgroup.c:5917
Code: eb 05 e8 73 44 08 00 4c 89 ef e8 0b 9c 00 00 49 81 fd 01 f0 ff ff 0f 83 b3 fb ff ff 4d 8d b5 08 01 00 00 4c 89 f3 48 c1 eb 03 <42> 80 3c 3b 00 74 08 4c 89 f7 e8 c1 b1 5e 00 49 8b bd 08 01 00 00
RSP: 0018:ffffc90000edfce8 EFLAGS: 00010206
RAX: 48477816fc30cd00 RBX: 0000000000000021 RCX: ffff8881f6e3ae00
RDX: ffff88811324cb00 RSI: ffff88811513c000 RDI: ffff888100042000
RBP: ffffc90000edfd90 R08: ffffffff81eab59b R09: ffffffff8109c4b8
R10: ffffffff858d3538 R11: ffffffff85a0012f R12: ffff88810b7eb5b0
R13: 0000000000000000 R14: 0000000000000108 R15: dffffc0000000000
FS:  0000555586356500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1cad1e7dac CR3: 000000010bf7e000 CR4: 00000000003526b0
Call Trace:
 <TASK>
 kernfs_iop_mkdir+0x1c2/0x2d0 fs/kernfs/dir.c:1246
 vfs_mkdir+0x583/0x820 fs/namei.c:4257
 do_mkdirat+0x1bf/0x420 fs/namei.c:4280
 __do_sys_mkdirat fs/namei.c:4295 [inline]
 __se_sys_mkdirat fs/namei.c:4293 [inline]
 __x64_sys_mkdirat+0x8b/0xa0 fs/namei.c:4293
 x64_sys_call+0x2ba8/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:259
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x58/0xf0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7f1cacf8f6c9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe181e1818 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 00007f1cad1e5fa0 RCX: 00007f1cacf8f6c9
RDX: 00000000000001ff RSI: 0000200000000000 RDI: ffffffffffffff9c
RBP: 00007ffe181e1870 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f1cad1e5fa0 R14: 00007f1cad1e5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:cgroup_mkdir+0x1180/0x1580 kernel/cgroup/cgroup.c:5917
Code: eb 05 e8 73 44 08 00 4c 89 ef e8 0b 9c 00 00 49 81 fd 01 f0 ff ff 0f 83 b3 fb ff ff 4d 8d b5 08 01 00 00 4c 89 f3 48 c1 eb 03 <42> 80 3c 3b 00 74 08 4c 89 f7 e8 c1 b1 5e 00 49 8b bd 08 01 00 00
RSP: 0018:ffffc90000edfce8 EFLAGS: 00010206
RAX: 48477816fc30cd00 RBX: 0000000000000021 RCX: ffff8881f6e3ae00
RDX: ffff88811324cb00 RSI: ffff88811513c000 RDI: ffff888100042000
RBP: ffffc90000edfd90 R08: ffffffff81eab59b R09: ffffffff8109c4b8
R10: ffffffff858d3538 R11: ffffffff85a0012f R12: ffff88810b7eb5b0
R13: 0000000000000000 R14: 0000000000000108 R15: dffffc0000000000
FS:  0000555586356500(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1cad1e7dac CR3: 000000010bf7e000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	eb 05                	jmp    0x7
   2:	e8 73 44 08 00       	call   0x8447a
   7:	4c 89 ef             	mov    %r13,%rdi
   a:	e8 0b 9c 00 00       	call   0x9c1a
   f:	49 81 fd 01 f0 ff ff 	cmp    $0xfffffffffffff001,%r13
  16:	0f 83 b3 fb ff ff    	jae    0xfffffbcf
  1c:	4d 8d b5 08 01 00 00 	lea    0x108(%r13),%r14
  23:	4c 89 f3             	mov    %r14,%rbx
  26:	48 c1 eb 03          	shr    $0x3,%rbx
* 2a:	42 80 3c 3b 00       	cmpb   $0x0,(%rbx,%r15,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 f7             	mov    %r14,%rdi
  34:	e8 c1 b1 5e 00       	call   0x5eb1fa
  39:	49 8b bd 08 01 00 00 	mov    0x108(%r13),%rdi

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/11/13 13:02 android16-6.12 0d6730ee6542 07e030de .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in cgroup_mkdir
2025/11/13 12:27 android16-6.12 0d6730ee6542 07e030de .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in cgroup_mkdir
2025/11/13 11:49 android16-6.12 0d6730ee6542 07e030de .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in cgroup_mkdir
2025/11/13 11:14 android16-6.12 0d6730ee6542 07e030de .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust general protection fault in cgroup_mkdir
* Struck through repros no longer work on HEAD.