================================================================== BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:194 [inline] BUG: KASAN: slab-out-of-bounds in ip6_dst_lookup_tail+0x1f15/0x1f90 net/ipv6/ip6_output.c:1026 Read of size 8 at addr ffff888086a7b964 by task syz-executor.1/4183 CPU: 1 PID: 4183 Comm: syz-executor.1 Not tainted 5.2.0-rc3+ #30 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+0x7c/0x20d mm/kasan/report.c:188 __kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 kasan_report+0x12/0x20 mm/kasan/common.c:614 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:132 __read_once_size include/linux/compiler.h:194 [inline] ip6_dst_lookup_tail+0x1f15/0x1f90 net/ipv6/ip6_output.c:1026 ip6_dst_lookup_flow+0xa8/0x220 net/ipv6/ip6_output.c:1150 sctp_v6_get_dst+0x785/0x1ce0 net/sctp/ipv6.c:278 sctp_transport_route+0x12d/0x360 net/sctp/transport.c:297 sctp_assoc_add_peer+0x53e/0xfc0 net/sctp/associola.c:663 sctp_process_param net/sctp/sm_make_chunk.c:2522 [inline] sctp_process_init+0x2458/0x2ad0 net/sctp/sm_make_chunk.c:2343 sctp_sf_do_unexpected_init net/sctp/sm_statefuns.c:1541 [inline] sctp_sf_do_unexpected_init.isra.0+0x7cd/0x1350 net/sctp/sm_statefuns.c:1441 sctp_sf_do_5_2_1_siminit+0x35/0x40 net/sctp/sm_statefuns.c:1670 sctp_do_sm+0x121/0x5190 net/sctp/sm_sideeffect.c:1152 sctp_assoc_bh_rcv+0x343/0x660 net/sctp/associola.c:1059 sctp_inq_push+0x1e4/0x280 net/sctp/inqueue.c:80 sctp_backlog_rcv+0x196/0xbe0 net/sctp/input.c:339 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x129/0x390 net/core/sock.c:2412 release_sock+0x59/0x1c0 net/core/sock.c:2928 sctp_wait_for_connect+0x316/0x540 net/sctp/socket.c:9039 __sctp_connect+0xab2/0xcd0 net/sctp/socket.c:1226 sctp_connect net/sctp/socket.c:4846 [inline] sctp_inet_connect+0x29c/0x340 net/sctp/socket.c:4862 __sys_connect+0x264/0x330 net/socket.c:1834 __do_sys_connect net/socket.c:1845 [inline] __se_sys_connect net/socket.c:1842 [inline] __x64_sys_connect+0x73/0xb0 net/socket.c:1842 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4592c9 Code: fd b7 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 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7d8541dc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004592c9 RDX: 000000000000001c RSI: 0000000020000200 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7d8541e6d4 R13: 00000000004bf7b5 R14: 00000000004d0f38 R15: 00000000ffffffff Allocated by task 8912: save_stack+0x23/0x90 mm/kasan/common.c:71 set_track mm/kasan/common.c:79 [inline] __kasan_kmalloc mm/kasan/common.c:489 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:462 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:497 slab_post_alloc_hook mm/slab.h:437 [inline] slab_alloc mm/slab.c:3326 [inline] kmem_cache_alloc+0x11a/0x6f0 mm/slab.c:3488 kmem_cache_zalloc include/linux/slab.h:732 [inline] __kernfs_new_node+0xf0/0x6c0 fs/kernfs/dir.c:632 kernfs_new_node+0x96/0x120 fs/kernfs/dir.c:698 kernfs_create_dir_ns+0x52/0x160 fs/kernfs/dir.c:1023 internal_create_group+0x7f4/0xc40 fs/sysfs/group.c:136 sysfs_create_group+0x20/0x30 fs/sysfs/group.c:174 dpm_sysfs_add+0x87/0x270 drivers/base/power/sysfs.c:650 device_add+0x9df/0x17a0 drivers/base/core.c:2086 netdev_register_kobject+0x183/0x3b0 net/core/net-sysfs.c:1746 register_netdevice+0x875/0xff0 net/core/dev.c:8705 veth_newlink+0x540/0x990 drivers/net/veth.c:1292 __rtnl_newlink+0x1080/0x16c0 net/core/rtnetlink.c:3187 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3245 rtnetlink_rcv_msg+0x463/0xb00 net/core/rtnetlink.c:5214 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2482 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5232 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x531/0x710 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x8ae/0xd70 net/netlink/af_netlink.c:1922 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:665 __sys_sendto+0x262/0x380 net/socket.c:1958 __do_sys_sendto net/socket.c:1970 [inline] __se_sys_sendto net/socket.c:1966 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1966 do_syscall_64+0xfd/0x680 arch/x86/entry/common.c:301 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff888086a7b8c0 which belongs to the cache kernfs_node_cache of size 160 The buggy address is located 4 bytes to the right of 160-byte region [ffff888086a7b8c0, ffff888086a7b960) The buggy address belongs to the page: page:ffffea00021a9ec0 refcount:1 mapcount:0 mapping:ffff88821bc48500 index:0xffff888086a7bfee flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea00021a9e88 ffffea0002a4eec8 ffff88821bc48500 raw: ffff888086a7bfee ffff888086a7b000 0000000100000012 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888086a7b800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888086a7b880: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 >ffff888086a7b900: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ^ ffff888086a7b980: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 ffff888086a7ba00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================