BUG: scheduling while atomic in kernfs_remove

Status: premoderation: reported C repro on 2026/08/03 10:00
Reported-by: syzbot+287d143081695260a94e@syzkaller.appspotmail.com
First crash: 108d, last: 1d07h
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: scheduling while atomic in kernfs_remove 5 1 958d 958d 0/2 auto-obsoleted due to no activity on 2024/07/03 22:44
upstream BUG: unable to handle kernel NULL pointer dereference in page_fault_oops mm 10 5 813d 821d 0/29 closed as invalid on 2024/09/13 11:13
android-6-12 BUG: scheduling while atomic in kernfs_remove_by_name_ns origin:downstream 5 syz, C 203 1d13h 116d 0/1 premoderation: reported C repro on 2026/07/25 18:52

Sample crash report:
BUG: scheduling while atomic: syz.2.24/389/0x00000002
Modules linked in:
CPU: 0 UID: 0 PID: 389 Comm: syz.2.24 Not tainted syzkaller #0 e77c0f788d26fcfcb4249ce36f4f341285f79f89
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
 <TASK>
 __dump_stack+0x21/0x30 lib/dump_stack.c:94
 dump_stack_lvl+0x140/0x1c0 lib/dump_stack.c:120
 dump_stack+0x19/0x20 lib/dump_stack.c:129
 __schedule_bug+0x12b/0x200 kernel/sched/core.c:6697
 schedule_debug kernel/sched/core.c:6724 [inline]
 __schedule+0x1752/0x2380 kernel/sched/core.c:7822
 __schedule_loop kernel/sched/core.c:8080 [inline]
 schedule+0xc1/0x170 kernel/sched/core.c:8095
 schedule_preempt_disabled+0x14/0x30 kernel/sched/core.c:8152
 rwsem_down_write_slowpath+0x5cb/0x1b60 kernel/locking/rwsem.c:1239
 __down_write_common kernel/locking/rwsem.c:1383 [inline]
 __down_write kernel/locking/rwsem.c:1392 [inline]
 down_write+0x163/0x2b0 kernel/locking/rwsem.c:1659
 kernfs_remove+0x87/0xc0 fs/kernfs/dir.c:1570
 sysfs_remove_dir+0xad/0xf0 fs/sysfs/dir.c:101
 __kobject_del+0xe2/0x2c0 lib/kobject.c:604
 kobject_del+0x49/0x80 lib/kobject.c:627
 device_del+0xba7/0xcf0 drivers/base/core.c:3901
 device_unregister drivers/base/core.c:3922 [inline]
 device_destroy+0xb0/0x100 drivers/base/core.c:4521
 android_device_destroy+0x118/0x180 drivers/usb/gadget/android_configfs_uevent.c:223
 gadgets_drop+0x1d/0x30 drivers/usb/gadget/configfs.c:2075
 client_drop_item fs/configfs/dir.c:943 [inline]
 configfs_rmdir+0x8b7/0x9b0 fs/configfs/dir.c:1546
 vfs_rmdir+0x3db/0x560 fs/namei.c:4348
 do_rmdir+0x29a/0x590 fs/namei.c:4407
 __do_sys_rmdir fs/namei.c:4426 [inline]
 __se_sys_rmdir fs/namei.c:4424 [inline]
 __x64_sys_rmdir+0x4b/0x60 fs/namei.c:4424
 x64_sys_call+0xaf7/0x2ee0 arch/x86/include/generated/asm/syscalls_64.h:85
 do_syscall_x64 arch/x86/entry/common.c:47 [inline]
 do_syscall_64+0x57/0xf0 arch/x86/entry/common.c:78
 entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fa9039a9559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff7b400c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fa903c25fa0 RCX: 00007fa9039a9559
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000240
RBP: 00007fa903a38136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa903c25fac R14: 00007fa903c25fa0 R15: 00007fa903c25fa0
 </TASK>
