------------[ cut here ]------------ kernel BUG at net/core/dev.c:7945! invalid opcode: 0000 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 7435 Comm: syz-executor7 Not tainted 4.14.0-mm1+ #25 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c427c2c0 task.stack: ffff8801d3998000 RIP: 0010:netdev_run_todo+0x772/0xae0 net/core/dev.c:7945 RSP: 0018:ffff8801d399f050 EFLAGS: 00010293 RAX: ffff8801c427c2c0 RBX: dffffc0000000000 RCX: ffffffff841fe652 RDX: 0000000000000000 RSI: 1ffff1003a733e35 RDI: ffff8801cbcb0f10 RBP: ffff8801d399f350 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801cbcb13d8 R13: ffff8801d399f328 R14: ffff8801cbcb0e80 R15: ffff8801d399f2a8 FS: 00007fbf93815700(0000) GS:ffff8801db500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000001ec7cd8 CR3: 00000001c8d1c000 CR4: 00000000001406e0 DR0: 0000000020001008 DR1: 0000000020001008 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: rtnl_unlock+0xe/0x10 net/core/rtnetlink.c:106 tun_detach drivers/net/tun.c:670 [inline] tun_chr_close+0x49/0x60 drivers/net/tun.c:2845 __fput+0x333/0x7f0 fs/file_table.c:210 ____fput+0x15/0x20 fs/file_table.c:244 task_work_run+0x199/0x270 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x9bb/0x1ae0 kernel/exit.c:869 do_group_exit+0x149/0x400 kernel/exit.c:972 get_signal+0x73f/0x16c0 kernel/signal.c:2335 do_signal+0x94/0x1ee0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0x214/0x310 arch/x86/entry/common.c:158 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath+0x490/0x550 arch/x86/entry/common.c:264 entry_SYSCALL_64_fastpath+0x94/0x96 RIP: 0033:0x452879 RSP: 002b:00007fbf93814ce8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 0000000000758048 RCX: 0000000000452879 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000758048 RBP: 0000000000758048 R08: 0000000000000027 R09: 0000000000758020 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000a6f7ff R14: 00007fbf938159c0 R15: 0000000000000000 Code: b6 95 28 fd ff ff 4c 89 f6 48 c7 c7 20 de 7c 85 e8 79 f6 39 fd e8 b8 36 ed 00 e9 05 fb ff ff e8 95 38 50 fd 0f 0b e8 8e 38 50 fd <0f> 0b e8 87 38 50 fd 0f 0b e8 80 38 50 fd 0f ff e9 bf fe ff ff RIP: netdev_run_todo+0x772/0xae0 net/core/dev.c:7945 RSP: ffff8801d399f050 ---[ end trace 58d807a6198c685a ]---