[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 29.320137] kauditd_printk_skb: 8 callbacks suppressed [ 29.320148] audit: type=1800 audit(1544704975.742:29): pid=5891 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 [ 29.346623] audit: type=1800 audit(1544704975.752:30): pid=5891 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: [ 34.295832] sshd (6054) used greatest stack depth: 15600 bytes left Warning: Permanently added '10.128.0.97' (ECDSA) to the list of known hosts. executing program executing program [ 41.727809] ================================================================== [ 41.735425] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 41.742251] Read of size 2 at addr ffff8881d807a574 by task syz-executor022/6079 [ 41.749819] [ 41.751461] CPU: 0 PID: 6079 Comm: syz-executor022 Not tainted 4.20.0-rc6-next-20181213+ #170 [ 41.760136] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.769469] Call Trace: [ 41.772046] dump_stack+0x244/0x39d [ 41.775671] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.781008] ? printk+0xa7/0xcf [ 41.784287] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.789140] print_address_description.cold.4+0x9/0x1ff [ 41.794496] ? tipc_group_bc_cong+0x327/0x3f0 [ 41.798981] kasan_report.cold.5+0x1b/0x39 [ 41.803206] ? tipc_group_bc_cong+0x327/0x3f0 [ 41.807712] ? tipc_group_bc_cong+0x327/0x3f0 [ 41.812196] __asan_report_load2_noabort+0x14/0x20 [ 41.817111] tipc_group_bc_cong+0x327/0x3f0 [ 41.821426] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 41.826540] ? tipc_group_cong+0x5d0/0x5d0 [ 41.831131] ? remove_wait_queue+0x1a6/0x360 [ 41.835530] ? add_wait_queue+0x2b0/0x2b0 [ 41.839681] ? __local_bh_enable_ip+0x160/0x260 [ 41.844341] tipc_send_group_bcast+0x50a/0xd90 [ 41.848944] ? tipc_sk_sock_err.isra.60+0x2f0/0x2f0 [ 41.853959] ? __init_waitqueue_head+0x150/0x150 [ 41.858703] ? refill_pi_state_cache.part.7+0x310/0x310 [ 41.864063] ? mark_held_locks+0x130/0x130 [ 41.868287] ? futex_wait_setup+0x266/0x3e0 [ 41.872599] ? handle_futex_death+0x230/0x230 [ 41.877081] ? print_usage_bug+0xc0/0xc0 [ 41.881131] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 41.886335] __tipc_sendmsg+0xeec/0x1d40 [ 41.890382] ? futex_wait+0x5ec/0xa50 [ 41.894175] ? tipc_sendmcast+0xf50/0xf50 [ 41.898353] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 41.903538] ? graph_lock+0x270/0x270 [ 41.907336] ? print_usage_bug+0xc0/0xc0 [ 41.911390] ? find_held_lock+0x36/0x1c0 [ 41.915442] ? mark_held_locks+0xc7/0x130 [ 41.919583] ? __local_bh_enable_ip+0x160/0x260 [ 41.924252] ? __local_bh_enable_ip+0x160/0x260 [ 41.928913] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 41.933486] ? trace_hardirqs_on+0xbd/0x310 [ 41.937797] ? lock_release+0xa00/0xa00 [ 41.941759] ? lock_sock_nested+0xe2/0x120 [ 41.945981] ? trace_hardirqs_off_caller+0x310/0x310 [ 41.951087] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.956625] ? check_preemption_disabled+0x48/0x280 [ 41.961705] ? lock_sock_nested+0x9a/0x120 [ 41.966024] ? lock_sock_nested+0x9a/0x120 [ 41.970254] ? __local_bh_enable_ip+0x160/0x260 [ 41.974993] tipc_sendmsg+0x50/0x70 [ 41.978620] ? __tipc_sendmsg+0x1d40/0x1d40 [ 41.982930] sock_sendmsg+0xd5/0x120 [ 41.986634] ___sys_sendmsg+0x7fd/0x930 [ 41.990596] ? find_held_lock+0x36/0x1c0 [ 41.994646] ? copy_msghdr_from_user+0x580/0x580 [ 41.999393] ? __fd_install+0x2b5/0x8f0 [ 42.003366] ? check_preemption_disabled+0x48/0x280 [ 42.008377] ? __fget_light+0x2e9/0x430 [ 42.012354] ? fget_raw+0x20/0x20 [ 42.015798] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.021323] ? __fd_install+0x2f9/0x8f0 [ 42.025285] ? get_unused_fd_flags+0x1a0/0x1a0 [ 42.029863] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.035389] ? sockfd_lookup_light+0xc5/0x160 [ 42.039871] __sys_sendmsg+0x11d/0x280 [ 42.043749] ? __ia32_sys_shutdown+0x80/0x80 [ 42.048148] ? __x64_sys_futex+0x476/0x690 [ 42.052385] ? do_syscall_64+0x9a/0x820 [ 42.056359] ? do_syscall_64+0x9a/0x820 [ 42.060341] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.065437] __x64_sys_sendmsg+0x78/0xb0 [ 42.069511] do_syscall_64+0x1b9/0x820 [ 42.073390] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.078746] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.083669] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.088773] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.093780] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 42.100431] ? __switch_to_asm+0x40/0x70 [ 42.104492] ? __switch_to_asm+0x34/0x70 [ 42.108543] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.113404] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.118646] RIP: 0033:0x446389 [ 42.121834] 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 [ 42.140720] RSP: 002b:00007fdefa98fdb8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 42.148421] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 42.155685] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 42.162939] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 42.170202] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 42.177458] R13: 00007ffc2882cfbf R14: 00007fdefa9909c0 R15: 00000000006dad2c [ 42.184720] [ 42.186350] Allocated by task 6080: [ 42.189968] save_stack+0x43/0xd0 [ 42.193405] kasan_kmalloc+0xcb/0xd0 [ 42.197102] kmem_cache_alloc_trace+0x154/0x740 [ 42.201756] tipc_group_create+0x152/0xa70 [ 42.205976] tipc_setsockopt+0x2d1/0xd70 [ 42.210067] __sys_setsockopt+0x1ba/0x3c0 [ 42.214206] __x64_sys_setsockopt+0xbe/0x150 [ 42.218621] do_syscall_64+0x1b9/0x820 [ 42.222499] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.227671] [ 42.229285] Freed by task 6080: [ 42.232654] save_stack+0x43/0xd0 [ 42.236168] __kasan_slab_free+0x102/0x150 [ 42.240392] kasan_slab_free+0xe/0x10 [ 42.244180] kfree+0xcf/0x230 [ 42.247293] tipc_group_delete+0x2e4/0x3f0 [ 42.251684] tipc_sk_leave+0x113/0x220 [ 42.255662] tipc_setsockopt+0x97d/0xd70 [ 42.259712] __sys_setsockopt+0x1ba/0x3c0 [ 42.263851] __x64_sys_setsockopt+0xbe/0x150 [ 42.268271] do_syscall_64+0x1b9/0x820 [ 42.272158] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.277424] [ 42.279038] The buggy address belongs to the object at ffff8881d807a500 [ 42.279038] which belongs to the cache kmalloc-192 of size 192 [ 42.291797] The buggy address is located 116 bytes inside of [ 42.291797] 192-byte region [ffff8881d807a500, ffff8881d807a5c0) [ 42.303681] The buggy address belongs to the page: [ 42.308608] page:ffffea0007601e80 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 42.316806] flags: 0x2fffc0000000200(slab) [ 42.321051] raw: 02fffc0000000200 ffffea000717c208 ffffea00075fc188 ffff8881da800040 [ 42.328949] raw: 0000000000000000 ffff8881d807a000 0000000100000010 0000000000000000 [ 42.336825] page dumped because: kasan: bad access detected [ 42.342516] [ 42.344126] Memory state around the buggy address: [ 42.349039] ffff8881d807a400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.356398] ffff8881d807a480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 42.363740] >ffff8881d807a500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.371086] ^ [ 42.378099] ffff8881d807a580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 42.385546] ffff8881d807a600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 42.392894] ================================================================== [ 42.400351] Disabling lock debugging due to kernel taint [ 42.406597] Kernel panic - not syncing: panic_on_warn set ... [ 42.412598] CPU: 0 PID: 6079 Comm: syz-executor022 Tainted: G B 4.20.0-rc6-next-20181213+ #170 [ 42.422761] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 42.432107] Call Trace: [ 42.434697] dump_stack+0x244/0x39d [ 42.438312] ? dump_stack_print_info.cold.1+0x20/0x20 [ 42.443589] ? tipc_group_bc_cong+0x250/0x3f0 [ 42.448129] panic+0x2ad/0x632 [ 42.451316] ? add_taint.cold.5+0x16/0x16 [ 42.455449] ? preempt_schedule+0x4d/0x60 [ 42.459583] ? ___preempt_schedule+0x16/0x18 [ 42.463995] ? trace_hardirqs_on+0xb4/0x310 [ 42.468405] ? tipc_group_bc_cong+0x327/0x3f0 [ 42.472888] end_report+0x47/0x4f [ 42.476333] kasan_report.cold.5+0xe/0x39 [ 42.480465] ? tipc_group_bc_cong+0x327/0x3f0 [ 42.484943] ? tipc_group_bc_cong+0x327/0x3f0 [ 42.489427] __asan_report_load2_noabort+0x14/0x20 [ 42.494346] tipc_group_bc_cong+0x327/0x3f0 [ 42.498782] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 42.503874] ? tipc_group_cong+0x5d0/0x5d0 [ 42.508127] ? remove_wait_queue+0x1a6/0x360 [ 42.512525] ? add_wait_queue+0x2b0/0x2b0 [ 42.516670] ? __local_bh_enable_ip+0x160/0x260 [ 42.521437] tipc_send_group_bcast+0x50a/0xd90 [ 42.526021] ? tipc_sk_sock_err.isra.60+0x2f0/0x2f0 [ 42.531187] ? __init_waitqueue_head+0x150/0x150 [ 42.535949] ? refill_pi_state_cache.part.7+0x310/0x310 [ 42.541316] ? mark_held_locks+0x130/0x130 [ 42.545535] ? futex_wait_setup+0x266/0x3e0 [ 42.550027] ? handle_futex_death+0x230/0x230 [ 42.554566] ? print_usage_bug+0xc0/0xc0 [ 42.558615] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 42.563791] __tipc_sendmsg+0xeec/0x1d40 [ 42.567949] ? futex_wait+0x5ec/0xa50 [ 42.571742] ? tipc_sendmcast+0xf50/0xf50 [ 42.576049] ? __sanitizer_cov_trace_switch+0x53/0x90 [ 42.581242] ? graph_lock+0x270/0x270 [ 42.585045] ? print_usage_bug+0xc0/0xc0 [ 42.589238] ? find_held_lock+0x36/0x1c0 [ 42.593289] ? mark_held_locks+0xc7/0x130 [ 42.597435] ? __local_bh_enable_ip+0x160/0x260 [ 42.602087] ? __local_bh_enable_ip+0x160/0x260 [ 42.606743] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 42.611311] ? trace_hardirqs_on+0xbd/0x310 [ 42.615621] ? lock_release+0xa00/0xa00 [ 42.619687] ? lock_sock_nested+0xe2/0x120 [ 42.623931] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.629029] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.634582] ? check_preemption_disabled+0x48/0x280 [ 42.639605] ? lock_sock_nested+0x9a/0x120 [ 42.643951] ? lock_sock_nested+0x9a/0x120 [ 42.648316] ? __local_bh_enable_ip+0x160/0x260 [ 42.653094] tipc_sendmsg+0x50/0x70 [ 42.656712] ? __tipc_sendmsg+0x1d40/0x1d40 [ 42.661176] sock_sendmsg+0xd5/0x120 [ 42.664881] ___sys_sendmsg+0x7fd/0x930 [ 42.668908] ? find_held_lock+0x36/0x1c0 [ 42.672969] ? copy_msghdr_from_user+0x580/0x580 [ 42.677720] ? __fd_install+0x2b5/0x8f0 [ 42.681819] ? check_preemption_disabled+0x48/0x280 [ 42.686840] ? __fget_light+0x2e9/0x430 [ 42.691063] ? fget_raw+0x20/0x20 [ 42.694518] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.700057] ? __fd_install+0x2f9/0x8f0 [ 42.704068] ? get_unused_fd_flags+0x1a0/0x1a0 [ 42.708655] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.714172] ? sockfd_lookup_light+0xc5/0x160 [ 42.718770] __sys_sendmsg+0x11d/0x280 [ 42.722660] ? __ia32_sys_shutdown+0x80/0x80 [ 42.727053] ? __x64_sys_futex+0x476/0x690 [ 42.731275] ? do_syscall_64+0x9a/0x820 [ 42.735232] ? do_syscall_64+0x9a/0x820 [ 42.739195] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.744303] __x64_sys_sendmsg+0x78/0xb0 [ 42.748369] do_syscall_64+0x1b9/0x820 [ 42.752245] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.757607] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.762641] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.767742] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.772746] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 42.779393] ? __switch_to_asm+0x40/0x70 [ 42.783438] ? __switch_to_asm+0x34/0x70 [ 42.787487] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.792475] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.797663] RIP: 0033:0x446389 [ 42.800925] 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 [ 42.819940] RSP: 002b:00007fdefa98fdb8 EFLAGS: 00000297 ORIG_RAX: 000000000000002e [ 42.827651] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446389 [ 42.834934] RDX: 0000000000000000 RSI: 00000000200006c0 RDI: 0000000000000005 [ 42.842234] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 42.849494] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 42.856751] R13: 00007ffc2882cfbf R14: 00007fdefa9909c0 R15: 00000000006dad2c [ 42.865018] Kernel Offset: disabled [ 42.868650] Rebooting in 86400 seconds..