------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 15770 at lib/refcount.c:28 refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28 Modules linked in: CPU: 0 PID: 15770 Comm: syz-executor.4 Not tainted 6.2.0-rc2-syzkaller-00282-g0a71553536d2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28 Code: c7 60 75 4b 8b 31 c0 e8 23 78 14 fd 0f 0b eb 85 e8 4a 88 4d fd c6 05 6b 42 44 0a 01 48 c7 c7 c0 75 4b 8b 31 c0 e8 05 78 14 fd <0f> 0b e9 64 ff ff ff e8 29 88 4d fd c6 05 4b 42 44 0a 01 48 c7 c7 RSP: 0018:ffffc9000b29fd28 EFLAGS: 00010246 RAX: 4aff88544f2af100 RBX: 0000000000000003 RCX: 0000000000040000 RDX: ffffc9000b659000 RSI: 0000000000003938 RDI: 0000000000003939 RBP: 0000000000000003 R08: ffffffff816f2c9d R09: fffff52001653f5d R10: fffff52001653f5d R11: 1ffff92001653f5c R12: ffffffff86f231c0 R13: ffff88807b93a068 R14: ffff88807b8e2040 R15: ffff88807b8e2000 FS: 00007fe926c8d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f24fbd821b8 CR3: 000000005c559000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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+0xe8/0x100 drivers/usb/gadget/legacy/inode.c:2086 deactivate_locked_super+0xa7/0xf0 fs/super.c:332 vfs_get_super fs/super.c:1149 [inline] get_tree_single+0xd0/0x160 fs/super.c:1165 vfs_get_tree+0x88/0x270 fs/super.c:1489 vfs_fsconfig_locked fs/fsopen.c:232 [inline] __do_sys_fsconfig fs/fsopen.c:439 [inline] __se_sys_fsconfig+0xbc0/0x1060 fs/fsopen.c:314 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe925e8c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe926c8d168 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007fe925fabf80 RCX: 00007fe925e8c0c9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007fe925ee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc5404ceef R14: 00007fe926c8d300 R15: 0000000000022000