kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 13616 Comm: syz-executor.1 Not tainted 5.4.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:j1939_ndev_to_priv net/can/j1939/main.c:210 [inline] RIP: 0010:j1939_priv_get_by_ndev_locked net/can/j1939/main.c:222 [inline] RIP: 0010:j1939_priv_get_by_ndev net/can/j1939/main.c:234 [inline] RIP: 0010:j1939_netdev_notify+0x10a/0x2c0 net/can/j1939/main.c:344 Code: 88 05 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 96 70 fc fa bb 28 60 00 00 49 03 1c 24 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 77 70 fc fa 4c 8b 2b 4d 85 ed 0f RSP: 0018:ffff888055047ab0 EFLAGS: 00010206 RAX: 0000000000000c05 RBX: 0000000000006028 RCX: 0000000000000002 RDX: ffffc9000815e000 RSI: 0000000000000118 RDI: 0000000000000118 RBP: ffff888055047ae0 R08: ffffffff86b04481 R09: ffffed100aa08f4b R10: ffffed100aa08f4b R11: 0000000000000000 R12: ffff88808f508588 R13: dffffc0000000000 R14: ffff88808f50823c R15: 1ffff11011ea1047 FS: 00007fe38934c700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000960004 CR3: 00000000558c8000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: notifier_call_chain kernel/notifier.c:95 [inline] __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0xec/0x190 kernel/notifier.c:403 call_netdevice_notifiers_info net/core/dev.c:1668 [inline] call_netdevice_notifiers_extack net/core/dev.c:1680 [inline] call_netdevice_notifiers net/core/dev.c:1694 [inline] rollback_registered_many+0xbd6/0x11c0 net/core/dev.c:8522 rollback_registered net/core/dev.c:8564 [inline] unregister_netdevice_queue+0x2ce/0x480 net/core/dev.c:9656 unregister_netdevice include/linux/netdevice.h:2637 [inline] __tun_detach+0x1101/0x1a90 drivers/net/tun.c:723 tun_detach drivers/net/tun.c:740 [inline] tun_chr_close+0xf1/0x130 drivers/net/tun.c:3448 __fput+0x2e4/0x740 fs/file_table.c:280 ____fput+0x15/0x20 fs/file_table.c:313 task_work_run+0x17e/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x459/0x580 arch/x86/entry/common.c:194 syscall_return_slowpath+0x113/0x4a0 arch/x86/entry/common.c:274 do_syscall_64+0x11f/0x1c0 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a219 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe38934bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 000000000045a219 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe38934c6d4 R13: 00000000004faf72 R14: 00000000004d3238 R15: 00000000ffffffff Modules linked in: ---[ end trace 804a764698028f39 ]--- RIP: 0010:j1939_ndev_to_priv net/can/j1939/main.c:210 [inline] RIP: 0010:j1939_priv_get_by_ndev_locked net/can/j1939/main.c:222 [inline] RIP: 0010:j1939_priv_get_by_ndev net/can/j1939/main.c:234 [inline] RIP: 0010:j1939_netdev_notify+0x10a/0x2c0 net/can/j1939/main.c:344 Code: 88 05 00 00 4c 89 e0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 e7 e8 96 70 fc fa bb 28 60 00 00 49 03 1c 24 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 77 70 fc fa 4c 8b 2b 4d 85 ed 0f RSP: 0018:ffff888055047ab0 EFLAGS: 00010206 RAX: 0000000000000c05 RBX: 0000000000006028 RCX: 0000000000000002 RDX: ffffc9000815e000 RSI: 0000000000000118 RDI: 0000000000000118 RBP: ffff888055047ae0 R08: ffffffff86b04481 R09: ffffed100aa08f4b R10: ffffed100aa08f4b R11: 0000000000000000 R12: ffff88808f508588 R13: dffffc0000000000 R14: ffff88808f50823c R15: 1ffff11011ea1047 FS: 00007fe38934c700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000960004 CR3: 00000000558c8000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400