BUG: scheduling while atomic: syz.4.237/1069/0x00000002 Modules linked in: CPU: 0 UID: 0 PID: 1069 Comm: syz.4.237 Not tainted syzkaller #0 92ad247b86212872588e4244b63285ac9b5a817e Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: __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:6629 schedule_debug kernel/sched/core.c:6656 [inline] __schedule+0xb85/0x20b0 kernel/sched/core.c:7700 __schedule_loop kernel/sched/core.c:7960 [inline] schedule+0xc5/0x240 kernel/sched/core.c:7975 schedule_preempt_disabled+0x14/0x30 kernel/sched/core.c:8032 rwsem_down_write_slowpath+0x5c9/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_by_name_ns+0x8c/0x180 fs/kernfs/dir.c:1737 kernfs_remove_by_name include/linux/kernfs.h:637 [inline] sysfs_unmerge_group+0xd7/0x130 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x7b/0xd0 drivers/base/power/sysfs.c:835 device_del+0x241/0xcf0 drivers/base/core.c:3856 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+0x3de/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:0x7f0eaf79e159 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:00007f0eae1f7028 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f0eafa25fa0 RCX: 00007f0eaf79e159 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000002c0 RBP: 00007f0eaf83503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f0eafa26038 R14: 00007f0eafa25fa0 R15: 00007fff131d2c48 BUG: scheduling while atomic: syz.4.237/1069/0x00000000 Modules linked in: 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: 1 UID: 0 PID: 1069 Comm: syz.4.237 Tainted: G W syzkaller #0 92ad247b86212872588e4244b63285ac9b5a817e Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:schedule_debug kernel/sched/core.c:6639 [inline] RIP: 0010:__schedule+0x14e/0x20b0 kernel/sched/core.c:7700 Code: 00 00 48 89 04 24 4c 8d 70 20 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 3c a9 3a fc 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 23 a9 3a fc 49 81 3e 9d 6e ac 57 RSP: 0018:ffffc900033cf2a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8881f6f4fa40 RCX: ffff88812fa45f00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc900033cf470 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000679e58 R12: 1ffff92000679e6c R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff1103edea0c9 FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f707f9eb840 CR3: 000000010b724000 CR4: 00000000003526b0 DR0: ffffffffffffffff DR1: 0000000000000003 DR2: 0000000000000083 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:schedule_debug kernel/sched/core.c:6639 [inline] RIP: 0010:__schedule+0x14e/0x20b0 kernel/sched/core.c:7700 Code: 00 00 48 89 04 24 4c 8d 70 20 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 3c a9 3a fc 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 f7 e8 23 a9 3a fc 49 81 3e 9d 6e ac 57 RSP: 0018:ffffc900033cf2a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff8881f6f4fa40 RCX: ffff88812fa45f00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffc900033cf470 R08: 0000000000000003 R09: 0000000000000004 R10: dffffc0000000000 R11: fffff52000679e58 R12: 1ffff92000679e6c R13: dffffc0000000000 R14: 0000000000000000 R15: 1ffff1103edea0c9 FS: 0000000000000000(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f707f9eb840 CR3: 000000010b724000 CR4: 00000000003526b0 DR0: ffffffffffffffff DR1: 0000000000000003 DR2: 0000000000000083 DR3: ffffffffefffff15 DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 89 04 24 mov %rax,(%rsp) 6: 4c 8d 70 20 lea 0x20(%rax),%r14 a: 4c 89 f0 mov %r14,%rax d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 16: 74 08 je 0x20 18: 4c 89 f7 mov %r14,%rdi 1b: e8 3c a9 3a fc call 0xfc3aa95c 20: 4d 8b 36 mov (%r14),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 23 a9 3a fc call 0xfc3aa95c 39: 49 81 3e 9d 6e ac 57 cmpq $0x57ac6e9d,(%r14)