netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1343 netlink_sendmsg+0x904/0xdf0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 ____sys_sendmsg+0x331/0x810 net/socket.c:2413 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467 __sys_sendmmsg+0x195/0x470 net/socket.c:2553 __do_sys_sendmmsg net/socket.c:2582 [inline] __se_sys_sendmmsg net/socket.c:2579 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2579 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5831 at lib/ref_tracker.c:38 spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] WARNING: CPU: 1 PID: 5831 at lib/ref_tracker.c:38 ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:37 Modules linked in: CPU: 1 PID: 5831 Comm: syz-executor.4 Not tainted 5.16.0-rc8-next-20220110-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ref_tracker_dir_exit.cold+0x137/0x1e3 lib/ref_tracker.c:38 Code: 4c 89 ef e8 a2 45 9e f8 4c 8b 3c 24 4c 39 fd 49 8b 07 0f 85 b5 00 00 00 e8 4d 57 53 f8 48 8b 74 24 10 4c 89 e7 e8 10 25 37 00 <0f> 0b e9 1c c7 e6 fa 4c 89 ff e8 71 45 9e f8 e9 d4 fe ff ff e8 57 RSP: 0018:ffffc9000566f8f8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880449c1c18 R08: 0000000000000001 R09: ffffffff8ffd0967 R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880449c1bd0 R13: ffff8880449c1c18 R14: ffff8880449c1c18 R15: ffff8880449c1c18 FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f79a2227518 CR3: 000000001ed12000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __put_net+0x15/0x70 net/core/net_namespace.c:640 put_net include/net/net_namespace.h:268 [inline] put_net_track include/net/net_namespace.h:342 [inline] __sk_destruct+0x5f7/0x710 net/core/sock.c:2042 sk_destruct+0xbd/0xe0 net/core/sock.c:2058 __sk_free+0xef/0x3d0 net/core/sock.c:2069 sk_free+0x78/0xa0 net/core/sock.c:2080 sock_put include/net/sock.h:1912 [inline] __tun_detach+0xdb2/0x13d0 drivers/net/tun.c:681 tun_detach drivers/net/tun.c:693 [inline] tun_chr_close+0xc4/0x180 drivers/net/tun.c:3405 __fput+0x286/0x9f0 fs/file_table.c:311 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xb31/0x2b10 kernel/exit.c:793 do_group_exit+0x128/0x330 kernel/exit.c:931 get_signal+0x4b0/0x28c0 kernel/signal.c:2868 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:0x7f3d1a127e99 Code: Unable to access opcode bytes at RIP 0x7f3d1a127e6f. RSP: 002b:00007f3d18a9d218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f3d1a23af68 RCX: 00007f3d1a127e99 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f3d1a23af68 RBP: 00007f3d1a23af60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f3d1a23af6c R13: 00007ffdebba82bf R14: 00007f3d18a9d300 R15: 0000000000022000