------------[ cut here ]------------ WARNING: lib/refcount.c:28 at refcount_warn_saturate+0x134/0x170 lib/refcount.c:28, CPU#0: syz.6.1166/9680 refcount_t: underflow; use-after-free. Modules linked in: Kernel panic - not syncing: kernel: panic_on_warn set ... CPU: 0 UID: 0 PID: 9680 Comm: syz.6.1166 Not tainted syzkaller #0 PREEMPT Hardware name: ARM-Versatile Express Call trace: [<80201998>] (dump_backtrace) from [<80201a8c>] (show_stack+0x18/0x1c arch/arm/kernel/traps.c:257) r7:82a20f78 r6:00000000 r5:82333190 r4:00000001 [<80201a74>] (show_stack) from [<8021e60c>] (__dump_stack lib/dump_stack.c:94 [inline]) [<80201a74>] (show_stack) from [<8021e60c>] (dump_stack_lvl+0x5c/0x70 lib/dump_stack.c:120) [<8021e5b0>] (dump_stack_lvl) from [<8021e638>] (dump_stack+0x18/0x1c lib/dump_stack.c:129) r7:82a20f78 r6:00000000 r5:84674980 r4:82c83d40 [<8021e620>] (dump_stack) from [<80202590>] (vpanic+0x114/0x320 kernel/panic.c:651) [<8020247c>] (vpanic) from [<802027d0>] (trace_suspend_resume+0x0/0x100 kernel/panic.c:788) r7:809300ec [<8020279c>] (panic) from [<80250a80>] (check_panic_on_warn kernel/panic.c:525 [inline]) [<8020279c>] (panic) from [<80250a80>] (get_taint+0x0/0x1c kernel/panic.c:520) r3:82a0b144 r2:00000001 r1:82318ef4 r0:82320850 [<80250a08>] (check_panic_on_warn) from [<80250bfc>] (__warn+0x98/0x1a4 kernel/panic.c:1104) [<80250b64>] (__warn) from [<80250ef0>] (warn_slowpath_fmt+0x1e8/0x1f4 kernel/panic.c:1144) r8:00000009 r7:8238cee4 r6:dfa01e54 r5:84674980 r4:00000000 [<80250d0c>] (warn_slowpath_fmt) from [<809300ec>] (refcount_warn_saturate+0x134/0x170 lib/refcount.c:28) r10:000001b4 r9:84674980 r8:86941410 r7:85776780 r6:85062880 r5:00000000 r4:86375a00 [<8092ffb8>] (refcount_warn_saturate) from [<81120650>] (__refcount_sub_and_test include/linux/refcount.h:400 [inline]) [<8092ffb8>] (refcount_warn_saturate) from [<81120650>] (__refcount_dec_and_test include/linux/refcount.h:432 [inline]) [<8092ffb8>] (refcount_warn_saturate) from [<81120650>] (refcount_dec_and_test include/linux/refcount.h:450 [inline]) [<8092ffb8>] (refcount_warn_saturate) from [<81120650>] (put_dev+0x4c/0x6c drivers/usb/gadget/legacy/inode.c:165) [<81120604>] (put_dev) from [<81120718>] (dev_release+0x48/0x6c drivers/usb/gadget/legacy/inode.c:1215) [<811206d0>] (dev_release) from [<805a1bcc>] (__fput+0xd8/0x2f4 fs/file_table.c:512) r5:040f801b r4:86d17000 [<805a1af4>] (__fput) from [<805a1e7c>] (____fput+0x14/0x18 fs/file_table.c:540) r9:84674980 r8:84675214 r7:82c846ac r6:84674980 r5:846751e0 r4:00000000 [<805a1e68>] (____fput) from [<8027d7c8>] (task_work_run+0x8c/0xb4 kernel/task_work.c:233) [<8027d73c>] (task_work_run) from [<8022a958>] (resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]) [<8027d73c>] (task_work_run) from [<8022a958>] (do_work_pending+0x44c/0x4f0 arch/arm/kernel/signal.c:632) r9:84674980 r8:8020029c r7:000001b4 r6:8020029c r5:dfa01fb0 r4:84674980 [<8022a50c>] (do_work_pending) from [<80200088>] (slow_work_pending+0xc/0x24) Exception stack(0xdfa01fb0 to 0xdfa01ff8) 1fa0: 00000000 0000001e 00000000 7ea10920 1fc0: 00000000 0000048e 00000000 000001b4 7ea10920 00000000 00000000 003562e4 1fe0: 7ea10848 7ea10838 00028610 001309d0 20000010 00000003 r10:000001b4 r9:84674980 r8:8020029c r7:000001b4 r6:00000000 r5:0000048e r4:00000000 Rebooting in 86400 seconds..