------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 8557 at lib/refcount.c:28 refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 8557 Comm: syz.5.1287 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 RIP: 0010:refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28 Code: 09 01 48 c7 c7 a0 06 7a 8a e8 b1 ea cc 05 0f 0b eb c4 e8 78 70 90 fd c6 05 bf b9 8e 09 01 48 c7 c7 00 07 7a 8a e8 95 ea cc 05 <0f> 0b eb a8 e8 5c 70 90 fd c6 05 a0 b9 8e 09 01 48 c7 c7 40 06 7a RSP: 0018:ffffc90003317de0 EFLAGS: 00010246 RAX: 8e64e159796e3800 RBX: 0000000000000003 RCX: 0000000000080000 RDX: ffffc9001553d000 RSI: 000000000000f275 RDI: 000000000000f276 RBP: 00000000966b53e0 R08: ffff8880b9033d7f R09: 1ffff110172067af R10: dffffc0000000000 R11: ffffed10172067b0 R12: ffffe8ffffd81f94 R13: 1ffffffff1b16286 R14: 0000000000000003 R15: dffffc0000000000 FS: 00007f084c0d96c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2f508ff8 CR3: 00000000344ae000 CR4: 00000000003506e0 Call Trace: __refcount_sub_and_test include/linux/refcount.h:283 [inline] __refcount_dec_and_test include/linux/refcount.h:315 [inline] refcount_dec_and_test include/linux/refcount.h:333 [inline] put_dev drivers/usb/gadget/legacy/inode.c:159 [inline] gadgetfs_kill_sb+0xf7/0x100 drivers/usb/gadget/legacy/inode.c:2102 deactivate_locked_super+0x93/0xf0 fs/super.c:335 cleanup_mnt+0x426/0x4d0 fs/namespace.c:1148 task_work_run+0x125/0x1a0 kernel/task_work.c:188 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:214 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline] syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f084dea2159 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:00007f084c0d9028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007f084e12a090 RCX: 00007f084dea2159 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000200000000040 RBP: 00007f084df39024 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f084e12a128 R14: 00007f084e12a090 R15: 00007ffe86489b28