executing program syzkaller login: [ 17.450791] ================================================================== [ 17.451325] BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.451865] Read of size 4 at addr ffff88003be13450 by task syzkaller414110/2981 [ 17.452372] [ 17.452485] CPU: 3 PID: 2981 Comm: syzkaller414110 Not tainted 4.14.0-rc5-next-20171018+ #8 [ 17.453282] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 17.453825] Call Trace: [ 17.453994] dump_stack+0x194/0x257 [ 17.454259] ? arch_local_irq_restore+0x53/0x53 [ 17.454576] ? show_regs_print_info+0x65/0x65 [ 17.454896] ? lock_release+0xa40/0xa40 [ 17.455178] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.455553] print_address_description+0x73/0x250 [ 17.455859] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.456192] kasan_report+0x25b/0x340 [ 17.456422] __asan_report_load4_noabort+0x14/0x20 [ 17.456735] tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.457114] tipc_sendmcast+0x794/0xe70 [ 17.457389] ? print_shortest_lock_dependencies+0x350/0x350 [ 17.457777] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.458365] ? tipc_release+0xfe0/0xfe0 [ 17.458633] ? __lock_acquire+0x6aa/0x3d50 [ 17.458931] ? pagevec_lru_move_fn+0x1cd/0x260 [ 17.459232] ? check_noncircular+0x20/0x20 [ 17.459499] ? find_held_lock+0x35/0x1d0 [ 17.459781] ? hlock_class+0x140/0x140 [ 17.460067] ? __lock_acquire+0x6aa/0x3d50 [ 17.460378] ? __is_insn_slot_addr+0x1fc/0x330 [ 17.460693] ? lock_downgrade+0x990/0x990 [ 17.461000] ? lock_release+0xa40/0xa40 [ 17.461303] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 17.461630] __tipc_sendmsg+0xebf/0x1b20 [ 17.461910] ? __tipc_sendmsg+0xebf/0x1b20 [ 17.462243] ? __bfs+0xaa/0x750 [ 17.462508] ? tipc_sendmcast+0xe70/0xe70 [ 17.462847] ? rcutorture_record_progress+0x10/0x10 [ 17.463199] ? is_bpf_text_address+0xa4/0x120 [ 17.463467] ? kernel_text_address+0x102/0x140 [ 17.463740] ? check_usage_backwards+0x20a/0x420 [ 17.464096] ? print_shortest_lock_dependencies+0x350/0x350 [ 17.464486] ? save_stack_trace+0x1a/0x20 [ 17.464764] ? save_trace+0x11f/0x350 [ 17.465051] ? mark_held_locks+0xaf/0x100 [ 17.465331] ? check_noncircular+0x20/0x20 [ 17.465615] ? __raw_spin_lock_init+0x1c/0x100 [ 17.465901] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.466251] ? __lockdep_init_map+0xe4/0x650 [ 17.466549] ? lockdep_init_map+0x9/0x10 [ 17.466828] __tipc_sendstream+0x8eb/0xc00 [ 17.467142] ? find_held_lock+0x35/0x1d0 [ 17.467423] ? tipc_connect+0x790/0x790 [ 17.467692] ? find_held_lock+0x35/0x1d0 [ 17.467985] ? lock_acquire+0x1d5/0x580 [ 17.468261] ? lock_acquire+0x1d5/0x580 [ 17.468529] ? tipc_sendstream+0x42/0x70 [ 17.468810] ? mark_held_locks+0xaf/0x100 [ 17.469114] ? trace_hardirqs_on+0xd/0x10 [ 17.469394] ? __local_bh_enable_ip+0x9d/0x160 [ 17.469706] tipc_sendstream+0x50/0x70 [ 17.469971] tipc_send_packet+0x33/0x50 [ 17.470248] ? tipc_sendstream+0x70/0x70 [ 17.470523] sock_sendmsg+0xca/0x110 [ 17.470779] ___sys_sendmsg+0x755/0x890 [ 17.471080] ? find_held_lock+0x35/0x1d0 [ 17.471356] ? copy_msghdr_from_user+0x590/0x590 [ 17.471677] ? __do_page_fault+0x64c/0xd60 [ 17.471989] ? lock_downgrade+0x990/0x990 [ 17.472287] ? handle_mm_fault+0x410/0x8d0 [ 17.472611] ? __fget_light+0x297/0x380 [ 17.472916] ? fget_raw+0x20/0x20 [ 17.473217] ? up_read+0x1a/0x40 [ 17.473497] ? __fdget+0x18/0x20 [ 17.473728] __sys_sendmsg+0xe5/0x210 [ 17.473995] ? __sys_sendmsg+0xe5/0x210 [ 17.474309] ? SyS_shutdown+0x290/0x290 [ 17.475000] ? fd_install+0x4d/0x60 [ 17.475268] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.475606] SyS_sendmsg+0x2d/0x50 [ 17.475861] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.476293] RIP: 0033:0x434f39 [ 17.476508] RSP: 002b:00007ffca55641f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 17.477061] RAX: ffffffffffffffda RBX: 00000000004002b0 RCX: 0000000000434f39 [ 17.477609] RDX: 0000000000000004 RSI: 00000000203bbfc8 RDI: 0000000000000003 [ 17.478166] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 17.478686] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 17.479262] R13: 00000000004018b0 R14: 0000000000401940 R15: 0000000000000000 [ 17.479808] [ 17.479918] Allocated by task 1: [ 17.480153] save_stack+0x43/0xd0 [ 17.480385] kasan_kmalloc+0xad/0xe0 [ 17.480701] kmem_cache_alloc_trace+0x136/0x750 [ 17.481041] tipc_nameseq_create+0xe8/0x540 [ 17.481406] tipc_nametbl_insert_publ+0xf77/0x17c0 [ 17.481736] tipc_nametbl_publish+0x2aa/0x4f0 [ 17.482051] tipc_sk_publish+0x1f5/0x4b0 [ 17.482322] tipc_bind+0x1a9/0x2d0 [ 17.482559] kernel_bind+0x62/0x80 [ 17.482807] tipc_server_start+0x39b/0xb60 [ 17.483126] tipc_topsrv_start+0x649/0x880 [ 17.483409] tipc_init_net+0x3cc/0x570 [ 17.483669] ops_init+0x10a/0x570 [ 17.483902] register_pernet_operations+0x45e/0x980 [ 17.484249] register_pernet_subsys+0x2a/0x40 [ 17.484550] tipc_init+0x83/0x104 [ 17.484781] do_one_initcall+0x9e/0x330 [ 17.485093] kernel_init_freeable+0x469/0x521 [ 17.485418] kernel_init+0x13/0x172 [ 17.485673] ret_from_fork+0x2a/0x40 [ 17.485932] [ 17.486056] Freed by task 0: [ 17.486268] (stack is not available) [ 17.486514] [ 17.486625] The buggy address belongs to the object at ffff88003be13440 [ 17.486625] which belongs to the cache kmalloc-32 of size 32 [ 17.487546] The buggy address is located 16 bytes inside of [ 17.487546] 32-byte region [ffff88003be13440, ffff88003be13460) [ 17.488355] The buggy address belongs to the page: [ 17.488682] page:ffffea0000ef84c0 count:1 mapcount:0 mapping:ffff88003be13000 index:0xffff88003be13fc1 [ 17.489335] flags: 0x100000000000100(slab) [ 17.489617] raw: 0100000000000100 ffff88003be13000 ffff88003be13fc1 0000000100000021 [ 17.490151] raw: ffffea0000f278e0 ffffea0000f472e0 ffff88003e8001c0 0000000000000000 [ 17.490678] page dumped because: kasan: bad access detected [ 17.491073] [ 17.491197] Memory state around the buggy address: [ 17.491544] ffff88003be13300: 00 06 fc fc fc fc fc fc 00 06 fc fc fc fc fc fc [ 17.492104] ffff88003be13380: 00 06 fc fc fc fc fc fc 00 06 fc fc fc fc fc fc [ 17.492657] >ffff88003be13400: 00 00 00 fc fc fc fc fc 00 00 fc fc fc fc fc fc [ 17.493211] ^ [ 17.493647] ffff88003be13480: fb fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.494182] ffff88003be13500: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc [ 17.494680] ================================================================== [ 17.495186] Disabling lock debugging due to kernel taint [ 17.495603] Kernel panic - not syncing: panic_on_warn set ... [ 17.495603] [ 17.496804] CPU: 3 PID: 2981 Comm: syzkaller414110 Tainted: G B 4.14.0-rc5-next-20171018+ #8 [ 17.497479] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 [ 17.498046] Call Trace: [ 17.498224] dump_stack+0x194/0x257 [ 17.498506] ? arch_local_irq_restore+0x53/0x53 [ 17.498856] ? kasan_end_report+0x32/0x50 [ 17.499182] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 17.499550] ? vsnprintf+0x1ed/0x1900 [ 17.499975] ? tipc_nametbl_lookup_dst_nodes+0x480/0x4b0 [ 17.500572] panic+0x1e4/0x41c [ 17.500919] ? refcount_error_report+0x214/0x214 [ 17.501429] ? add_taint+0x1c/0x50 [ 17.501807] ? add_taint+0x1c/0x50 [ 17.502173] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.502806] kasan_end_report+0x50/0x50 [ 17.503113] kasan_report+0x144/0x340 [ 17.503465] __asan_report_load4_noabort+0x14/0x20 [ 17.504014] tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 17.504628] tipc_sendmcast+0x794/0xe70 [ 17.505067] ? print_shortest_lock_dependencies+0x350/0x350 [ 17.505658] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.506204] ? tipc_release+0xfe0/0xfe0 [ 17.506626] ? __lock_acquire+0x6aa/0x3d50 [ 17.507038] ? pagevec_lru_move_fn+0x1cd/0x260 [ 17.507417] ? check_noncircular+0x20/0x20 [ 17.507864] ? find_held_lock+0x35/0x1d0 [ 17.508338] ? hlock_class+0x140/0x140 [ 17.508774] ? __lock_acquire+0x6aa/0x3d50 [ 17.509265] ? __is_insn_slot_addr+0x1fc/0x330 [ 17.509760] ? lock_downgrade+0x990/0x990 [ 17.510039] ? lock_release+0xa40/0xa40 [ 17.510317] ? bpf_prog_kallsyms_find+0xbd/0x440 [ 17.510647] __tipc_sendmsg+0xebf/0x1b20 [ 17.511067] ? __tipc_sendmsg+0xebf/0x1b20 [ 17.511492] ? __bfs+0xaa/0x750 [ 17.511831] ? tipc_sendmcast+0xe70/0xe70 [ 17.512259] ? rcutorture_record_progress+0x10/0x10 [ 17.512775] ? is_bpf_text_address+0xa4/0x120 [ 17.513276] ? kernel_text_address+0x102/0x140 [ 17.513808] ? check_usage_backwards+0x20a/0x420 [ 17.514367] ? print_shortest_lock_dependencies+0x350/0x350 [ 17.514923] ? save_stack_trace+0x1a/0x20 [ 17.515214] ? save_trace+0x11f/0x350 [ 17.515741] ? mark_held_locks+0xaf/0x100 [ 17.516088] ? check_noncircular+0x20/0x20 [ 17.516390] ? __raw_spin_lock_init+0x1c/0x100 [ 17.516696] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.516998] ? __lockdep_init_map+0xe4/0x650 [ 17.517321] ? lockdep_init_map+0x9/0x10 [ 17.517635] __tipc_sendstream+0x8eb/0xc00 [ 17.517916] ? find_held_lock+0x35/0x1d0 [ 17.518186] ? tipc_connect+0x790/0x790 [ 17.518453] ? find_held_lock+0x35/0x1d0 [ 17.518995] ? lock_acquire+0x1d5/0x580 [ 17.519407] ? lock_acquire+0x1d5/0x580 [ 17.519673] ? tipc_sendstream+0x42/0x70 [ 17.519961] ? mark_held_locks+0xaf/0x100 [ 17.520244] ? trace_hardirqs_on+0xd/0x10 [ 17.520532] ? __local_bh_enable_ip+0x9d/0x160 [ 17.520851] tipc_sendstream+0x50/0x70 [ 17.521126] tipc_send_packet+0x33/0x50 [ 17.521469] ? tipc_sendstream+0x70/0x70 [ 17.521800] sock_sendmsg+0xca/0x110 [ 17.522076] ___sys_sendmsg+0x755/0x890 [ 17.522378] ? find_held_lock+0x35/0x1d0 [ 17.522728] ? copy_msghdr_from_user+0x590/0x590 [ 17.523089] ? __do_page_fault+0x64c/0xd60 [ 17.523381] ? lock_downgrade+0x990/0x990 [ 17.523662] ? handle_mm_fault+0x410/0x8d0 [ 17.523944] ? __fget_light+0x297/0x380 [ 17.524252] ? fget_raw+0x20/0x20 [ 17.524679] ? up_read+0x1a/0x40 [ 17.525004] ? __fdget+0x18/0x20 [ 17.525290] __sys_sendmsg+0xe5/0x210 [ 17.525634] ? __sys_sendmsg+0xe5/0x210 [ 17.525933] ? SyS_shutdown+0x290/0x290 [ 17.526248] ? fd_install+0x4d/0x60 [ 17.526501] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 17.526840] SyS_sendmsg+0x2d/0x50 [ 17.527079] entry_SYSCALL_64_fastpath+0x1f/0xbe [ 17.527421] RIP: 0033:0x434f39 [ 17.527633] RSP: 002b:00007ffca55641f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 17.528159] RAX: ffffffffffffffda RBX: 00000000004002b0 RCX: 0000000000434f39 [ 17.528730] RDX: 0000000000000004 RSI: 00000000203bbfc8 RDI: 0000000000000003 [ 17.529253] RBP: 0000000000000082 R08: 0000000000000000 R09: 0000000000000000 [ 17.529761] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 [ 17.530244] R13: 00000000004018b0 R14: 0000000000401940 R15: 0000000000000000 [ 17.530795] Dumping ftrace buffer: [ 17.531031] (ftrace buffer empty) [ 17.531262] Kernel Offset: disabled [ 17.531524] Rebooting in 86400 seconds..