[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [ 33.551114] kauditd_printk_skb: 9 callbacks suppressed [ 33.551126] audit: type=1800 audit(1545070673.578:33): pid=6020 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rc.local" dev="sda1" ino=2432 res=0 [ 33.578589] audit: type=1800 audit(1545070673.578:34): pid=6020 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:kernel_t:s0 op=collect_data cause=failed(directio) comm="startpar" name="rmnologin" dev="sda1" ino=2423 res=0 [ 34.151641] audit: type=1400 audit(1545070674.178:35): avc: denied { map } for pid=6194 comm="bash" path="/bin/bash" dev="sda1" ino=1457 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 Debian GNU/Linux 7 syzkaller ttyS0 Warning: Permanently added '10.128.0.47' (ECDSA) to the list of known hosts. executing program syzkaller login: [ 40.842894] audit: type=1400 audit(1545070680.868:36): avc: denied { map } for pid=6208 comm="syz-executor882" path="/root/syz-executor882176646" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 [ 41.147499] ================================================================== [ 41.155002] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 41.161823] Read of size 2 at addr ffff8881d8f75674 by task syz-executor882/6210 [ 41.169346] [ 41.170964] CPU: 1 PID: 6210 Comm: syz-executor882 Not tainted 4.20.0-rc7+ #155 [ 41.178398] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.187744] Call Trace: [ 41.190320] dump_stack+0x244/0x39d [ 41.193929] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.199102] ? printk+0xa7/0xcf [ 41.202424] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 41.207176] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 41.212269] print_address_description.cold.7+0x9/0x1ff [ 41.217620] kasan_report.cold.8+0x242/0x309 [ 41.222009] ? tipc_group_bc_cong+0x327/0x3f0 [ 41.226487] __asan_report_load2_noabort+0x14/0x20 [ 41.231398] tipc_group_bc_cong+0x327/0x3f0 [ 41.235731] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 41.240815] ? tipc_group_cong+0x5d0/0x5d0 [ 41.245030] ? remove_wait_queue+0x1a6/0x360 [ 41.249425] ? add_wait_queue+0x2b0/0x2b0 [ 41.253568] ? __local_bh_enable_ip+0x160/0x260 [ 41.258234] tipc_send_group_bcast+0x50a/0xd90 [ 41.262804] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 41.267807] ? __init_waitqueue_head+0x150/0x150 [ 41.272556] ? mark_held_locks+0x130/0x130 [ 41.276788] ? avc_has_perm+0x469/0x7e0 [ 41.280750] ? lock_downgrade+0x900/0x900 [ 41.284891] ? check_preemption_disabled+0x48/0x280 [ 41.289895] __tipc_sendmsg+0xeec/0x1d40 [ 41.293940] ? rcu_softirq_qs+0x20/0x20 [ 41.297900] ? tipc_sendmcast+0xf50/0xf50 [ 41.302037] ? zap_class+0x640/0x640 [ 41.305736] ? print_usage_bug+0xc0/0xc0 [ 41.309784] ? find_held_lock+0x36/0x1c0 [ 41.313833] ? find_held_lock+0x36/0x1c0 [ 41.317883] ? mark_held_locks+0xc7/0x130 [ 41.322014] ? __local_bh_enable_ip+0x160/0x260 [ 41.326662] ? __local_bh_enable_ip+0x160/0x260 [ 41.331315] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 41.335885] ? trace_hardirqs_on+0xbd/0x310 [ 41.340192] ? lock_release+0xa00/0xa00 [ 41.344147] ? lock_sock_nested+0xe2/0x120 [ 41.348365] ? trace_hardirqs_off_caller+0x310/0x310 [ 41.353456] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.358980] ? check_preemption_disabled+0x48/0x280 [ 41.363979] ? lock_sock_nested+0x9a/0x120 [ 41.368195] ? lock_sock_nested+0x9a/0x120 [ 41.372416] ? __local_bh_enable_ip+0x160/0x260 [ 41.377072] tipc_sendmsg+0x50/0x70 [ 41.380683] ? __tipc_sendmsg+0x1d40/0x1d40 [ 41.384991] sock_sendmsg+0xd5/0x120 [ 41.388689] ___sys_sendmsg+0x51d/0x930 [ 41.392646] ? zap_class+0x640/0x640 [ 41.396344] ? copy_msghdr_from_user+0x580/0x580 [ 41.401088] ? find_held_lock+0x36/0x1c0 [ 41.405134] ? __fget_light+0x2e9/0x430 [ 41.409093] ? fget_raw+0x20/0x20 [ 41.412528] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 41.417101] ? trace_hardirqs_on+0xbd/0x310 [ 41.421405] ? _raw_spin_unlock_bh+0x30/0x40 [ 41.425797] ? trace_hardirqs_off_caller+0x310/0x310 [ 41.430884] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 41.436409] ? check_preemption_disabled+0x48/0x280 [ 41.441409] ? release_sock+0x1ec/0x2c0 [ 41.445364] ? release_sock+0x1ec/0x2c0 [ 41.449342] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 41.454867] ? sockfd_lookup_light+0xc5/0x160 [ 41.459349] __sys_sendmmsg+0x246/0x6d0 [ 41.463326] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 41.467632] ? rcvbuf_limit+0x2c0/0x2c0 [ 41.471601] ? __x64_sys_futex+0x47f/0x6a0 [ 41.475834] ? do_syscall_64+0x9a/0x820 [ 41.479796] ? do_syscall_64+0x9a/0x820 [ 41.483778] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 41.488346] ? trace_hardirqs_on+0xbd/0x310 [ 41.492652] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.498001] ? trace_hardirqs_off_caller+0x310/0x310 [ 41.503094] __x64_sys_sendmmsg+0x9d/0x100 [ 41.507314] do_syscall_64+0x1b9/0x820 [ 41.511185] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 41.516534] ? syscall_return_slowpath+0x5e0/0x5e0 [ 41.521468] ? trace_hardirqs_on_caller+0x310/0x310 [ 41.526469] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 41.531504] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 41.538167] ? __switch_to_asm+0x40/0x70 [ 41.542212] ? __switch_to_asm+0x34/0x70 [ 41.546262] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 41.551195] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.556368] RIP: 0033:0x4457d9 [ 41.559563] Code: e8 9c bb 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 cb 11 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 41.578463] RSP: 002b:00007f8b86eb1db8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 41.586153] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 00000000004457d9 [ 41.593424] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 41.600693] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 41.607954] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 41.615205] R13: 00007ffc3969483f R14: 00007f8b86eb29c0 R15: 00000000006dad2c [ 41.622465] [ 41.624074] Allocated by task 6210: [ 41.627687] save_stack+0x43/0xd0 [ 41.631123] kasan_kmalloc+0xc7/0xe0 [ 41.634819] kmem_cache_alloc_trace+0x152/0x750 [ 41.639486] tipc_group_create+0x152/0xa70 [ 41.643703] tipc_setsockopt+0x2d1/0xd70 [ 41.647744] __sys_setsockopt+0x1ba/0x3c0 [ 41.651881] __x64_sys_setsockopt+0xbe/0x150 [ 41.656274] do_syscall_64+0x1b9/0x820 [ 41.660159] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.665326] [ 41.666934] Freed by task 6211: [ 41.670196] save_stack+0x43/0xd0 [ 41.673630] __kasan_slab_free+0x102/0x150 [ 41.677844] kasan_slab_free+0xe/0x10 [ 41.681625] kfree+0xcf/0x230 [ 41.684717] tipc_group_delete+0x2e4/0x3f0 [ 41.688935] tipc_sk_leave+0x113/0x220 [ 41.692806] tipc_setsockopt+0x97d/0xd70 [ 41.696851] __sys_setsockopt+0x1ba/0x3c0 [ 41.700983] __x64_sys_setsockopt+0xbe/0x150 [ 41.705389] do_syscall_64+0x1b9/0x820 [ 41.709272] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 41.714441] [ 41.716055] The buggy address belongs to the object at ffff8881d8f75600 [ 41.716055] which belongs to the cache kmalloc-192 of size 192 [ 41.728789] The buggy address is located 116 bytes inside of [ 41.728789] 192-byte region [ffff8881d8f75600, ffff8881d8f756c0) [ 41.740659] The buggy address belongs to the page: [ 41.745572] page:ffffea000763dd40 count:1 mapcount:0 mapping:ffff8881da800040 index:0xffff8881d8f75f00 [ 41.755009] flags: 0x2fffc0000000200(slab) [ 41.759230] raw: 02fffc0000000200 ffffea0007618188 ffffea00076261c8 ffff8881da800040 [ 41.767093] raw: ffff8881d8f75f00 ffff8881d8f75000 0000000100000005 0000000000000000 [ 41.774951] page dumped because: kasan: bad access detected [ 41.780639] [ 41.782245] Memory state around the buggy address: [ 41.787174] ffff8881d8f75500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 41.794518] ffff8881d8f75580: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc [ 41.801884] >ffff8881d8f75600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.809224] ^ [ 41.816246] ffff8881d8f75680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.823603] ffff8881d8f75700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.830957] ================================================================== [ 41.838310] Disabling lock debugging due to kernel taint [ 41.844383] Kernel panic - not syncing: panic_on_warn set ... [ 41.850290] CPU: 1 PID: 6210 Comm: syz-executor882 Tainted: G B 4.20.0-rc7+ #155 [ 41.859125] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 41.868473] Call Trace: [ 41.871049] dump_stack+0x244/0x39d [ 41.874659] ? dump_stack_print_info.cold.1+0x20/0x20 [ 41.879835] panic+0x2ad/0x55c [ 41.883008] ? add_taint.cold.5+0x16/0x16 [ 41.887170] ? preempt_schedule+0x4d/0x60 [ 41.891318] ? ___preempt_schedule+0x16/0x18 [ 41.895712] ? trace_hardirqs_on+0xb4/0x310 [ 41.900020] kasan_end_report+0x47/0x4f [ 41.903976] kasan_report.cold.8+0x76/0x309 [ 41.908307] ? tipc_group_bc_cong+0x327/0x3f0 [ 41.912800] __asan_report_load2_noabort+0x14/0x20 [ 41.917731] tipc_group_bc_cong+0x327/0x3f0 [ 41.922040] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 41.927156] ? tipc_group_cong+0x5d0/0x5d0 [ 41.931391] ? remove_wait_queue+0x1a6/0x360 [ 41.935790] ? add_wait_queue+0x2b0/0x2b0 [ 41.939922] ? __local_bh_enable_ip+0x160/0x260 [ 41.944577] tipc_send_group_bcast+0x50a/0xd90 [ 41.949169] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 41.954186] ? __init_waitqueue_head+0x150/0x150 [ 41.958932] ? mark_held_locks+0x130/0x130 [ 41.963169] ? avc_has_perm+0x469/0x7e0 [ 41.967124] ? lock_downgrade+0x900/0x900 [ 41.971268] ? check_preemption_disabled+0x48/0x280 [ 41.976268] __tipc_sendmsg+0xeec/0x1d40 [ 41.980325] ? rcu_softirq_qs+0x20/0x20 [ 41.984302] ? tipc_sendmcast+0xf50/0xf50 [ 41.988447] ? zap_class+0x640/0x640 [ 41.992144] ? print_usage_bug+0xc0/0xc0 [ 41.996189] ? find_held_lock+0x36/0x1c0 [ 42.000238] ? find_held_lock+0x36/0x1c0 [ 42.004308] ? mark_held_locks+0xc7/0x130 [ 42.008469] ? __local_bh_enable_ip+0x160/0x260 [ 42.013122] ? __local_bh_enable_ip+0x160/0x260 [ 42.017777] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 42.022357] ? trace_hardirqs_on+0xbd/0x310 [ 42.026660] ? lock_release+0xa00/0xa00 [ 42.030615] ? lock_sock_nested+0xe2/0x120 [ 42.034845] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.039948] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.045496] ? check_preemption_disabled+0x48/0x280 [ 42.050492] ? lock_sock_nested+0x9a/0x120 [ 42.054708] ? lock_sock_nested+0x9a/0x120 [ 42.058942] ? __local_bh_enable_ip+0x160/0x260 [ 42.063592] tipc_sendmsg+0x50/0x70 [ 42.067198] ? __tipc_sendmsg+0x1d40/0x1d40 [ 42.071502] sock_sendmsg+0xd5/0x120 [ 42.075199] ___sys_sendmsg+0x51d/0x930 [ 42.079154] ? zap_class+0x640/0x640 [ 42.082852] ? copy_msghdr_from_user+0x580/0x580 [ 42.087588] ? find_held_lock+0x36/0x1c0 [ 42.091643] ? __fget_light+0x2e9/0x430 [ 42.095593] ? fget_raw+0x20/0x20 [ 42.099053] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 42.103614] ? trace_hardirqs_on+0xbd/0x310 [ 42.107914] ? _raw_spin_unlock_bh+0x30/0x40 [ 42.112325] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.117425] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 42.122963] ? check_preemption_disabled+0x48/0x280 [ 42.127964] ? release_sock+0x1ec/0x2c0 [ 42.131922] ? release_sock+0x1ec/0x2c0 [ 42.135890] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 42.141411] ? sockfd_lookup_light+0xc5/0x160 [ 42.145891] __sys_sendmmsg+0x246/0x6d0 [ 42.149853] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 42.154158] ? rcvbuf_limit+0x2c0/0x2c0 [ 42.158122] ? __x64_sys_futex+0x47f/0x6a0 [ 42.162346] ? do_syscall_64+0x9a/0x820 [ 42.166303] ? do_syscall_64+0x9a/0x820 [ 42.170262] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 42.174833] ? trace_hardirqs_on+0xbd/0x310 [ 42.179152] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.184499] ? trace_hardirqs_off_caller+0x310/0x310 [ 42.189587] __x64_sys_sendmmsg+0x9d/0x100 [ 42.193803] do_syscall_64+0x1b9/0x820 [ 42.197693] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 42.203044] ? syscall_return_slowpath+0x5e0/0x5e0 [ 42.207976] ? trace_hardirqs_on_caller+0x310/0x310 [ 42.212989] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 42.218004] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 42.224653] ? __switch_to_asm+0x40/0x70 [ 42.228695] ? __switch_to_asm+0x34/0x70 [ 42.232738] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 42.237579] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 42.242772] RIP: 0033:0x4457d9 [ 42.245980] Code: e8 9c bb 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 cb 11 fc ff c3 66 2e 0f 1f 84 00 00 00 00 [ 42.264865] RSP: 002b:00007f8b86eb1db8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 42.272570] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 00000000004457d9 [ 42.279824] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 42.287076] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 42.294340] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 42.301593] R13: 00007ffc3969483f R14: 00007f8b86eb29c0 R15: 00000000006dad2c [ 42.309849] Kernel Offset: disabled [ 42.313474] Rebooting in 86400 seconds..