RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000400454ca RDX: 0000000020000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ------------[ cut here ]------------ kernel BUG at net/core/net-sysfs.c:1631! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 19845 Comm: syz-executor.3 Not tainted 5.1.0-rc5+ #69 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:netdev_release net/core/net-sysfs.c:1631 [inline] RIP: 0010:netdev_release+0x92/0xb0 net/core/net-sysfs.c:1627 Code: 48 c1 ea 03 80 3c 02 00 75 29 48 8b bb 80 fa ff ff e8 72 af 21 fc 4c 89 ef e8 9a c2 f5 ff 5b 41 5c 41 5d 5d c3 e8 4e da e9 fb <0f> 0b e8 97 e9 21 fc eb 9c e8 f0 e9 21 fc eb d0 0f 1f 40 00 66 2e RSP: 0018:ffff8880a939fb68 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88809931afe0 RCX: ffffc9000c432000 RDX: 0000000000040000 RSI: ffffffff8586b262 RDI: 0000000000000001 RBP: ffff8880a939fb80 R08: ffff8880600c4500 R09: ffff8880600c4da0 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88809931aa40 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f5d53b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002d021000 CR3: 0000000088eb6000 CR4: 00000000001406e0 Call Trace: device_release+0x7d/0x210 drivers/base/core.c:1064 kobject_cleanup lib/kobject.c:662 [inline] kobject_release lib/kobject.c:691 [inline] kref_put include/linux/kref.h:67 [inline] kobject_put.cold+0x28f/0x2ec lib/kobject.c:708 put_device+0x20/0x30 drivers/base/core.c:2205 netdev_register_kobject+0x1a1/0x3c0 net/core/net-sysfs.c:1763 register_netdevice+0x878/0xff0 net/core/dev.c:8713 tun_set_iff drivers/net/tun.c:2843 [inline] __tun_chr_ioctl+0x21c9/0x3ee0 drivers/net/tun.c:3077 tun_chr_compat_ioctl+0x29/0x30 drivers/net/tun.c:3377 __do_compat_sys_ioctl fs/compat_ioctl.c:1052 [inline] __se_compat_sys_ioctl fs/compat_ioctl.c:998 [inline] __ia32_compat_sys_ioctl+0x197/0x620 fs/compat_ioctl.c:998 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x281/0xc98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f57869 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f5d530cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00000000400454ca RDX: 0000000020000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 556822a288bb80d1 ]--- RIP: 0010:netdev_release net/core/net-sysfs.c:1631 [inline] RIP: 0010:netdev_release+0x92/0xb0 net/core/net-sysfs.c:1627 Code: 48 c1 ea 03 80 3c 02 00 75 29 48 8b bb 80 fa ff ff e8 72 af 21 fc 4c 89 ef e8 9a c2 f5 ff 5b 41 5c 41 5d 5d c3 e8 4e da e9 fb <0f> 0b e8 97 e9 21 fc eb 9c e8 f0 e9 21 fc eb d0 0f 1f 40 00 66 2e RSP: 0018:ffff8880a939fb68 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88809931afe0 RCX: ffffc9000c432000 RDX: 0000000000040000 RSI: ffffffff8586b262 RDI: 0000000000000001 RBP: ffff8880a939fb80 R08: ffff8880600c4500 R09: ffff8880600c4da0 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88809931aa40 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f5d53b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 000000002d021000 CR3: 0000000088eb6000 CR4: 00000000001406e0