------------[ cut here ]------------ refcount_t: decrement hit 0; leaking memory. WARNING: CPU: 1 PID: 12727 at lib/refcount.c:31 refcount_warn_saturate+0xbf/0x1e0 lib/refcount.c:31 Modules linked in: CPU: 1 PID: 12727 Comm: syz-executor.2 Not tainted 5.16.0-rc1-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 fe 50 a2 09 31 ff 89 de e8 0d ed 9c fd 84 db 75 e0 e8 24 e9 9c fd 48 c7 c7 20 de 04 8a c6 05 de 50 a2 09 01 e8 9b f1 33 05 <0f> 0b eb c4 e8 08 e9 9c fd 0f b6 1d cd 50 a2 09 31 ff 89 de e8 d8 RSP: 0018:ffffc90002c27a90 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff815f0ad8 RDI: fffff52000584f44 RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff815ea87e R11: 0000000000000000 R12: ffff88803c4fc5b0 R13: ffffffff8d314620 R14: ffff88803c4fc5c0 R15: ffffffff8d314620 FS: 00007f333b006700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000200 CR3: 0000000076d3a000 CR4: 00000000003506e0 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:3402 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 get_signal+0x1bef/0x2220 kernel/signal.c:2602 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/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:0x7f333da90ae9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f333b006188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00007f333dba3f60 RCX: 00007f333da90ae9 RDX: 00000000200000c0 RSI: 00000000400454ca RDI: 0000000000000003 RBP: 00007f333daeaf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff2bd4ac2f R14: 00007f333b006300 R15: 0000000000022000