BUG: scheduling while atomic: syz.5.364/1543/0x00000002
Modules linked in:
CPU: 1 UID: 0 PID: 1543 Comm: syz.5.364 Not tainted syzkaller #0 8e6406e9b5d1be1ce824fee8d951cd47a835d65e
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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: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_by_name_ns+0x8c/0x180 fs/kernfs/dir.c:1739
sysfs_delete_link+0x10f/0x140 fs/sysfs/symlink.c:135
device_remove_class_symlinks+0x171/0x1a0 drivers/base/core.c:3480
device_del+0x42a/0xcf0 drivers/base/core.c:3867
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:0x7fe5bb1a9519
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:00007fe5bc0ec028 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fe5bb435fa0 RCX: 00007fe5bb1a9519
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000240
RBP: 00007fe5bb239136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe5bb436038 R14: 00007fe5bb435fa0 R15: 00007ffd56fc1378
------------[ cut here ]------------
WARNING: CPU: 1 PID: 1543 at lib/stackdepot.c:635 stack_depot_save_flags+0x266/0x800 lib/stackdepot.c:633
Modules linked in:
CPU: 1 UID: 0 PID: 1543 Comm: syz.5.364 Tainted: G W syzkaller #0 8e6406e9b5d1be1ce824fee8d951cd47a835d65e
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:stack_depot_save_flags+0x266/0x800 lib/stackdepot.c:635
Code: 48 83 3d 34 fb 57 06 00 0f 84 00 04 00 00 48 c7 45 c0 00 00 00 00 48 89 d3 65 8b 05 cc bd 17 7d 4d 89 d7 a9 00 00 f0 00 74 2d <0f> 0b 48 c7 45 c8 00 00 00 00 9c 8f 45 c8 4c 8b 6d c8 fa 48 c7 c7
RSP: 0018:ffffc9000f45f980 EFLAGS: 00010206
RAX: 000000007fffffff RBX: ffff8881f5fcfcf0 RCX: 0000000000fcfcf0
RDX: ffff8881f5fcfcf0 RSI: 0000000000000001 RDI: 00000000ecc268c7
RBP: ffffc9000f45f9e0 R08: 000000001d8a56e6 R09: 00000000f9d22c3d
R10: 000000000000000d R11: ffffffff81779330 R12: 00000000c9ffcfcf
R13: 0000000000000000 R14: ffffc9000f45f9f0 R15: 000000000000000d
FS: 00007fe5bc0ec6c0(0000) GS:ffff8881f6d00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe5bb1f0d20 CR3: 000000011ab2a000 CR4: 00000000003526b0
Call Trace:
kasan_save_stack mm/kasan/common.c:50 [inline]
kasan_save_track+0x4f/0x80 mm/kasan/common.c:70
kasan_save_free_info+0x44/0x50 mm/kasan/generic.c:579
poison_slab_object mm/kasan/common.c:249 [inline]
__kasan_slab_free+0x5f/0x80 mm/kasan/common.c:266
kasan_slab_free include/linux/kasan.h:234 [inline]
slab_free_hook mm/slub.c:2445 [inline]
slab_free mm/slub.c:4716 [inline]
kfree+0x158/0x440 mm/slub.c:4877
gadget_info_attr_release+0xcb/0x130 drivers/usb/gadget/configfs.c:412
config_item_cleanup fs/configfs/item.c:128 [inline]
config_item_release fs/configfs/item.c:137 [inline]
kref_put include/linux/kref.h:65 [inline]
config_item_put+0x178/0x240 fs/configfs/item.c:149
configfs_rmdir+0x8e8/0x9b0 fs/configfs/dir.c:1550
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:0x7fe5bb1a9519
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:00007fe5bc0ec028 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: ffffffffffffffda RBX: 00007fe5bb435fa0 RCX: 00007fe5bb1a9519
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000240
RBP: 00007fe5bb239136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe5bb436038 R14: 00007fe5bb435fa0 R15: 00007ffd56fc1378
---[ end trace 0000000000000000 ]---
BUG: scheduling while atomic: syz.5.364/1543/0x00000000
Modules linked in:
CPU: 1 UID: 0 PID: 1543 Comm: syz.5.364 Tainted: G W syzkaller #0 8e6406e9b5d1be1ce824fee8d951cd47a835d65e
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/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: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
__mutex_lock_common kernel/locking/mutex.c:707 [inline]
__mutex_lock+0x95d/0x1d10 kernel/locking/mutex.c:807
__mutex_lock_slowpath+0xe/0x20 kernel/locking/mutex.c:1137
mutex_lock+0x113/0x1d0 kernel/locking/mutex.c:285
exp_funnel_lock kernel/rcu/tree_exp.h:331 [inline]
synchronize_rcu_expedited+0x290/0x960 kernel/rcu/tree_exp.h:978
namespace_unlock+0x248/0x450 fs/namespace.c:1720
drop_collected_mounts fs/namespace.c:2248 [inline]
put_mnt_ns+0xad/0xf0 fs/namespace.c:5655
free_nsproxy+0x52/0x290 kernel/nsproxy.c:193
put_nsproxy include/linux/nsproxy.h:118 [inline]
switch_task_namespaces kernel/nsproxy.c:251 [inline]
exit_task_namespaces+0x99/0xe0 kernel/nsproxy.c:256
do_exit+0xa41/0x2850 kernel/exit.c:960
do_group_exit+0x21f/0x2f0 kernel/exit.c:1104
get_signal+0x134c/0x1490 kernel/signal.c:2942
arch_do_signal_or_restart+0xbc/0x700 arch/x86/kernel/signal.c:337
exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
syscall_exit_to_user_mode+0x57/0xb0 kernel/entry/common.c:218
do_syscall_64+0x63/0xf0 arch/x86/entry/common.c:84
entry_SYSCALL_64_after_hwframe+0x76/0x7e
RIP: 0033:0x7fe5bb1a9519
Code: Unable to access opcode bytes at 0x7fe5bb1a94ef.
RSP: 002b:00007fe5bc0ec028 EFLAGS: 00000246 ORIG_RAX: 0000000000000054
RAX: 0000000000000000 RBX: 00007fe5bb435fa0 RCX: 00007fe5bb1a9519
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000200000000240
RBP: 00007fe5bb239136 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe5bb436038 R14: 00007fe5bb435fa0 R15: 00007ffd56fc1378