================================================================== BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x44c/0x4c0 net/tipc/name_table.c:670 Read of size 4 at addr ffff8880aabb0e10 by task syz-executor.0/13688 FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 13688 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:251 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:350 kasan_report mm/kasan/report.c:408 [inline] __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:428 tipc_nametbl_lookup_dst_nodes+0x44c/0x4c0 net/tipc/name_table.c:670 tipc_sendmcast+0x51a/0xac0 net/tipc/socket.c:768 __tipc_sendmsg+0xbab/0xf90 net/tipc/socket.c:975 __tipc_sendstream+0x695/0x8c0 net/tipc/socket.c:1069 tipc_sendstream net/tipc/socket.c:1043 [inline] tipc_send_packet+0x5a/0x90 net/tipc/socket.c:1119 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fc65e0600f9 RSP: 002b:00007fc65c5d2168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fc65e17ff80 RCX: 00007fc65e0600f9 RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000003 RBP: 00007fc65e0bbae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4b9f1b2f R14: 00007fc65c5d2300 R15: 0000000000022000 CPU: 0 PID: 13692 Comm: syz-executor.2 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Allocated by task 7976: Call Trace: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 tipc_nameseq_create+0x53/0x290 net/tipc/name_table.c:152 should_fail_alloc_page mm/page_alloc.c:2898 [inline] prepare_alloc_pages mm/page_alloc.c:4165 [inline] __alloc_pages_nodemask+0x21e/0x2900 mm/page_alloc.c:4213 tipc_nametbl_insert_publ+0xb37/0x14e0 net/tipc/name_table.c:476 tipc_nametbl_publish+0x211/0x3f0 net/tipc/name_table.c:701 tipc_sk_publish net/tipc/socket.c:2206 [inline] tipc_bind+0x2c4/0x600 net/tipc/socket.c:630 tipc_create_listen_sock net/tipc/server.c:338 [inline] tipc_open_listening_sock net/tipc/server.c:396 [inline] tipc_server_start+0x31f/0x880 net/tipc/server.c:611 tipc_topsrv_start net/tipc/subscr.c:382 [inline] tipc_topsrv_init_net+0x53b/0x730 net/tipc/subscr.c:397 ops_init+0xaa/0x3e0 net/core/net_namespace.c:118 setup_net+0x22f/0x530 net/core/net_namespace.c:298 alloc_pages_current+0x155/0x260 mm/mempolicy.c:2108 copy_net_ns+0x19b/0x440 net/core/net_namespace.c:422 alloc_pages include/linux/gfp.h:520 [inline] pte_alloc_one+0x15/0x100 arch/x86/mm/pgtable.c:30 create_new_namespaces+0x375/0x720 kernel/nsproxy.c:107 do_huge_pmd_anonymous_page+0x500/0x1700 mm/huge_memory.c:692 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2413 [inline] SyS_unshare+0x308/0x7f0 kernel/fork.c:2363 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 create_huge_pmd mm/memory.c:4007 [inline] __handle_mm_fault+0x2ac4/0x4620 mm/memory.c:4210 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 1: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 handle_mm_fault+0x455/0x9c0 mm/memory.c:4276 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 __do_page_fault+0x549/0xad0 arch/x86/mm/fault.c:1442 usb_control_msg+0x35f/0x450 drivers/usb/core/message.c:157 usb_get_string+0xab/0x150 drivers/usb/core/message.c:698 usb_string_sub+0xbf/0x2e0 drivers/usb/core/message.c:737 usb_get_langid drivers/usb/core/message.c:774 [inline] usb_string+0x18b/0x5a0 drivers/usb/core/message.c:837 usb_cache_string+0x74/0x110 drivers/usb/core/message.c:883 page_fault+0x45/0x50 arch/x86/entry/entry_64.S:1126 usb_enumerate_device drivers/usb/core/hub.c:2351 [inline] usb_new_device+0x141/0x1940 drivers/usb/core/hub.c:2477 RIP: 3200700:0x1 register_root_hub drivers/usb/core/hcd.c:1121 [inline] usb_add_hcd+0xd2a/0x1de0 drivers/usb/core/hcd.c:2926 RSP: 3200660:0000000000000102 EFLAGS: 7fe903200670 dummy_hcd_probe+0x124/0x350 drivers/usb/gadget/udc/dummy_hcd.c:2655 platform_drv_probe+0xc1/0x1b0 drivers/base/platform.c:583 really_probe drivers/base/dd.c:409 [inline] driver_probe_device+0x753/0xc80 drivers/base/dd.c:552 __device_attach_driver+0x22a/0x360 drivers/base/dd.c:653 bus_for_each_drv+0x13b/0x1a0 drivers/base/bus.c:466 __device_attach+0x259/0x390 drivers/base/dd.c:710 bus_probe_device+0x1db/0x290 drivers/base/bus.c:526 device_add+0xa4f/0x15c0 drivers/base/core.c:1933 platform_device_add+0x28f/0x7a0 drivers/base/platform.c:421 init+0x415/0x84b drivers/usb/gadget/udc/dummy_hcd.c:2808 do_one_initcall+0x88/0x210 init/main.c:830 do_initcall_level init/main.c:896 [inline] do_initcalls init/main.c:904 [inline] do_basic_setup init/main.c:922 [inline] kernel_init_freeable+0x565/0x626 init/main.c:1081 kernel_init+0xd/0x166 init/main.c:1006 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406 The buggy address belongs to the object at ffff8880aabb0e00 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of 32-byte region [ffff8880aabb0e00, ffff8880aabb0e20) The buggy address belongs to the page: page:ffffea0002aaec00 count:1 mapcount:0 mapping:ffff8880aabb0000 index:0xffff8880aabb0fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880aabb0000 ffff8880aabb0fc1 000000010000003a raw: ffffea0002bc94e0 ffffea0002a85560 ffff88813fe741c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aabb0d00: 00 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ffff8880aabb0d80: 00 04 fc fc fc fc fc fc 00 00 06 fc fc fc fc fc >ffff8880aabb0e00: 00 00 fc fc fc fc fc fc 00 00 00 01 fc fc fc fc ^ ffff8880aabb0e80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff8880aabb0f00: 00 00 00 fc fc fc fc fc 00 00 fc fc fc fc fc fc ==================================================================