------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 0 PID: 619 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Modules linked in: CPU: 0 PID: 619 Comm: syz-executor.0 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Code: 1d a0 a6 81 09 31 ff 89 de e8 ad 0e 9d fd 84 db 75 e0 e8 c4 0a 9d fd 48 c7 c7 a0 d4 e4 89 c6 05 80 a6 81 09 01 e8 b8 94 1c 05 <0f> 0b eb c4 e8 a8 0a 9d fd 0f b6 1d 6f a6 81 09 31 ff 89 de e8 78 RSP: 0018:ffffc90004c17cc0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880185fba00 RSI: ffffffff815f39c8 RDI: fffff52000982f8a RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815ed79e R11: 0000000000000000 R12: ffff88807c8745b0 R13: ffffffff8d10a760 R14: ffff88807c8745c0 R15: ffffffff8d10a760 FS: 0000555555ff9400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e021000 CR3: 0000000076264000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __refcount_dec include/linux/refcount.h:344 [inline] refcount_dec include/linux/refcount.h:359 [inline] dev_put include/linux/netdevice.h:3817 [inline] linkwatch_do_dev+0x134/0x150 net/core/link_watch.c:169 linkwatch_forget_dev+0x16a/0x200 net/core/link_watch.c:238 netdev_wait_allrefs net/core/dev.c:9834 [inline] netdev_run_todo+0x402/0xa80 net/core/dev.c:9951 tun_detach drivers/net/tun.c:690 [inline] tun_chr_close+0xe0/0x180 drivers/net/tun.c:3397 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:189 [inline] exit_to_user_mode_loop kernel/entry/common.c:175 [inline] exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fca0eed772b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffdfc15bd00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fca0eed772b RDX: 0000000000000000 RSI: ffffffff8437e9ce RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b2da24bfc R10: 0000000000001d68 R11: 0000000000000293 R12: 00007fca0f038b60 R13: 00007fca0f038b60 R14: 00007fca0f037f60 R15: 00000000001226e3