================================================================== BUG: KASAN: slab-out-of-bounds in __tipc_nl_add_nametable_publ net/tipc/name_table.c:815 [inline] BUG: KASAN: slab-out-of-bounds in __tipc_nl_service_range_list net/tipc/name_table.c:885 [inline] BUG: KASAN: slab-out-of-bounds in tipc_nl_service_list net/tipc/name_table.c:926 [inline] BUG: KASAN: slab-out-of-bounds in tipc_nl_name_table_dump+0x15a3/0x1700 net/tipc/name_table.c:960 Read of size 4 at addr ffff88809344ed78 by task syz-executor.2/20771 CPU: 0 PID: 20771 Comm: syz-executor.2 Not tainted 5.3.0-rc7+ #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_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 __tipc_nl_add_nametable_publ net/tipc/name_table.c:815 [inline] __tipc_nl_service_range_list net/tipc/name_table.c:885 [inline] tipc_nl_service_list net/tipc/name_table.c:926 [inline] tipc_nl_name_table_dump+0x15a3/0x1700 net/tipc/name_table.c:960 __tipc_nl_compat_dumpit.isra.0+0x21a/0x930 net/tipc/netlink_compat.c:207 tipc_nl_compat_dumpit+0x24c/0x510 net/tipc/netlink_compat.c:288 tipc_nl_compat_handle net/tipc/netlink_compat.c:1253 [inline] tipc_nl_compat_recv+0x5a0/0xae0 net/tipc/netlink_compat.c:1291 genl_family_rcv_msg+0x74b/0xf90 net/netlink/genetlink.c:629 genl_rcv_msg+0xca/0x170 net/netlink/genetlink.c:654 netlink_rcv_skb+0x177/0x450 net/netlink/af_netlink.c:2477 genl_rcv+0x29/0x40 net/netlink/genetlink.c:665 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+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459879 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:00007f7b8e121c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459879 RDX: 0000000000000000 RSI: 0000000020000500 RDI: 0000000000000008 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7b8e1226d4 R13: 00000000004ce9d8 R14: 00000000004dcc70 R15: 00000000ffffffff Allocated by task 3936: 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 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc+0x163/0x770 mm/slab.c:3664 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:748 [inline] tomoyo_commit_ok+0x23/0x80 security/tomoyo/memory.c:76 tomoyo_update_domain+0x59b/0x810 security/tomoyo/domain.c:137 tomoyo_update_path_acl security/tomoyo/file.c:398 [inline] tomoyo_write_file+0x4e7/0x750 security/tomoyo/file.c:1022 tomoyo_write_domain2+0x111/0x1d0 security/tomoyo/common.c:1150 tomoyo_add_entry security/tomoyo/common.c:2040 [inline] tomoyo_supervisor+0xc09/0xef0 security/tomoyo/common.c:2101 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x263/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x31d/0x430 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x1d/0x30 security/tomoyo/tomoyo.c:129 security_inode_getattr+0xf2/0x150 security/security.c:1182 vfs_getattr+0x25/0x70 fs/stat.c:115 vfs_statx+0x157/0x200 fs/stat.c:191 vfs_stat include/linux/fs.h:3188 [inline] __do_sys_newstat+0xa4/0x130 fs/stat.c:341 __se_sys_newstat fs/stat.c:337 [inline] __x64_sys_newstat+0x54/0x80 fs/stat.c:337 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: (stack is not available) The buggy address belongs to the object at ffff88809344ed00 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 56 bytes to the right of 64-byte region [ffff88809344ed00, ffff88809344ed40) The buggy address belongs to the page: page:ffffea00024d1380 refcount:1 mapcount:0 mapping:ffff8880aa400380 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002429848 ffffea00026476c8 ffff8880aa400380 raw: 0000000000000000 ffff88809344e000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809344ec00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88809344ec80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88809344ed00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ^ ffff88809344ed80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88809344ee00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================