================================================================== 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 ffff8880a886fbf8 by task blkid/13882 CPU: 0 PID: 13882 Comm: blkid Not tainted 5.3.0+ #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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:618 __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/0x150 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:flush_signal_handlers+0x81/0x160 kernel/signal.c:538 Code: 85 53 2b 00 31 ff 44 89 f6 e8 fb 54 2b 00 45 85 f6 75 1d e8 71 53 2b 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 0f 85 c2 00 00 00 <48> 83 3b 01 74 1e e8 54 53 2b 00 48 89 d8 48 c1 e8 03 42 80 3c 20 RSP: 0018:ffff888056c77ba0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 1ffff110119fa089 RBX: ffff88808cfd0448 RCX: ffffffff8147b835 RDX: 0000000000000000 RSI: ffffffff8147b83f RDI: 0000000000000005 RBP: ffff888056c77bc0 R08: ffff88805d6d2680 R09: ffffed100bada4d1 R10: ffffed100bada4d0 R11: ffff88805d6d2687 R12: dffffc0000000000 R13: 0000000000000026 R14: 0000000000000000 R15: 1ffff1100ad8ef9b setup_new_exec+0x4f8/0x740 fs/exec.c:1386 load_elf_binary+0xb8f/0x5490 fs/binfmt_elf.c:880 search_binary_handler fs/exec.c:1658 [inline] search_binary_handler+0x16d/0x570 fs/exec.c:1635 exec_binprm fs/exec.c:1701 [inline] __do_execve_file.isra.0+0x1333/0x2340 fs/exec.c:1821 do_execveat_common fs/exec.c:1868 [inline] do_execve fs/exec.c:1885 [inline] __do_sys_execve fs/exec.c:1961 [inline] __se_sys_execve fs/exec.c:1956 [inline] __x64_sys_execve+0x8f/0xc0 fs/exec.c:1956 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f39ae041207 Code: Bad RIP value. RSP: 002b:00007ffe0077ef68 EFLAGS: 00000202 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 00000000ffffffff RCX: 00007f39ae041207 RDX: 0000000000cb9310 RSI: 00007ffe0077f060 RDI: 00007ffe00780070 RBP: 0000000000625500 R08: 0000000000002db0 R09: 0000000000002db0 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000cb9310 R13: 0000000000000007 R14: 0000000000cb2250 R15: 0000000000000005 Allocated by task 13881: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:493 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:466 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:507 kmem_cache_alloc_trace+0x158/0x790 mm/slab.c:3550 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:748 [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 13122: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:463 __cache_free mm/slab.c:3425 [inline] kfree+0x10a/0x2c0 mm/slab.c:3756 urb_destroy drivers/usb/core/urb.c:26 [inline] kref_put include/linux/kref.h:65 [inline] usb_free_urb.part.0+0x85/0xd0 drivers/usb/core/urb.c:95 usb_free_urb+0x20/0x30 drivers/usb/core/urb.c:94 usb_start_wait_urb+0x21f/0x2f0 drivers/usb/core/message.c:79 usb_internal_control_msg drivers/usb/core/message.c:101 [inline] usb_control_msg+0x352/0x530 drivers/usb/core/message.c:152 get_port_status drivers/usb/core/hub.c:569 [inline] hub_ext_port_status+0x120/0x460 drivers/usb/core/hub.c:586 hub_port_status drivers/usb/core/hub.c:608 [inline] hub_activate+0x52a/0x1780 drivers/usb/core/hub.c:1111 hub_resume+0xa3/0x3f0 drivers/usb/core/hub.c:3765 usb_resume_interface drivers/usb/core/driver.c:1254 [inline] usb_resume_interface.isra.0+0x2f3/0x3b0 drivers/usb/core/driver.c:1212 usb_resume_both+0x292/0x800 drivers/usb/core/driver.c:1414 usb_runtime_resume+0x1e/0x30 drivers/usb/core/driver.c:1871 __rpm_callback+0x29e/0x3d0 drivers/base/power/runtime.c:357 rpm_callback+0x19c/0x240 drivers/base/power/runtime.c:487 rpm_resume+0x11a7/0x1a20 drivers/base/power/runtime.c:851 __pm_runtime_resume+0x10d/0x180 drivers/base/power/runtime.c:1078 pm_runtime_get_sync include/linux/pm_runtime.h:226 [inline] usb_autoresume_device+0x23/0x60 drivers/usb/core/driver.c:1601 usbdev_open+0x20c/0x910 drivers/usb/core/devio.c:1011 chrdev_open+0x245/0x6b0 fs/char_dev.c:414 do_dentry_open+0x4df/0x1250 fs/open.c:797 vfs_open+0xa0/0xd0 fs/open.c:906 do_last fs/namei.c:3408 [inline] path_openat+0x10e9/0x4630 fs/namei.c:3525 do_filp_open+0x1a1/0x280 fs/namei.c:3555 do_sys_open+0x3fe/0x5d0 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1102 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880a886fb00 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 56 bytes to the right of 192-byte region [ffff8880a886fb00, ffff8880a886fbc0) The buggy address belongs to the page: page:ffffea0002a21bc0 refcount:1 mapcount:0 mapping:ffff8880aa400000 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002802208 ffffea000251ea48 ffff8880aa400000 raw: 0000000000000000 ffff8880a886f000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a886fa80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880a886fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880a886fb80: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880a886fc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a886fc80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================