INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting enhanced syslogd: rsyslogd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added 'ci-upstream-kasan-gce-386-0,10.128.15.205' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 35.597097] ================================================================== [ 35.604538] BUG: KASAN: slab-out-of-bounds in tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 35.612655] Read of size 4 at addr ffff8801d2c4ff90 by task syzkaller938337/2987 [ 35.620168] [ 35.621774] CPU: 1 PID: 2987 Comm: syzkaller938337 Not tainted 4.14.0-rc4+ #41 [ 35.629105] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 35.638429] Call Trace: [ 35.640992] dump_stack+0x194/0x257 [ 35.644595] ? arch_local_irq_restore+0x53/0x53 [ 35.649241] ? show_regs_print_info+0x65/0x65 [ 35.653715] ? lock_release+0xd70/0xd70 [ 35.657662] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 35.663087] print_address_description+0x73/0x250 [ 35.667902] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 35.673326] kasan_report+0x25b/0x340 [ 35.677103] __asan_report_load4_noabort+0x14/0x20 [ 35.682005] tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 35.687264] tipc_sendmcast+0x70b/0xe20 [ 35.691214] ? unwind_dump+0x4c0/0x4c0 [ 35.695089] ? tipc_release+0xfd0/0xfd0 [ 35.699040] ? __kernel_text_address+0xd/0x40 [ 35.703599] ? __is_insn_slot_addr+0x1fc/0x330 [ 35.708330] ? lock_downgrade+0x990/0x990 [ 35.712451] ? __save_stack_trace+0x61/0xd0 [ 35.716753] ? __sys_sendmsg+0xe5/0x210 [ 35.720708] ? lock_release+0xd70/0xd70 [ 35.724657] ? is_bpf_text_address+0x7b/0x120 [ 35.729125] ? lock_downgrade+0x990/0x990 [ 35.733249] ? show_initstate+0xb0/0xb0 [ 35.737200] ? bpf_prog_alloc+0x310/0x310 [ 35.741325] ? __bfs+0xaa/0x750 [ 35.744590] ? lock_release+0xd70/0xd70 [ 35.748535] ? noop_count+0x40/0x40 [ 35.752146] __tipc_sendmsg+0xf49/0x1590 [ 35.756178] ? __tipc_sendmsg+0xf49/0x1590 [ 35.760387] ? rcutorture_record_progress+0x10/0x10 [ 35.765388] ? tipc_sendmcast+0xe20/0xe20 [ 35.769515] ? check_usage_backwards+0x20a/0x420 [ 35.774262] ? print_shortest_lock_dependencies+0x350/0x350 [ 35.779960] ? save_stack_trace+0x16/0x20 [ 35.784078] ? save_trace+0x11f/0x350 [ 35.787859] ? mark_held_locks+0xb2/0x100 [ 35.791983] ? __raw_spin_lock_init+0x1c/0x100 [ 35.796540] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 35.801527] ? __lockdep_init_map+0xe4/0x650 [ 35.805910] ? lockdep_init_map+0x3d/0x70 [ 35.810038] __tipc_sendstream+0x8eb/0xc00 [ 35.814247] ? find_held_lock+0x39/0x1d0 [ 35.818291] ? tipc_connect+0x6d0/0x6d0 [ 35.822238] ? lock_downgrade+0x990/0x990 [ 35.826366] ? lock_acquire+0x1d5/0x580 [ 35.830311] ? tipc_sendstream+0x42/0x70 [ 35.834355] ? mark_held_locks+0xb2/0x100 [ 35.838487] ? __local_bh_enable_ip+0x9d/0x160 [ 35.843048] tipc_sendstream+0x50/0x70 [ 35.846913] tipc_send_packet+0x33/0x50 [ 35.850860] ? tipc_sendstream+0x70/0x70 [ 35.854897] sock_sendmsg+0xca/0x110 [ 35.858589] ___sys_sendmsg+0x75b/0x8a0 [ 35.862542] ? copy_msghdr_from_user+0x590/0x590 [ 35.867272] ? _raw_spin_unlock+0x22/0x30 [ 35.871393] ? __handle_mm_fault+0x587/0x39c0 [ 35.875867] ? __pmd_alloc+0x4e0/0x4e0 [ 35.879735] ? __fget_light+0x29d/0x390 [ 35.883685] ? fget_raw+0x20/0x20 [ 35.887137] ? __fdget+0x18/0x20 [ 35.890481] __sys_sendmsg+0xe5/0x210 [ 35.894257] ? __sys_sendmsg+0xe5/0x210 [ 35.898216] ? SyS_shutdown+0x290/0x290 [ 35.902160] ? down_read_trylock+0xdb/0x170 [ 35.906454] ? __handle_mm_fault+0x39c0/0x39c0 [ 35.911009] ? vmacache_find+0x5f/0x280 [ 35.914982] compat_SyS_sendmsg+0x2a/0x40 [ 35.919103] ? compat_SyS_getsockopt+0x420/0x420 [ 35.923838] do_fast_syscall_32+0x3f2/0xf05 [ 35.928139] ? do_int80_syscall_32+0x940/0x940 [ 35.932698] ? kasan_check_read+0x11/0x20 [ 35.936823] ? syscall_return_slowpath+0x510/0x510 [ 35.941729] ? SyS_rt_sigaction+0x94/0x1b0 [ 35.945939] ? lockdep_sys_exit+0x47/0xf0 [ 35.950060] ? retint_user+0x18/0x20 [ 35.953753] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 35.958579] entry_SYSENTER_compat+0x51/0x60 [ 35.962962] RIP: 0023:0xf7f19c79 [ 35.966298] RSP: 002b:00000000ffd153fc EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 35.973981] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000203bbfc8 [ 35.981226] RDX: 0000000000000004 RSI: 0000000000000167 RDI: 000000000000001e [ 35.988468] RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 [ 35.995711] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 36.002951] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 36.010212] [ 36.011812] Allocated by task 1: [ 36.015152] save_stack_trace+0x16/0x20 [ 36.019105] save_stack+0x43/0xd0 [ 36.022529] kasan_kmalloc+0xad/0xe0 [ 36.026219] kmem_cache_alloc_trace+0x136/0x750 [ 36.030867] tipc_nameseq_create+0xe8/0x540 [ 36.035158] tipc_nametbl_insert_publ+0xf77/0x17c0 [ 36.040056] tipc_nametbl_publish+0x2aa/0x4f0 [ 36.044525] tipc_bind+0x33a/0x700 [ 36.048037] kernel_bind+0x62/0x80 [ 36.051547] tipc_server_start+0x3a1/0xb60 [ 36.055774] tipc_topsrv_start+0x64f/0x890 [ 36.059979] tipc_init_net+0x3cc/0x570 [ 36.063840] ops_init+0x10a/0x570 [ 36.067264] register_pernet_operations+0x45e/0x980 [ 36.072252] register_pernet_subsys+0x2a/0x40 [ 36.076719] tipc_init+0x83/0x104 [ 36.080143] do_one_initcall+0x9e/0x330 [ 36.084092] kernel_init_freeable+0x469/0x521 [ 36.088557] kernel_init+0x13/0x172 [ 36.092155] ret_from_fork+0x2a/0x40 [ 36.095837] [ 36.097435] Freed by task 0: [ 36.100421] (stack is not available) [ 36.104112] [ 36.105712] The buggy address belongs to the object at ffff8801d2c4ff80 [ 36.105712] which belongs to the cache kmalloc-32 of size 32 [ 36.118163] The buggy address is located 16 bytes inside of [ 36.118163] 32-byte region [ffff8801d2c4ff80, ffff8801d2c4ffa0) [ 36.129832] The buggy address belongs to the page: [ 36.134732] page:ffffea00074b13c0 count:1 mapcount:0 mapping:ffff8801d2c4f000 index:0xffff8801d2c4ffc1 [ 36.144150] flags: 0x200000000000100(slab) [ 36.148358] raw: 0200000000000100 ffff8801d2c4f000 ffff8801d2c4ffc1 0000000100000032 [ 36.156208] raw: ffffea00074a2ce0 ffffea00074b9ee0 ffff8801dac001c0 0000000000000000 [ 36.164057] page dumped because: kasan: bad access detected [ 36.169737] [ 36.171333] Memory state around the buggy address: [ 36.176233] ffff8801d2c4fe80: 04 fc fc fc fc fc fc fc 00 00 00 00 fc fc fc fc [ 36.183571] ffff8801d2c4ff00: 00 00 00 fc fc fc fc fc fb fb fb fb fc fc fc fc [ 36.190900] >ffff8801d2c4ff80: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.198228] ^ [ 36.202084] ffff8801d2c50000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.209413] ffff8801d2c50080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 36.216739] ================================================================== [ 36.224102] Disabling lock debugging due to kernel taint [ 36.229559] Kernel panic - not syncing: panic_on_warn set ... [ 36.229559] [ 36.236891] CPU: 1 PID: 2987 Comm: syzkaller938337 Tainted: G B 4.14.0-rc4+ #41 [ 36.245432] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 36.254753] Call Trace: [ 36.257313] dump_stack+0x194/0x257 [ 36.260909] ? arch_local_irq_restore+0x53/0x53 [ 36.265547] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 36.270271] ? tipc_nametbl_lookup_dst_nodes+0x3f0/0x4b0 [ 36.275691] panic+0x1e4/0x417 [ 36.278851] ? __warn+0x1d9/0x1d9 [ 36.282278] ? tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 36.287696] kasan_end_report+0x50/0x50 [ 36.291649] kasan_report+0x144/0x340 [ 36.295430] __asan_report_load4_noabort+0x14/0x20 [ 36.300326] tipc_nametbl_lookup_dst_nodes+0x4a3/0x4b0 [ 36.305573] tipc_sendmcast+0x70b/0xe20 [ 36.309516] ? unwind_dump+0x4c0/0x4c0 [ 36.313381] ? tipc_release+0xfd0/0xfd0 [ 36.317325] ? __kernel_text_address+0xd/0x40 [ 36.321787] ? __is_insn_slot_addr+0x1fc/0x330 [ 36.326336] ? lock_downgrade+0x990/0x990 [ 36.330453] ? __save_stack_trace+0x61/0xd0 [ 36.334747] ? __sys_sendmsg+0xe5/0x210 [ 36.338691] ? lock_release+0xd70/0xd70 [ 36.342634] ? is_bpf_text_address+0x7b/0x120 [ 36.347097] ? lock_downgrade+0x990/0x990 [ 36.351214] ? show_initstate+0xb0/0xb0 [ 36.355157] ? bpf_prog_alloc+0x310/0x310 [ 36.359273] ? __bfs+0xaa/0x750 [ 36.362525] ? lock_release+0xd70/0xd70 [ 36.366475] ? noop_count+0x40/0x40 [ 36.370074] __tipc_sendmsg+0xf49/0x1590 [ 36.374101] ? __tipc_sendmsg+0xf49/0x1590 [ 36.378303] ? rcutorture_record_progress+0x10/0x10 [ 36.383290] ? tipc_sendmcast+0xe20/0xe20 [ 36.387407] ? check_usage_backwards+0x20a/0x420 [ 36.392130] ? print_shortest_lock_dependencies+0x350/0x350 [ 36.397814] ? save_stack_trace+0x16/0x20 [ 36.401926] ? save_trace+0x11f/0x350 [ 36.405695] ? mark_held_locks+0xb2/0x100 [ 36.409809] ? __raw_spin_lock_init+0x1c/0x100 [ 36.414357] ? trace_hardirqs_on_caller+0x421/0x5c0 [ 36.419337] ? __lockdep_init_map+0xe4/0x650 [ 36.423714] ? lockdep_init_map+0x3d/0x70 [ 36.427833] __tipc_sendstream+0x8eb/0xc00 [ 36.432035] ? find_held_lock+0x39/0x1d0 [ 36.436081] ? tipc_connect+0x6d0/0x6d0 [ 36.440021] ? lock_downgrade+0x990/0x990 [ 36.444157] ? lock_acquire+0x1d5/0x580 [ 36.448097] ? tipc_sendstream+0x42/0x70 [ 36.452139] ? mark_held_locks+0xb2/0x100 [ 36.457134] ? __local_bh_enable_ip+0x9d/0x160 [ 36.461691] tipc_sendstream+0x50/0x70 [ 36.465544] tipc_send_packet+0x33/0x50 [ 36.469482] ? tipc_sendstream+0x70/0x70 [ 36.473514] sock_sendmsg+0xca/0x110 [ 36.477207] ___sys_sendmsg+0x75b/0x8a0 [ 36.481160] ? copy_msghdr_from_user+0x590/0x590 [ 36.485885] ? _raw_spin_unlock+0x22/0x30 [ 36.489999] ? __handle_mm_fault+0x587/0x39c0 [ 36.494462] ? __pmd_alloc+0x4e0/0x4e0 [ 36.498322] ? __fget_light+0x29d/0x390 [ 36.502264] ? fget_raw+0x20/0x20 [ 36.505696] ? __fdget+0x18/0x20 [ 36.509031] __sys_sendmsg+0xe5/0x210 [ 36.512798] ? __sys_sendmsg+0xe5/0x210 [ 36.516748] ? SyS_shutdown+0x290/0x290 [ 36.520692] ? down_read_trylock+0xdb/0x170 [ 36.524981] ? __handle_mm_fault+0x39c0/0x39c0 [ 36.529530] ? vmacache_find+0x5f/0x280 [ 36.533488] compat_SyS_sendmsg+0x2a/0x40 [ 36.537603] ? compat_SyS_getsockopt+0x420/0x420 [ 36.542325] do_fast_syscall_32+0x3f2/0xf05 [ 36.546616] ? do_int80_syscall_32+0x940/0x940 [ 36.551166] ? kasan_check_read+0x11/0x20 [ 36.555281] ? syscall_return_slowpath+0x510/0x510 [ 36.560180] ? SyS_rt_sigaction+0x94/0x1b0 [ 36.564383] ? lockdep_sys_exit+0x47/0xf0 [ 36.568498] ? retint_user+0x18/0x20 [ 36.572182] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 36.576992] entry_SYSENTER_compat+0x51/0x60 [ 36.581367] RIP: 0023:0xf7f19c79 [ 36.584696] RSP: 002b:00000000ffd153fc EFLAGS: 00000203 ORIG_RAX: 0000000000000172 [ 36.592370] RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000203bbfc8