================================================================== BUG: KASAN: wild-memory-access in atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] BUG: KASAN: wild-memory-access in refcount_sub_and_test_checked+0x87/0x200 lib/refcount.c:182 Read of size 4 at addr 88809945a9c0002c by task syz-executor.4/22419 CPU: 0 PID: 22419 Comm: syz-executor.4 Not tainted 5.1.0+ #12 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_read+0x11/0x20 mm/kasan/common.c:94 atomic_read include/asm-generic/atomic-instrumented.h:26 [inline] refcount_sub_and_test_checked+0x87/0x200 lib/refcount.c:182 refcount_dec_and_test_checked+0x1b/0x20 lib/refcount.c:220 fib6_info_release include/net/ip6_fib.h:298 [inline] fib6_info_release include/net/ip6_fib.h:296 [inline] fib6_drop_pcpu_from net/ipv6/ip6_fib.c:920 [inline] fib6_purge_rt+0x482/0x590 net/ipv6/ip6_fib.c:953 fib6_del_route net/ipv6/ip6_fib.c:1806 [inline] fib6_del+0xac2/0x10a0 net/ipv6/ip6_fib.c:1837 fib6_clean_node+0x3a8/0x590 net/ipv6/ip6_fib.c:1999 fib6_walk_continue+0x495/0x900 net/ipv6/ip6_fib.c:1921 fib6_walk+0x9d/0x100 net/ipv6/ip6_fib.c:1969 fib6_clean_tree+0xe0/0x120 net/ipv6/ip6_fib.c:2048 __fib6_clean_all+0x118/0x2a0 net/ipv6/ip6_fib.c:2064 fib6_clean_all+0x2b/0x40 net/ipv6/ip6_fib.c:2075 rt6_sync_down_dev+0x134/0x150 net/ipv6/route.c:4153 rt6_disable_ip+0x27/0x5f0 net/ipv6/route.c:4158 addrconf_ifdown+0xa2/0x1220 net/ipv6/addrconf.c:3709 addrconf_notify+0x19a/0x2250 net/ipv6/addrconf.c:3634 notifier_call_chain+0xc7/0x240 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401 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/0xfd0 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+0x302/0x890 fs/file_table.c:279 ____fput+0x16/0x20 fs/file_table.c:312 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x90a/0x2fa0 kernel/exit.c:876 do_group_exit+0x135/0x370 kernel/exit.c:980 __do_sys_exit_group kernel/exit.c:991 [inline] __se_sys_exit_group kernel/exit.c:989 [inline] __x64_sys_exit_group+0x44/0x50 kernel/exit.c:989 do_syscall_64+0x103/0x670 arch/x86/entry/common.c:298 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458da9 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc25646d78 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 000000000000001c RCX: 0000000000458da9 RDX: 0000000000412a80 RSI: 0000000000a54ef0 RDI: 0000000000000043 RBP: 00000000004be54c R08: 000000000000000c R09: 00000000000d986e R10: 0000000000bd5940 R11: 0000000000000246 R12: 00000000ffffffff R13: 00007ffc25646ec0 R14: 00000000000d9789 R15: 00007ffc25646ed0 ==================================================================