[ 27.250762] audit: type=1800 audit(1545071130.667:21): pid=5865 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="bootlogs" dev="sda1" ino=2419 res=0 [....] 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. [ 28.676196] kauditd_printk_skb: 8 callbacks suppressed [ 28.676224] audit: type=1800 audit(1545071132.097:30): pid=5865 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 33.623202] sshd (6003) used greatest stack depth: 15744 bytes left Warning: Permanently added '10.128.0.149' (ECDSA) to the list of known hosts. executing program executing program executing program [ 56.022837] ================================================================== [ 56.030416] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 56.037243] Read of size 2 at addr ffff8881d774d474 by task syz-executor985/6031 [ 56.044761] [ 56.046379] CPU: 0 PID: 6031 Comm: syz-executor985 Not tainted 4.20.0-rc7+ #375 [ 56.053813] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.063165] Call Trace: [ 56.065743] dump_stack+0x244/0x39d [ 56.069394] ? dump_stack_print_info.cold.1+0x20/0x20 [ 56.074598] ? printk+0xa7/0xcf [ 56.077865] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 56.082609] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 56.087705] print_address_description.cold.7+0x9/0x1ff [ 56.093161] kasan_report.cold.8+0x242/0x309 [ 56.097561] ? tipc_group_bc_cong+0x327/0x3f0 [ 56.102047] __asan_report_load2_noabort+0x14/0x20 [ 56.106978] tipc_group_bc_cong+0x327/0x3f0 [ 56.111286] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 56.116482] ? tipc_group_cong+0x5d0/0x5d0 [ 56.120705] ? remove_wait_queue+0x1a6/0x360 [ 56.125220] ? add_wait_queue+0x2b0/0x2b0 [ 56.129376] ? __local_bh_enable_ip+0x160/0x260 [ 56.134036] tipc_send_group_bcast+0x50a/0xd90 [ 56.138745] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 56.143753] ? __init_waitqueue_head+0x150/0x150 [ 56.148627] ? mark_held_locks+0x130/0x130 [ 56.152970] ? __might_sleep+0x95/0x190 [ 56.156943] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.162471] ? futex_wait_queue_me+0x55d/0x840 [ 56.167057] ? refill_pi_state_cache.part.8+0x310/0x310 [ 56.172568] ? print_usage_bug+0xc0/0xc0 [ 56.177652] __tipc_sendmsg+0xeec/0x1d40 [ 56.181777] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.187324] ? get_futex_value_locked+0xcb/0xf0 [ 56.191989] ? tipc_sendmcast+0xf50/0xf50 [ 56.196124] ? futex_wake+0x760/0x760 [ 56.199931] ? __lock_acquire+0x62f/0x4c20 [ 56.204161] ? zap_class+0x640/0x640 [ 56.207874] ? print_usage_bug+0xc0/0xc0 [ 56.211957] ? find_held_lock+0x36/0x1c0 [ 56.216025] ? mark_held_locks+0xc7/0x130 [ 56.220166] ? __local_bh_enable_ip+0x160/0x260 [ 56.224863] ? __local_bh_enable_ip+0x160/0x260 [ 56.229551] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.234246] ? trace_hardirqs_on+0xbd/0x310 [ 56.238689] ? lock_release+0xa00/0xa00 [ 56.242654] ? lock_sock_nested+0xe2/0x120 [ 56.247000] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.252251] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.257973] ? check_preemption_disabled+0x48/0x280 [ 56.263135] ? lock_sock_nested+0x9a/0x120 [ 56.267479] ? lock_sock_nested+0x9a/0x120 [ 56.271705] ? __local_bh_enable_ip+0x160/0x260 [ 56.276387] tipc_sendmsg+0x50/0x70 [ 56.280001] ? __tipc_sendmsg+0x1d40/0x1d40 [ 56.284310] sock_sendmsg+0xd5/0x120 [ 56.288006] ___sys_sendmsg+0x51d/0x930 [ 56.291965] ? zap_class+0x640/0x640 [ 56.295665] ? copy_msghdr_from_user+0x580/0x580 [ 56.300410] ? find_held_lock+0x36/0x1c0 [ 56.304457] ? __fget_light+0x2e9/0x430 [ 56.308414] ? fget_raw+0x20/0x20 [ 56.311848] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.316414] ? trace_hardirqs_on+0xbd/0x310 [ 56.320718] ? _raw_spin_unlock_bh+0x30/0x40 [ 56.325109] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.330196] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.335725] ? check_preemption_disabled+0x48/0x280 [ 56.340732] ? release_sock+0x1ec/0x2c0 [ 56.344695] ? release_sock+0x1ec/0x2c0 [ 56.348670] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.354198] ? sockfd_lookup_light+0xc5/0x160 [ 56.358684] __sys_sendmmsg+0x246/0x6d0 [ 56.362829] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 56.367171] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 56.372707] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.377456] ? retint_kernel+0x2d/0x2d [ 56.381333] ? trace_hardirqs_on_caller+0xc0/0x310 [ 56.386248] ? aa_sock_opt_perm.isra.13+0xa1/0x130 [ 56.391195] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.395947] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 56.400687] ? retint_kernel+0x2d/0x2d [ 56.404567] __x64_sys_sendmmsg+0x9d/0x100 [ 56.408785] do_syscall_64+0x1b9/0x820 [ 56.412659] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 56.418007] ? syscall_return_slowpath+0x5e0/0x5e0 [ 56.422926] ? trace_hardirqs_on_caller+0x310/0x310 [ 56.427924] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 56.432927] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 56.439586] ? __switch_to_asm+0x40/0x70 [ 56.443646] ? __switch_to_asm+0x34/0x70 [ 56.447832] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 56.452661] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.457834] RIP: 0033:0x446339 [ 56.461042] 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.479959] RSP: 002b:00007f36a64a3db8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 56.487649] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446339 [ 56.494900] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 56.502148] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 56.509401] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 56.516778] R13: 00007ffc0159394f R14: 00007f36a64a49c0 R15: 00000000006dad2c [ 56.524042] [ 56.525652] Allocated by task 6031: [ 56.529271] save_stack+0x43/0xd0 [ 56.532706] kasan_kmalloc+0xc7/0xe0 [ 56.536400] kmem_cache_alloc_trace+0x152/0x750 [ 56.541049] tipc_group_create+0x152/0xa70 [ 56.545260] tipc_setsockopt+0x2d1/0xd70 [ 56.549306] __sys_setsockopt+0x1ba/0x3c0 [ 56.553435] __x64_sys_setsockopt+0xbe/0x150 [ 56.557826] do_syscall_64+0x1b9/0x820 [ 56.561696] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.566858] [ 56.568465] Freed by task 6032: [ 56.571728] save_stack+0x43/0xd0 [ 56.575163] __kasan_slab_free+0x102/0x150 [ 56.579436] kasan_slab_free+0xe/0x10 [ 56.583234] kfree+0xcf/0x230 [ 56.586325] tipc_group_delete+0x2e4/0x3f0 [ 56.590542] tipc_sk_leave+0x113/0x220 [ 56.594414] tipc_setsockopt+0x97d/0xd70 [ 56.598464] __sys_setsockopt+0x1ba/0x3c0 [ 56.602595] __x64_sys_setsockopt+0xbe/0x150 [ 56.606984] do_syscall_64+0x1b9/0x820 [ 56.610854] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 56.616025] [ 56.617634] The buggy address belongs to the object at ffff8881d774d400 [ 56.617634] which belongs to the cache kmalloc-192 of size 192 [ 56.630273] The buggy address is located 116 bytes inside of [ 56.630273] 192-byte region [ffff8881d774d400, ffff8881d774d4c0) [ 56.642127] The buggy address belongs to the page: [ 56.647046] page:ffffea00075dd340 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 56.655200] flags: 0x2fffc0000000200(slab) [ 56.659425] raw: 02fffc0000000200 ffffea00075dd2c8 ffffea00075c2e48 ffff8881da800040 [ 56.667288] raw: 0000000000000000 ffff8881d774d000 0000000100000010 0000000000000000 [ 56.675147] page dumped because: kasan: bad access detected [ 56.680831] [ 56.682512] Memory state around the buggy address: [ 56.687435] ffff8881d774d300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 56.694776] ffff8881d774d380: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 56.702123] >ffff8881d774d400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.709462] ^ [ 56.716464] ffff8881d774d480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 56.723811] ffff8881d774d500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 56.731161] ================================================================== [ 56.738621] Disabling lock debugging due to kernel taint [ 56.744229] Kernel panic - not syncing: panic_on_warn set ... [ 56.750110] CPU: 0 PID: 6031 Comm: syz-executor985 Tainted: G B 4.20.0-rc7+ #375 [ 56.758920] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 56.768295] Call Trace: [ 56.770883] dump_stack+0x244/0x39d [ 56.774496] ? dump_stack_print_info.cold.1+0x20/0x20 [ 56.779678] panic+0x2ad/0x55c [ 56.782901] ? add_taint.cold.5+0x16/0x16 [ 56.787041] ? preempt_schedule+0x4d/0x60 [ 56.791170] ? ___preempt_schedule+0x16/0x18 [ 56.795560] ? trace_hardirqs_on+0xb4/0x310 [ 56.799867] kasan_end_report+0x47/0x4f [ 56.803821] kasan_report.cold.8+0x76/0x309 [ 56.808123] ? tipc_group_bc_cong+0x327/0x3f0 [ 56.812598] __asan_report_load2_noabort+0x14/0x20 [ 56.817519] tipc_group_bc_cong+0x327/0x3f0 [ 56.821826] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 56.826913] ? tipc_group_cong+0x5d0/0x5d0 [ 56.831134] ? remove_wait_queue+0x1a6/0x360 [ 56.835530] ? add_wait_queue+0x2b0/0x2b0 [ 56.839662] ? __local_bh_enable_ip+0x160/0x260 [ 56.844315] tipc_send_group_bcast+0x50a/0xd90 [ 56.848884] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 56.853887] ? __init_waitqueue_head+0x150/0x150 [ 56.858632] ? mark_held_locks+0x130/0x130 [ 56.862845] ? __might_sleep+0x95/0x190 [ 56.866803] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.872336] ? futex_wait_queue_me+0x55d/0x840 [ 56.876899] ? refill_pi_state_cache.part.8+0x310/0x310 [ 56.882245] ? print_usage_bug+0xc0/0xc0 [ 56.886290] __tipc_sendmsg+0xeec/0x1d40 [ 56.890389] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.895917] ? get_futex_value_locked+0xcb/0xf0 [ 56.900569] ? tipc_sendmcast+0xf50/0xf50 [ 56.904701] ? futex_wake+0x760/0x760 [ 56.908485] ? __lock_acquire+0x62f/0x4c20 [ 56.912702] ? zap_class+0x640/0x640 [ 56.916404] ? print_usage_bug+0xc0/0xc0 [ 56.920456] ? find_held_lock+0x36/0x1c0 [ 56.924501] ? mark_held_locks+0xc7/0x130 [ 56.928639] ? __local_bh_enable_ip+0x160/0x260 [ 56.933292] ? __local_bh_enable_ip+0x160/0x260 [ 56.938024] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 56.942596] ? trace_hardirqs_on+0xbd/0x310 [ 56.946900] ? lock_release+0xa00/0xa00 [ 56.950863] ? lock_sock_nested+0xe2/0x120 [ 56.955086] ? trace_hardirqs_off_caller+0x310/0x310 [ 56.960174] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 56.965760] ? check_preemption_disabled+0x48/0x280 [ 56.970765] ? lock_sock_nested+0x9a/0x120 [ 56.974980] ? lock_sock_nested+0x9a/0x120 [ 56.979382] ? __local_bh_enable_ip+0x160/0x260 [ 56.984042] tipc_sendmsg+0x50/0x70 [ 56.987652] ? __tipc_sendmsg+0x1d40/0x1d40 [ 56.992077] sock_sendmsg+0xd5/0x120 [ 56.995777] ___sys_sendmsg+0x51d/0x930 [ 56.999744] ? zap_class+0x640/0x640 [ 57.003439] ? copy_msghdr_from_user+0x580/0x580 [ 57.008178] ? find_held_lock+0x36/0x1c0 [ 57.012226] ? __fget_light+0x2e9/0x430 [ 57.016181] ? fget_raw+0x20/0x20 [ 57.019623] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 57.024194] ? trace_hardirqs_on+0xbd/0x310 [ 57.028504] ? _raw_spin_unlock_bh+0x30/0x40 [ 57.032894] ? trace_hardirqs_off_caller+0x310/0x310 [ 57.037990] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 57.043525] ? check_preemption_disabled+0x48/0x280 [ 57.048526] ? release_sock+0x1ec/0x2c0 [ 57.052488] ? release_sock+0x1ec/0x2c0 [ 57.056451] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 57.061967] ? sockfd_lookup_light+0xc5/0x160 [ 57.066451] __sys_sendmmsg+0x246/0x6d0 [ 57.070413] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 57.074715] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 57.080238] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.084983] ? retint_kernel+0x2d/0x2d [ 57.088852] ? trace_hardirqs_on_caller+0xc0/0x310 [ 57.093763] ? aa_sock_opt_perm.isra.13+0xa1/0x130 [ 57.098671] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.103410] ? trace_hardirqs_on_thunk+0x1a/0x1c [ 57.108188] ? retint_kernel+0x2d/0x2d [ 57.112183] __x64_sys_sendmmsg+0x9d/0x100 [ 57.116415] do_syscall_64+0x1b9/0x820 [ 57.120284] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 57.125628] ? syscall_return_slowpath+0x5e0/0x5e0 [ 57.130592] ? trace_hardirqs_on_caller+0x310/0x310 [ 57.135609] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 57.140613] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 57.147257] ? __switch_to_asm+0x40/0x70 [ 57.151643] ? __switch_to_asm+0x34/0x70 [ 57.155685] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 57.160509] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 57.165679] RIP: 0033:0x446339 [ 57.168855] 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.187741] RSP: 002b:00007f36a64a3db8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 57.195432] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446339 [ 57.202683] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 57.209934] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 57.217183] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 57.224606] R13: 00007ffc0159394f R14: 00007f36a64a49c0 R15: 00000000006dad2c [ 57.232869] Kernel Offset: disabled [ 57.236493] Rebooting in 86400 seconds..