================================================================== BUG: KASAN: slab-out-of-bounds in fib6_nh_get_excptn_bucket+0x198/0x1b0 net/ipv6/route.c:1595 Read of size 8 at addr ffff88808f7b70f8 by task ksoftirqd/0/9 CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.4.0-syzkaller #0 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+0x197/0x210 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374 __kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:638 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 fib6_nh_get_excptn_bucket+0x198/0x1b0 net/ipv6/route.c:1595 fib6_nh_flush_exceptions+0x37/0x2d0 net/ipv6/route.c:1723 fib6_nh_release+0x84/0x3a0 net/ipv6/route.c:3505 fib6_info_destroy_rcu+0x197/0x220 net/ipv6/ip6_fib.c:174 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2183 [inline] rcu_core+0x570/0x1540 kernel/rcu/tree.c:2408 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2417 __do_softirq+0x262/0x98c kernel/softirq.c:292 run_ksoftirqd kernel/softirq.c:603 [inline] run_ksoftirqd+0x8e/0x110 kernel/softirq.c:595 smpboot_thread_fn+0x6a3/0xa40 kernel/smpboot.c:165 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 7166: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:512 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:485 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:526 kmem_cache_alloc_trace+0x158/0x790 mm/slab.c:3551 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:670 [inline] fib6_info_alloc+0xb6/0x1b0 net/ipv6/ip6_fib.c:154 ip6_route_info_create+0x2ff/0x1500 net/ipv6/route.c:3607 ip6_route_add+0x27/0x110 net/ipv6/route.c:3699 inet6_rtm_newroute+0x16c/0x180 net/ipv6/route.c:5267 rtnetlink_rcv_msg+0x45e/0xaf0 net/core/rtnetlink.c:5422 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5440 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x58c/0x7d0 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8ee/0xe60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:659 ____sys_sendmsg+0x753/0x880 net/socket.c:2330 ___sys_sendmsg+0x11d/0x1b0 net/socket.c:2384 __sys_sendmsg+0x105/0x1d0 net/socket.c:2430 __do_sys_sendmsg net/socket.c:2439 [inline] __se_sys_sendmsg net/socket.c:2437 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2437 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6706: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] kasan_set_free_info mm/kasan/common.c:334 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:473 kasan_slab_free+0xe/0x10 mm/kasan/common.c:482 __cache_free mm/slab.c:3426 [inline] kfree+0x10a/0x2c0 mm/slab.c:3757 free_states kernel/bpf/verifier.c:9475 [inline] bpf_check+0x1d8e/0xab11 kernel/bpf/verifier.c:9783 bpf_prog_load+0x10b8/0x18a0 kernel/bpf/syscall.c:1805 __do_sys_bpf+0xa48/0x37b0 kernel/bpf/syscall.c:3030 __se_sys_bpf kernel/bpf/syscall.c:2989 [inline] __x64_sys_bpf+0x73/0xb0 kernel/bpf/syscall.c:2989 do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88808f7b7000 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 56 bytes to the right of 192-byte region [ffff88808f7b7000, ffff88808f7b70c0) The buggy address belongs to the page: page:ffffea00023dedc0 refcount:1 mapcount:0 mapping:ffff8880aa400000 index:0xffff88808f7b7a00 raw: 00fffe0000000200 ffffea000268bd88 ffffea00028b8008 ffff8880aa400000 raw: ffff88808f7b7a00 ffff88808f7b7000 000000010000000a 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808f7b6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808f7b7000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88808f7b7080: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808f7b7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808f7b7180: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================