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 Modules linked in: CPU: 0 PID: 3693 Comm: syz-executor.0 Not tainted 4.9.202+ #0 task: 00000000349590c7 task.stack: 000000007f73e95d RIP: 0010:[] [<000000001dd8808e>] addrconf_rt_table+0x127/0x290 net/ipv6/addrconf.c:2226 RSP: 0018:ffff8801a04cf3c8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff8801c5fc4000 RCX: 0000000000000001 RDX: 0000000000000056 RSI: 0000000000000000 RDI: 00000000000002b0 audit: type=1400 audit(1574634774.889:31): avc: denied { prog_run } for pid=7277 comm="syz-executor.4" scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tclass=bpf permissive=1 RBP: ffff8801a04cf3f8 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: 00000000000000fe R13: 0000000000000200 R14: 0000000000000000 R15: ffff8801a0c81ec0 FS: 00007fe32f751700(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000201b0000 CR3: 00000001a4233000 CR4: 00000000001606b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffffffff826c4610 ffff8801c68d5180 ffff8801c5fc4000 0000000000000000 0000000000000080 ffff8801a0c81ec0 ffff8801a04cf440 ffffffff826c5524 0000000000000000 ffff8801c68d5310 ffff8801c68d5180 ffff8801c68d5310 Call Trace: [<000000008929459c>] addrconf_get_prefix_route+0x34/0x270 net/ipv6/addrconf.c:2280 [<0000000005160b01>] __ipv6_ifa_notify+0x642/0x880 net/ipv6/addrconf.c:5520 [<00000000bc2d7f70>] addrconf_ifdown+0xa89/0x14d0 net/ipv6/addrconf.c:3692 [<00000000d110f78f>] addrconf_notify+0x7ac/0x1f50 net/ipv6/addrconf.c:3496 [<00000000fc2a7e66>] notifier_call_chain+0xb4/0x1d0 kernel/notifier.c:93 [<000000009981ed95>] __raw_notifier_call_chain kernel/notifier.c:394 [inline] [<000000009981ed95>] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401 [<0000000099311717>] call_netdevice_notifiers_info+0x56/0x70 net/core/dev.c:1647 [<00000000e7dcdff0>] call_netdevice_notifiers net/core/dev.c:1663 [inline] [<00000000e7dcdff0>] rollback_registered_many+0x6ef/0xb50 net/core/dev.c:6863 [<00000000eb3b6a30>] rollback_registered+0xf2/0x1b0 net/core/dev.c:6904 [<000000005a732f41>] unregister_netdevice_queue net/core/dev.c:7893 [inline] [<000000005a732f41>] unregister_netdevice_queue+0x1ae/0x230 net/core/dev.c:7886 [<00000000f65f9472>] unregister_netdevice include/linux/netdevice.h:2468 [inline] [<00000000f65f9472>] __tun_detach+0x820/0xa00 drivers/net/tun.c:575 [<00000000c09dcf48>] tun_detach drivers/net/tun.c:585 [inline] [<00000000c09dcf48>] tun_chr_close+0x46/0x60 drivers/net/tun.c:2396 [<000000001af0315c>] __fput+0x274/0x720 fs/file_table.c:208 [<00000000f8a1f223>] ____fput+0x16/0x20 fs/file_table.c:244 [<000000004bff58a4>] task_work_run+0x108/0x180 kernel/task_work.c:116 [<0000000024f1751b>] exit_task_work include/linux/task_work.h:21 [inline] [<0000000024f1751b>] do_exit+0x78f/0x2aa0 kernel/exit.c:842 [<000000000aa22122>] do_group_exit+0x111/0x300 kernel/exit.c:946 [<00000000546b6df8>] get_signal+0x377/0x1cb0 kernel/signal.c:2395 [<00000000a33cc84a>] do_signal+0x9c/0x1920 arch/x86/kernel/signal.c:812 [<00000000775b1a5d>] exit_to_usermode_loop+0x11c/0x160 arch/x86/entry/common.c:159 [<0000000004c85387>] prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] [<0000000004c85387>] syscall_return_slowpath arch/x86/entry/common.c:266 [inline] [<0000000004c85387>] do_syscall_64+0x3ab/0x5c0 arch/x86/entry/common.c:293 [<000000003966a2b8>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Code: 6c 82 be 01 00 00 00 48 c7 c7 60 59 0d 83 e8 11 de b4 fe 49 8d be b0 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 35 01 00 00 45 8b be b0 02 RIP [<000000001dd8808e>] addrconf_rt_table+0x127/0x290 net/ipv6/addrconf.c:2226 RSP ---[ end trace 0bd1163d4864d18f ]---