FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 ================================================================== BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x4ad/0x4c0 net/tipc/name_table.c:670 Read of size 4 at addr ffff8880a94e6290 by task syz-executor.2/25298 CPU: 0 PID: 25294 Comm: syz-executor.5 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 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 should_failslab+0xd6/0x130 mm/failslab.c:32 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc_track_caller+0x2bc/0x400 mm/slab.c:3735 kstrdup+0x36/0x70 mm/util.c:57 call_modprobe kernel/kmod.c:84 [inline] __request_module+0x214/0x900 kernel/kmod.c:171 inet_create net/ipv4/af_inet.c:291 [inline] inet_create+0xae1/0xca0 net/ipv4/af_inet.c:244 __sock_create+0x303/0x620 net/socket.c:1275 sock_create net/socket.c:1315 [inline] SYSC_socket net/socket.c:1345 [inline] SyS_socket+0xd1/0x1b0 net/socket.c:1325 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fbc7ea600f9 RSP: 002b:00007fbc7cfd2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fbc7eb7ff80 RCX: 00007fbc7ea600f9 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000002 RBP: 00007fbc7cfd21d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffd36a0915f R14: 00007fbc7cfd2300 R15: 0000000000022000 CPU: 1 PID: 25298 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 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+0x4ad/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_sendmsg+0x4c/0x70 net/tipc/socket.c:923 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:0x7f1b61cc90f9 RSP: 002b:00007f1b6023b168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f1b61de8f80 RCX: 00007f1b61cc90f9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007f1b61d24ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2f40ea5f R14: 00007f1b6023b300 R15: 0000000000022000 CPU: 0 PID: 25291 Comm: syz-executor.4 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 Allocated by task 8017: 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 tipc_nametbl_insert_publ+0xb37/0x14e0 net/tipc/name_table.c:476 should_failslab+0xd6/0x130 mm/failslab.c:32 tipc_nametbl_publish+0x211/0x3f0 net/tipc/name_table.c:701 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3376 [inline] kmem_cache_alloc_trace+0x29a/0x3d0 mm/slab.c:3616 tipc_sk_publish net/tipc/socket.c:2206 [inline] tipc_bind+0x2c4/0x600 net/tipc/socket.c:630 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] aa_alloc_file_ctx security/apparmor/include/file.h:60 [inline] apparmor_file_alloc_security+0x129/0x800 security/apparmor/lsm.c:431 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 security_file_alloc+0x66/0xa0 security/security.c:874 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 get_empty_filp+0x16b/0x3f0 fs/file_table.c:129 setup_net+0x22f/0x530 net/core/net_namespace.c:298 alloc_file+0x23/0x440 fs/file_table.c:164 copy_net_ns+0x19b/0x440 net/core/net_namespace.c:422 sock_alloc_file+0x113/0x2e0 net/socket.c:416 create_new_namespaces+0x375/0x720 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206 SYSC_accept4 net/socket.c:1575 [inline] SyS_accept4+0x211/0x580 net/socket.c:1537 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 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 4632: 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 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 kobject_uevent_env+0x26c/0xf30 lib/kobject_uevent.c:537 kobject_synth_uevent+0x5b6/0x6d0 lib/kobject_uevent.c:205 uevent_store+0x3c/0x80 drivers/base/bus.c:621 drv_attr_store+0x6d/0xa0 drivers/base/bus.c:78 sysfs_kf_write+0x106/0x160 fs/sysfs/file.c:142 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 kernfs_fop_write+0x289/0x440 fs/kernfs/file.c:316 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 __vfs_write+0xe4/0x630 fs/read_write.c:480 RIP: 0033:0x7f26c85a60f9 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 RSP: 002b:00007f26c6b18168 EFLAGS: 00000246 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 ORIG_RAX: 0000000000000120 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RAX: ffffffffffffffda RBX: 00007f26c86c5f80 RCX: 00007f26c85a60f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 The buggy address belongs to the object at ffff8880a94e6280 which belongs to the cache kmalloc-32 of size 32 RBP: 00007f26c6b181d0 R08: 0000000000000000 R09: 0000000000000000 The buggy address is located 16 bytes inside of 32-byte region [ffff8880a94e6280, ffff8880a94e62a0) R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 The buggy address belongs to the page: R13: 00007ffe894610df R14: 00007f26c6b18300 R15: 0000000000022000 page:ffffea0002a53980 count:1 mapcount:0 mapping:ffff8880a94e6000 index:0xffff8880a94e6fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880a94e6000 ffff8880a94e6fc1 0000000100000039 raw: ffffea0002d359e0 ffffea0002bf9ae0 ffff88813fe741c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a94e6180: 00 00 05 fc fc fc fc fc 05 fc fc fc fc fc fc fc ffff8880a94e6200: 00 06 fc fc fc fc fc fc 05 fc fc fc fc fc fc fc >ffff8880a94e6280: 00 00 fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ^ ffff8880a94e6300: 05 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ffff8880a94e6380: 05 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================