[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 28.944282] kauditd_printk_skb: 8 callbacks suppressed [ 28.944305] audit: type=1800 audit(1544713728.612:29): pid=5870 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 28.970763] audit: type=1800 audit(1544713728.622:30): pid=5870 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 [....] startpar: service(s) returned failure: rsyslog ...[?25l[?1c7[FAIL8[?25h[?0c failed! Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.816728] sshd (6031) used greatest stack depth: 15600 bytes left Warning: Permanently added '10.128.0.186' (ECDSA) to the list of known hosts. executing program executing program executing program executing program [ 56.560439] ================================================================== [ 56.568110] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 56.574940] Read of size 2 at addr ffff8881d75d0b74 by task syz-executor820/6066 [ 56.582816] [ 56.584434] CPU: 0 PID: 6066 Comm: syz-executor820 Not tainted 4.20.0-rc6-next-20181213+ #170 [ 56.593331] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.602675] Call Trace: [ 56.605270] dump_stack+0x244/0x39d [ 56.608888] ? dump_stack_print_info.cold.1+0x20/0x20 [ 56.614059] ? printk+0xa7/0xcf [ 56.617329] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 56.622464] print_address_description.cold.4+0x9/0x1ff [ 56.627826] ? tipc_group_bc_cong+0x327/0x3f0 [ 56.632313] kasan_report.cold.5+0x1b/0x39 [ 56.636547] ? tipc_group_bc_cong+0x327/0x3f0 [ 56.641033] ? tipc_group_bc_cong+0x327/0x3f0 [ 56.645516] __asan_report_load2_noabort+0x14/0x20 [ 56.650431] tipc_group_bc_cong+0x327/0x3f0 [ 56.655032] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 56.660269] ? tipc_group_cong+0x5d0/0x5d0 [ 56.664614] ? remove_wait_queue+0x1a6/0x360 [ 56.669013] ? add_wait_queue+0x2b0/0x2b0 [ 56.673144] ? __local_bh_enable_ip+0x160/0x260 [ 56.677800] tipc_send_group_bcast+0x50a/0xd90 [ 56.682511] ? tipc_sk_sock_err.isra.60+0x2f0/0x2f0 [ 56.687520] ? __init_waitqueue_head+0x150/0x150 [ 56.692260] ? refill_pi_state_cache.part.7+0x310/0x310 [ 56.697614] ? mark_held_locks+0x130/0x130 [ 56.701834] ? futex_wait_setup+0x266/0x3e0 [ 56.706142] ? handle_futex_death+0x230/0x230 [ 56.710621] ? print_usage_bug+0xc0/0xc0 [ 56.714669] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 56.719856] __tipc_sendmsg+0xeec/0x1d40 [ 56.723906] ? futex_wait+0x5ec/0xa50 [ 56.727699] ? tipc_sendmcast+0xf50/0xf50 [ 56.731963] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 56.737147] ? graph_lock+0x270/0x270 [ 56.741071] ? print_usage_bug+0xc0/0xc0 [ 56.745253] ? find_held_lock+0x36/0x1c0 [ 56.749312] ? mark_held_locks+0xc7/0x130 [ 56.753464] ? __local_bh_enable_ip+0x160/0x260 [ 56.758178] ? __local_bh_enable_ip+0x160/0x260 [ 56.762836] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.767418] ? trace_hardirqs_on+0xbd/0x310 [ 56.771842] ? lock_release+0xa00/0xa00 [ 56.775809] ? lock_sock_nested+0xe2/0x120 [ 56.780030] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.785186] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.790904] ? check_preemption_disabled+0x48/0x280 [ 56.795910] ? lock_sock_nested+0x9a/0x120 [ 56.800138] ? lock_sock_nested+0x9a/0x120 [ 56.804521] ? __local_bh_enable_ip+0x160/0x260 [ 56.809181] tipc_sendmsg+0x50/0x70 [ 56.812789] ? __tipc_sendmsg+0x1d40/0x1d40 [ 56.817094] sock_sendmsg+0xd5/0x120 [ 56.820793] ___sys_sendmsg+0x7fd/0x930 [ 56.824769] ? find_held_lock+0x36/0x1c0 [ 56.828816] ? copy_msghdr_from_user+0x580/0x580 [ 56.833566] ? __fd_install+0x2b5/0x8f0 [ 56.837530] ? check_preemption_disabled+0x48/0x280 [ 56.842535] ? __fget_light+0x2e9/0x430 [ 56.846494] ? fget_raw+0x20/0x20 [ 56.850017] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.855543] ? __fd_install+0x2f9/0x8f0 [ 56.859502] ? get_unused_fd_flags+0x1a0/0x1a0 [ 56.864150] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.869678] ? sockfd_lookup_light+0xc5/0x160 [ 56.874177] __sys_sendmsg+0x11d/0x280 [ 56.878063] ? __ia32_sys_shutdown+0x80/0x80 [ 56.882564] ? __x64_sys_futex+0x476/0x690 [ 56.886788] ? do_syscall_64+0x9a/0x820 [ 56.890749] ? do_syscall_64+0x9a/0x820 [ 56.894712] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.899918] __x64_sys_sendmsg+0x78/0xb0 [ 56.903966] do_syscall_64+0x1b9/0x820 [ 56.907839] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 56.913186] ? syscall_return_slowpath+0x5e0/0x5e0 [ 56.918103] ? trace_hardirqs_on_caller+0x310/0x310 [ 56.923107] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 56.928113] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 56.934765] ? __switch_to_asm+0x40/0x70 [ 56.938824] ? __switch_to_asm+0x34/0x70 [ 56.943025] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.947855] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.953030] RIP: 0033:0x446389 [ 56.956207] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 56.975093] RSP: 002b:00007fd0fff40db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 56.982789] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 56.990045] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 56.997419] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 57.004674] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 57.011927] R13: 00007ffc5614349f R14: 00007fd0fff419c0 R15: 00000000006dad2c [ 57.019189] [ 57.020864] Allocated by task 6067: [ 57.024491] save_stack+0x43/0xd0 [ 57.028045] kasan_kmalloc+0xcb/0xd0 [ 57.031754] kmem_cache_alloc_trace+0x154/0x740 [ 57.036558] tipc_group_create+0x152/0xa70 [ 57.040895] tipc_setsockopt+0x2d1/0xd70 [ 57.044948] __sys_setsockopt+0x1ba/0x3c0 [ 57.049087] __x64_sys_setsockopt+0xbe/0x150 [ 57.053482] do_syscall_64+0x1b9/0x820 [ 57.057467] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.062665] [ 57.064280] Freed by task 6067: [ 57.067561] save_stack+0x43/0xd0 [ 57.071000] __kasan_slab_free+0x102/0x150 [ 57.075229] kasan_slab_free+0xe/0x10 [ 57.079012] kfree+0xcf/0x230 [ 57.082100] tipc_group_delete+0x2e4/0x3f0 [ 57.086345] tipc_sk_leave+0x113/0x220 [ 57.090333] tipc_setsockopt+0x97d/0xd70 [ 57.094419] __sys_setsockopt+0x1ba/0x3c0 [ 57.098557] __x64_sys_setsockopt+0xbe/0x150 [ 57.103059] do_syscall_64+0x1b9/0x820 [ 57.106931] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.112098] [ 57.113706] The buggy address belongs to the object at ffff8881d75d0b00 [ 57.113706] which belongs to the cache kmalloc-192 of size 192 [ 57.126370] The buggy address is located 116 bytes inside of [ 57.126370] 192-byte region [ffff8881d75d0b00, ffff8881d75d0bc0) [ 57.138371] The buggy address belongs to the page: [ 57.143289] page:ffffea00075d7400 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 57.151495] flags: 0x2fffc0000000200(slab) [ 57.155721] raw: 02fffc0000000200 ffffea00075f6e48 ffffea00075ea408 ffff8881da800040 [ 57.163586] raw: 0000000000000000 ffff8881d75d0000 0000000100000010 0000000000000000 [ 57.171547] page dumped because: kasan: bad access detected [ 57.177316] [ 57.178957] Memory state around the buggy address: [ 57.183875] ffff8881d75d0a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.191225] ffff8881d75d0a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 57.198568] >ffff8881d75d0b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.205905] ^ [ 57.212902] ffff8881d75d0b80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 57.220390] ffff8881d75d0c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 57.227863] ================================================================== [ 57.235523] Disabling lock debugging due to kernel taint [ 57.241749] Kernel panic - not syncing: panic_on_warn set ... [ 57.247630] CPU: 0 PID: 6066 Comm: syz-executor820 Tainted: G B 4.20.0-rc6-next-20181213+ #170 [ 57.257762] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 57.267185] Call Trace: [ 57.269766] dump_stack+0x244/0x39d [ 57.273376] ? dump_stack_print_info.cold.1+0x20/0x20 [ 57.278560] ? tipc_group_bc_cong+0x250/0x3f0 [ 57.283211] panic+0x2ad/0x632 [ 57.286397] ? add_taint.cold.5+0x16/0x16 [ 57.290654] ? preempt_schedule+0x4d/0x60 [ 57.294786] ? ___preempt_schedule+0x16/0x18 [ 57.299205] ? trace_hardirqs_on+0xb4/0x310 [ 57.303513] ? tipc_group_bc_cong+0x327/0x3f0 [ 57.307998] end_report+0x47/0x4f [ 57.311437] kasan_report.cold.5+0xe/0x39 [ 57.315579] ? tipc_group_bc_cong+0x327/0x3f0 [ 57.320061] ? tipc_group_bc_cong+0x327/0x3f0 [ 57.324623] __asan_report_load2_noabort+0x14/0x20 [ 57.329548] tipc_group_bc_cong+0x327/0x3f0 [ 57.333874] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 57.338966] ? tipc_group_cong+0x5d0/0x5d0 [ 57.343189] ? remove_wait_queue+0x1a6/0x360 [ 57.347587] ? add_wait_queue+0x2b0/0x2b0 [ 57.351719] ? __local_bh_enable_ip+0x160/0x260 [ 57.356378] tipc_send_group_bcast+0x50a/0xd90 [ 57.360953] ? tipc_sk_sock_err.isra.60+0x2f0/0x2f0 [ 57.365959] ? __init_waitqueue_head+0x150/0x150 [ 57.370699] ? refill_pi_state_cache.part.7+0x310/0x310 [ 57.376056] ? mark_held_locks+0x130/0x130 [ 57.380278] ? futex_wait_setup+0x266/0x3e0 [ 57.384595] ? handle_futex_death+0x230/0x230 [ 57.389105] ? print_usage_bug+0xc0/0xc0 [ 57.393151] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.398369] __tipc_sendmsg+0xeec/0x1d40 [ 57.402416] ? futex_wait+0x5ec/0xa50 [ 57.406264] ? tipc_sendmcast+0xf50/0xf50 [ 57.410408] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 57.415582] ? graph_lock+0x270/0x270 [ 57.419367] ? print_usage_bug+0xc0/0xc0 [ 57.423434] ? find_held_lock+0x36/0x1c0 [ 57.427496] ? mark_held_locks+0xc7/0x130 [ 57.431634] ? __local_bh_enable_ip+0x160/0x260 [ 57.436409] ? __local_bh_enable_ip+0x160/0x260 [ 57.441187] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.445755] ? trace_hardirqs_on+0xbd/0x310 [ 57.450206] ? lock_release+0xa00/0xa00 [ 57.454165] ? lock_sock_nested+0xe2/0x120 [ 57.458490] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.463584] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.469109] ? check_preemption_disabled+0x48/0x280 [ 57.474111] ? lock_sock_nested+0x9a/0x120 [ 57.478331] ? lock_sock_nested+0x9a/0x120 [ 57.482548] ? __local_bh_enable_ip+0x160/0x260 [ 57.487210] tipc_sendmsg+0x50/0x70 [ 57.490933] ? __tipc_sendmsg+0x1d40/0x1d40 [ 57.495247] sock_sendmsg+0xd5/0x120 [ 57.498947] ___sys_sendmsg+0x7fd/0x930 [ 57.502906] ? find_held_lock+0x36/0x1c0 [ 57.506951] ? copy_msghdr_from_user+0x580/0x580 [ 57.511690] ? __fd_install+0x2b5/0x8f0 [ 57.515651] ? check_preemption_disabled+0x48/0x280 [ 57.520653] ? __fget_light+0x2e9/0x430 [ 57.524618] ? fget_raw+0x20/0x20 [ 57.528063] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.533586] ? __fd_install+0x2f9/0x8f0 [ 57.537554] ? get_unused_fd_flags+0x1a0/0x1a0 [ 57.542122] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 57.547645] ? sockfd_lookup_light+0xc5/0x160 [ 57.552205] __sys_sendmsg+0x11d/0x280 [ 57.556317] ? __ia32_sys_shutdown+0x80/0x80 [ 57.560718] ? __x64_sys_futex+0x476/0x690 [ 57.564945] ? do_syscall_64+0x9a/0x820 [ 57.568934] ? do_syscall_64+0x9a/0x820 [ 57.572893] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.577979] __x64_sys_sendmsg+0x78/0xb0 [ 57.582036] do_syscall_64+0x1b9/0x820 [ 57.585907] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 57.591254] ? syscall_return_slowpath+0x5e0/0x5e0 [ 57.596168] ? trace_hardirqs_on_caller+0x310/0x310 [ 57.601166] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 57.606163] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 57.612833] ? __switch_to_asm+0x40/0x70 [ 57.616881] ? __switch_to_asm+0x34/0x70 [ 57.620947] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.625782] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.631093] RIP: 0033:0x446389 [ 57.634276] Code: e8 2c b3 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 2b 09 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 57.653172] RSP: 002b:00007fd0fff40db8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 57.661071] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 57.668337] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 57.675603] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 57.682869] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 57.690122] R13: 00007ffc5614349f R14: 00007fd0fff419c0 R15: 00000000006dad2c [ 57.698333] Kernel Offset: disabled [ 57.701958] Rebooting in 86400 seconds..