================================================================== 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 ffff888086e4d2f8 by task syz-executor.5/14632 CPU: 0 PID: 14632 Comm: syz-executor.5 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:__find_get_block+0x289/0xdb0 fs/buffer.c:1294 Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 1c 0a 00 00 48 83 3d 19 62 2d 07 00 0f 84 41 08 00 00 e8 ee d8 ac ff fb 66 0f 1f 44 00 00 <4d> 85 ff 0f 84 f1 01 00 00 e8 d9 d8 ac ff 0f 1f 44 00 00 e8 cf d8 RSP: 0018:ffff8880621e7a68 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff8880902ba1c0 RBX: ffff888095b653f0 RCX: 0000000000000006 RDX: 0000000000000000 RSI: ffffffff81c5b662 RDI: ffff8880902baa54 RBP: ffff8880621e7ac8 R08: 1ffffffff14ef13c R09: fffffbfff14ef13d R10: fffffbfff14ef13c R11: ffffffff8a7789e7 R12: 0000000000000000 R13: 0000000000000434 R14: 0000000000000000 R15: ffff888095b653f0 sb_find_get_block include/linux/buffer_head.h:338 [inline] recently_deleted fs/ext4/ialloc.c:682 [inline] find_inode_bit.isra.0+0x202/0x520 fs/ext4/ialloc.c:722 __ext4_new_inode+0x16ad/0x4e50 fs/ext4/ialloc.c:914 ext4_symlink+0x45a/0xf10 fs/ext4/namei.c:3262 vfs_symlink fs/namei.c:4119 [inline] vfs_symlink+0x373/0x5a0 fs/namei.c:4105 do_symlinkat+0x22b/0x290 fs/namei.c:4146 __do_sys_symlink fs/namei.c:4165 [inline] __se_sys_symlink fs/namei.c:4163 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4163 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459737 Code: 0f 1f 00 b8 5c 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 bd ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 58 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 9d ba fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fff597a90e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000459737 RDX: 00007fff597a9187 RSI: 00000000004bf249 RDI: 00007fff597a9170 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000017 R10: 0000000000000075 R11: 0000000000000206 R12: 0000000000000001 R13: 00007fff597a9120 R14: 0000000000000000 R15: 00007fff597a9130 Allocated by task 14627: 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 9: 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 __rcu_reclaim kernel/rcu/rcu.h:215 [inline] rcu_do_batch kernel/rcu/tree.c:2157 [inline] rcu_core+0x64b/0x1560 kernel/rcu/tree.c:2377 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2386 __do_softirq+0x262/0x98c kernel/softirq.c:292 The buggy address belongs to the object at ffff888086e4d200 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 56 bytes to the right of 192-byte region [ffff888086e4d200, ffff888086e4d2c0) The buggy address belongs to the page: page:ffffea00021b9340 refcount:1 mapcount:0 mapping:ffff8880aa400000 index:0xffff888086e4db00 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00023dfbc8 ffffea000290c0c8 ffff8880aa400000 raw: ffff888086e4db00 ffff888086e4d000 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888086e4d180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff888086e4d200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888086e4d280: 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888086e4d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888086e4d380: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc ==================================================================