================================================================== BUG: KASAN: slab-out-of-bounds in fib6_nh_get_excptn_bucket+0x198/0x1b0 net/ipv6/route.c:1591 Read of size 8 at addr ffff88806703c4f8 by task kworker/0:5/31786 CPU: 0 PID: 31786 Comm: kworker/0:5 Not tainted 5.4.0-rc2+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: rcu_gp process_srcu Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 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:634 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 fib6_nh_get_excptn_bucket+0x198/0x1b0 net/ipv6/route.c:1591 fib6_nh_flush_exceptions+0x37/0x2d0 net/ipv6/route.c:1719 fib6_nh_release+0x84/0x3a0 net/ipv6/route.c:3501 fib6_info_destroy_rcu+0x11e/0x160 net/ipv6/ip6_fib.c:174 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2157 [inline] rcu_core+0x581/0x1560 kernel/rcu/tree.c:2377 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2386 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 RIP: 0010:rdtsc_ordered arch/x86/include/asm/msr.h:236 [inline] RIP: 0010:delay_tsc+0x4a/0xc0 arch/x86/lib/delay.c:61 Code: 0f 01 f9 66 90 48 c1 e2 20 48 09 c2 49 89 d4 eb 16 f3 90 bf 01 00 00 00 e8 a3 82 0a fa e8 2e f5 ff fb 44 39 e8 75 36 0f 01 f9 <66> 90 48 c1 e2 20 48 89 d3 48 09 c3 48 89 d8 4c 29 e0 4c 39 f0 73 RSP: 0018:ffff88806474fbb0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 000000002bfd7ca6 RBX: 000002b62bfd7bcc RCX: 0000000000000000 RDX: 00000000000002b6 RSI: ffffffff83449a6c RDI: 0000000000000005 RBP: ffff88806474fbd0 R08: ffff888096d84180 R09: 0000000000000040 R10: 0000000000000040 R11: ffffffff8aafdaa7 R12: 000002b62bfd5c26 R13: 0000000000000000 R14: 0000000000002ced R15: 00000000000318f5 __delay arch/x86/lib/delay.c:161 [inline] __const_udelay+0x59/0x80 arch/x86/lib/delay.c:175 try_check_zero+0x201/0x330 kernel/rcu/srcutree.c:705 srcu_advance_state kernel/rcu/srcutree.c:1142 [inline] process_srcu+0x329/0xe10 kernel/rcu/srcutree.c:1237 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 24946: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:510 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:483 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:524 kmem_cache_alloc_trace+0x158/0x790 mm/slab.c:3550 kmalloc include/linux/slab.h:556 [inline] kzalloc include/linux/slab.h:690 [inline] fib6_info_alloc+0xb6/0x1b0 net/ipv6/ip6_fib.c:154 ip6_route_info_create+0x2fe/0x1530 net/ipv6/route.c:3603 ip6_route_add+0x27/0xc0 net/ipv6/route.c:3695 inet6_rtm_newroute+0x16c/0x180 net/ipv6/route.c:5263 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5223 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5241 netlink_unicast_kernel net/netlink/af_netlink.c:1302 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1328 netlink_sendmsg+0x8a5/0xd60 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x803/0x920 net/socket.c:2311 __sys_sendmsg+0x105/0x1d0 net/socket.c:2356 __do_sys_sendmsg net/socket.c:2365 [inline] __se_sys_sendmsg net/socket.c:2363 [inline] __x64_sys_sendmsg+0x78/0xb0 net/socket.c:2363 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88806703c400 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 56 bytes to the right of 192-byte region [ffff88806703c400, ffff88806703c4c0) The buggy address belongs to the page: page:ffffea00019c0f00 refcount:1 mapcount:0 mapping:ffff8880aa400000 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00024f94c8 ffffea0002517808 ffff8880aa400000 raw: 0000000000000000 ffff88806703c000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806703c380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88806703c400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88806703c480: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806703c500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88806703c580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================