================================================================== BUG: KASAN: null-ptr-deref in fib6_drop_pcpu_from net/ipv6/ip6_fib.c:925 [inline] BUG: KASAN: null-ptr-deref in fib6_purge_rt+0x1b3/0x5e0 net/ipv6/ip6_fib.c:937 Write of size 8 at addr 000000000000016c by task syz-executor.3/15303 CPU: 1 PID: 15303 Comm: syz-executor.3 Not tainted 5.2.0-rc1+ #2 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 __kasan_report.cold+0x5/0x40 mm/kasan/report.c:321 kasan_report+0x12/0x20 mm/kasan/common.c:614 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x123/0x190 mm/kasan/generic.c:191 kasan_check_write+0x14/0x20 mm/kasan/common.c:100 fib6_drop_pcpu_from net/ipv6/ip6_fib.c:925 [inline] fib6_purge_rt+0x1b3/0x5e0 net/ipv6/ip6_fib.c:937 fib6_del_route net/ipv6/ip6_fib.c:1812 [inline] fib6_del+0xac2/0x10a0 net/ipv6/ip6_fib.c:1843 fib6_clean_node+0x3a5/0x590 net/ipv6/ip6_fib.c:2005 fib6_walk_continue+0x4a9/0x8e0 net/ipv6/ip6_fib.c:1927 fib6_walk+0x9d/0x100 net/ipv6/ip6_fib.c:1975 fib6_clean_tree+0xe0/0x120 net/ipv6/ip6_fib.c:2054 __fib6_clean_all+0x118/0x2a0 net/ipv6/ip6_fib.c:2070 fib6_clean_all+0x2b/0x40 net/ipv6/ip6_fib.c:2081 rt6_sync_down_dev+0x134/0x150 net/ipv6/route.c:4163 rt6_disable_ip+0x27/0x5f0 net/ipv6/route.c:4168 addrconf_ifdown+0xa2/0x1220 net/ipv6/addrconf.c:3709 addrconf_notify+0x5db/0x2270 net/ipv6/addrconf.c:3634 notifier_call_chain+0xc2/0x230 kernel/notifier.c:95 __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:403 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1753 call_netdevice_notifiers_extack net/core/dev.c:1765 [inline] call_netdevice_notifiers net/core/dev.c:1779 [inline] dev_close_many+0x33f/0x6f0 net/core/dev.c:1522 rollback_registered_many+0x43b/0xfc0 net/core/dev.c:8193 rollback_registered+0x109/0x1d0 net/core/dev.c:8258 unregister_netdevice_queue net/core/dev.c:9305 [inline] unregister_netdevice_queue+0x1ee/0x2c0 net/core/dev.c:9298 unregister_netdevice include/linux/netdevice.h:2635 [inline] __tun_detach+0xd8a/0x1040 drivers/net/tun.c:733 tun_detach drivers/net/tun.c:750 [inline] tun_chr_close+0xe0/0x180 drivers/net/tun.c:3460 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:168 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:352 [inline] do_fast_syscall_32+0xb51/0xd7d arch/x86/entry/common.c:408 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7fd9849 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:000000000847fbcc EFLAGS: 00000216 ORIG_RAX: 0000000000000006 RAX: 0000000000000000 RBX: 0000000000000006 RCX: 0000000000000000 RDX: 0000000000000007 RSI: 000000000816b640 RDI: 000000000004d717 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ==================================================================