BUG: scheduling while atomic: syz.2.24/389/0x00000000
Modules l[   29.360311][  T389] Modules linked in:
BUG: kernel NULL pointer dereference, address: 0000000000000000
#PF: supervisor instruction fetch in kernel mode
#PF: error_code(0x0010) - not-present page
PGD 8000000101fb4067 P4D 8000000101fb4067 PUD 103f56067 PMD 0 
Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 UID: 0 PID: 389 Comm: syz.2.24 Tainted: G        W          syzkaller #0 e77c0f788d26fcfcb4249ce36f4f341285f79f89
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:page_fault_oops+0x82e/0x9d0 arch/x86/mm/fault.c:707
Code: 8b 1d c6 8d bf 7e 48 83 c3 20 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 cc c5 9d 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 b3 c5 9d 00 48 8b 1b bf 9d 6e ac
RSP: 0018:ffffc90000f8f000 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: d3ba6cc51040e600
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90000f8f1a0 R08: ffff8881f6c29593 R09: 1ffff1103ed852b2
R10: dffffc0000000000 R11: ffffed103ed852b3 R12: ffffc90000f8f2b8
R13: 1ffff920001f1e0c R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010b68c000 CR4: 00000000003526b0
Call Trace:
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:page_fault_oops+0x82e/0x9d0 arch/x86/mm/fault.c:707
Code: 8b 1d c6 8d bf 7e 48 83 c3 20 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 cc c5 9d 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 b3 c5 9d 00 48 8b 1b bf 9d 6e ac
RSP: 0018:ffffc90000f8f000 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: d3ba6cc51040e600
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002
RBP: ffffc90000f8f1a0 R08: ffff8881f6c29593 R09: 1ffff1103ed852b2
R10: dffffc0000000000 R11: ffffed103ed852b3 R12: ffffc90000f8f2b8
R13: 1ffff920001f1e0c R14: dffffc0000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000010b68c000 CR4: 00000000003526b0
----------------
Code disassembly (best guess):
   0:	8b 1d c6 8d bf 7e    	mov    0x7ebf8dc6(%rip),%ebx        # 0x7ebf8dcc
   6:	48 83 c3 20          	add    $0x20,%rbx
   a:	48 89 d8             	mov    %rbx,%rax
   d:	48 c1 e8 03          	shr    $0x3,%rax
  11:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
  16:	74 08                	je     0x20
  18:	48 89 df             	mov    %rbx,%rdi
  1b:	e8 cc c5 9d 00       	call   0x9dc5ec
  20:	48 8b 1b             	mov    (%rbx),%rbx
  23:	48 89 d8             	mov    %rbx,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	48 89 df             	mov    %rbx,%rdi
  34:	e8 b3 c5 9d 00       	call   0x9dc5ec
  39:	48 8b 1b             	mov    (%rbx),%rbx
  3c:	bf                   	.byte 0xbf
  3d:	9d                   	popf
  3e:	6e                   	outsb  %ds:(%rsi),(%dx)
  3f:	ac                   	lods   %ds:(%rsi),%al

Crashes (29):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/17 20:49 android16-6.12 5228562af4fa 122f94d5 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/27 19:40 android16-6.12 50e8de680435 69a01293 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/17 23:11 android16-6.12 b21af26d1628 905244d6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/11/08 14:18 android16-6.12 3962e99d7c73 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/11/18 04:03 android16-6.12 5228562af4fa 122f94d5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/11/14 12:52 android16-6.12 793c58ba801e 819ebe34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/11/08 01:29 android16-6.12 3962e99d7c73 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/10/22 06:25 android16-6.12 c10c8ec18bd2 4ba27f85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/10/17 23:29 android16-6.12 49f96790cc76 432c0077 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/10/02 14:14 android16-6.12 3a7d1771d492 6d32eb1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/26 12:57 android16-6.12 516976327553 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/25 05:16 android16-6.12 558b94a8d268 f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/25 03:01 android16-6.12 558b94a8d268 f281d9d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/23 20:45 android16-6.12 a24919af1c4d abce1216 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/12 01:29 android16-6.12 8eff909dd82d 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/11 15:42 android16-6.12 37fc3d36e6e2 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/11 15:36 android16-6.12 37fc3d36e6e2 b6a5eeb7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/06 21:48 android16-6.12 4e585dd7f3b7 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/06 08:01 android16-6.12 4e585dd7f3b7 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/03 19:21 android16-6.12 1eab233d5fae 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/02 23:23 android16-6.12 58b61a547e48 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/02 20:35 android16-6.12 58b61a547e48 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/09/01 14:46 android16-6.12 77b3c87e00dc 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/31 02:50 android16-6.12 36bee94a7cf9 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/22 14:04 android16-6.12 e8c85685a629 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/17 22:38 android16-6.12 b21af26d1628 905244d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/03 20:46 android16-6.12 5098494bc7f3 6b7c9f71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/03 13:05 android16-6.12 5098494bc7f3 6b7c9f71 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
2026/08/03 09:59 android16-6.12 5098494bc7f3 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-12-rust BUG: scheduling while atomic in kernfs_remove
* Struck through repros no longer work on HEAD.