[....] Starting periodic command scheduler: cron[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting file context maintaining daemon: restorecond[?25l[?1c7[ ok 8[?25h[?0c. [....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[ ok 8[?25h[?0c. [ 30.836356] kauditd_printk_skb: 9 callbacks suppressed [ 30.836367] audit: type=1800 audit(1544416998.460:33): pid=5929 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 [ 30.865444] audit: type=1800 audit(1544416998.470:34): pid=5929 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 Debian GNU/Linux 7 syzkaller ttyS0 syzkaller login: [ 32.857320] audit: type=1400 audit(1544417000.480:35): avc: denied { map } for pid=6106 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 Warning: Permanently added '10.128.0.70' (ECDSA) to the list of known hosts. executing program [ 52.641987] audit: type=1400 audit(1544417020.270:36): avc: denied { map } for pid=6121 comm="syz-executor870" path="/root/syz-executor870904155" 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 executing program executing program executing program [ 53.787144] ================================================================== [ 53.794659] BUG: KASAN: use-after-free in tipc_group_bc_cong+0x327/0x3f0 [ 53.801494] Read of size 2 at addr ffff8881d7bc1674 by task syz-executor870/6139 [ 53.809010] [ 53.810631] CPU: 0 PID: 6139 Comm: syz-executor870 Not tainted 4.20.0-rc5+ #149 [ 53.818061] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 53.827601] Call Trace: [ 53.830200] dump_stack+0x244/0x39d [ 53.833976] ? dump_stack_print_info.cold.1+0x20/0x20 [ 53.839165] ? printk+0xa7/0xcf [ 53.842451] ? kmsg_dump_rewind_nolock+0xe4/0xe4 [ 53.847201] ? _raw_spin_unlock_irqrestore+0x82/0xd0 [ 53.852305] print_address_description.cold.7+0x9/0x1ff [ 53.857662] kasan_report.cold.8+0x242/0x309 [ 53.862068] ? tipc_group_bc_cong+0x327/0x3f0 [ 53.866561] __asan_report_load2_noabort+0x14/0x20 [ 53.871488] tipc_group_bc_cong+0x327/0x3f0 [ 53.875809] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 53.880903] ? tipc_group_cong+0x5d0/0x5d0 [ 53.885214] ? remove_wait_queue+0x1a6/0x360 [ 53.889619] ? add_wait_queue+0x2b0/0x2b0 [ 53.893761] ? __local_bh_enable_ip+0x160/0x260 [ 53.898439] tipc_send_group_bcast+0x50a/0xd90 [ 53.903200] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 53.908391] ? __init_waitqueue_head+0x150/0x150 [ 53.913378] ? mark_held_locks+0x130/0x130 [ 53.917634] ? avc_has_perm+0x469/0x7e0 [ 53.921901] ? lock_downgrade+0x900/0x900 [ 53.926047] ? check_preemption_disabled+0x48/0x280 [ 53.931067] __tipc_sendmsg+0xeec/0x1d40 [ 53.935125] ? rcu_softirq_qs+0x20/0x20 [ 53.939099] ? tipc_sendmcast+0xf50/0xf50 [ 53.943246] ? zap_class+0x640/0x640 [ 53.947116] ? print_usage_bug+0xc0/0xc0 [ 53.951170] ? find_held_lock+0x36/0x1c0 [ 53.955235] ? find_held_lock+0x36/0x1c0 [ 53.959436] ? mark_held_locks+0xc7/0x130 [ 53.963589] ? __local_bh_enable_ip+0x160/0x260 [ 53.968414] ? __local_bh_enable_ip+0x160/0x260 [ 53.973075] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 53.977649] ? trace_hardirqs_on+0xbd/0x310 [ 53.981962] ? lock_release+0xa00/0xa00 [ 53.985929] ? lock_sock_nested+0xe2/0x120 [ 53.990162] ? trace_hardirqs_off_caller+0x310/0x310 [ 53.995268] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.000804] ? check_preemption_disabled+0x48/0x280 [ 54.005811] ? lock_sock_nested+0x9a/0x120 [ 54.010195] ? lock_sock_nested+0x9a/0x120 [ 54.014545] ? __local_bh_enable_ip+0x160/0x260 [ 54.019211] tipc_sendmsg+0x50/0x70 [ 54.022832] ? __tipc_sendmsg+0x1d40/0x1d40 [ 54.027159] sock_sendmsg+0xd5/0x120 [ 54.030873] ___sys_sendmsg+0x51d/0x930 [ 54.034846] ? zap_class+0x640/0x640 [ 54.038561] ? copy_msghdr_from_user+0x580/0x580 [ 54.043319] ? find_held_lock+0x36/0x1c0 [ 54.047379] ? __fget_light+0x2e9/0x430 [ 54.051546] ? fget_raw+0x20/0x20 [ 54.054997] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 54.059577] ? trace_hardirqs_on+0xbd/0x310 [ 54.063895] ? _raw_spin_unlock_bh+0x30/0x40 [ 54.068300] ? trace_hardirqs_off_caller+0x310/0x310 [ 54.073417] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.079188] ? check_preemption_disabled+0x48/0x280 [ 54.084208] ? release_sock+0x1ec/0x2c0 [ 54.088187] ? release_sock+0x1ec/0x2c0 [ 54.092168] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 54.097701] ? sockfd_lookup_light+0xc5/0x160 [ 54.102192] __sys_sendmmsg+0x246/0x6d0 [ 54.106171] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 54.110490] ? rcvbuf_limit+0x2c0/0x2c0 [ 54.114467] ? __x64_sys_futex+0x47f/0x6a0 [ 54.118695] ? do_syscall_64+0x9a/0x820 [ 54.122662] ? do_syscall_64+0x9a/0x820 [ 54.126634] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 54.131210] ? trace_hardirqs_on+0xbd/0x310 [ 54.135525] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.141010] ? trace_hardirqs_off_caller+0x310/0x310 [ 54.146127] __x64_sys_sendmmsg+0x9d/0x100 [ 54.150372] do_syscall_64+0x1b9/0x820 [ 54.154274] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.159651] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.164578] ? trace_hardirqs_on_caller+0x310/0x310 [ 54.169718] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 54.174752] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 54.181565] ? __switch_to_asm+0x40/0x70 [ 54.185620] ? __switch_to_asm+0x34/0x70 [ 54.189681] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.194522] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.199706] RIP: 0033:0x446339 [ 54.202899] 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 [ 54.221918] RSP: 002b:00007ff1bd83bdb8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 54.229634] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446339 [ 54.236902] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 54.244166] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 54.251430] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 54.258694] R13: 00007ffea6d1565f R14: 00007ff1bd83c9c0 R15: 00000000006dad2c [ 54.265963] [ 54.267582] Allocated by task 6139: [ 54.271205] save_stack+0x43/0xd0 [ 54.274782] kasan_kmalloc+0xc7/0xe0 [ 54.278506] kmem_cache_alloc_trace+0x152/0x750 [ 54.283178] tipc_group_create+0x152/0xa70 [ 54.287432] tipc_setsockopt+0x2d1/0xd70 [ 54.291494] __sys_setsockopt+0x1ba/0x3c0 [ 54.295637] __x64_sys_setsockopt+0xbe/0x150 [ 54.300045] do_syscall_64+0x1b9/0x820 [ 54.303924] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.309101] [ 54.310720] Freed by task 6140: [ 54.314123] save_stack+0x43/0xd0 [ 54.317575] __kasan_slab_free+0x102/0x150 [ 54.321911] kasan_slab_free+0xe/0x10 [ 54.325713] kfree+0xcf/0x230 [ 54.328815] tipc_group_delete+0x2e4/0x3f0 [ 54.333044] tipc_sk_leave+0x113/0x220 [ 54.336926] tipc_setsockopt+0x97d/0xd70 [ 54.340985] __sys_setsockopt+0x1ba/0x3c0 [ 54.345131] __x64_sys_setsockopt+0xbe/0x150 [ 54.349542] do_syscall_64+0x1b9/0x820 [ 54.353423] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.358602] [ 54.360348] The buggy address belongs to the object at ffff8881d7bc1600 [ 54.360348] which belongs to the cache kmalloc-192 of size 192 [ 54.373171] The buggy address is located 116 bytes inside of [ 54.373171] 192-byte region [ffff8881d7bc1600, ffff8881d7bc16c0) [ 54.385314] The buggy address belongs to the page: [ 54.390243] page:ffffea00075ef040 count:1 mapcount:0 mapping:ffff8881da800040 index:0x0 [ 54.398399] flags: 0x2fffc0000000200(slab) [ 54.402632] raw: 02fffc0000000200 ffffea00075e7e88 ffffea00075d5c08 ffff8881da800040 [ 54.410506] raw: 0000000000000000 ffff8881d7bc1000 0000000100000010 0000000000000000 [ 54.418386] page dumped because: kasan: bad access detected [ 54.424241] [ 54.425873] Memory state around the buggy address: [ 54.430796] ffff8881d7bc1500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.439238] ffff8881d7bc1580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.446740] >ffff8881d7bc1600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.454091] ^ [ 54.461263] ffff8881d7bc1680: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 54.468631] ffff8881d7bc1700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 54.475987] ================================================================== [ 54.483334] Disabling lock debugging due to kernel taint [ 54.489309] Kernel panic - not syncing: panic_on_warn set ... [ 54.495222] CPU: 0 PID: 6139 Comm: syz-executor870 Tainted: G B 4.20.0-rc5+ #149 [ 54.504047] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 54.513523] Call Trace: [ 54.516132] dump_stack+0x244/0x39d [ 54.519773] ? dump_stack_print_info.cold.1+0x20/0x20 [ 54.524979] panic+0x2ad/0x55c [ 54.528253] ? add_taint.cold.5+0x16/0x16 [ 54.532421] ? preempt_schedule+0x4d/0x60 [ 54.536723] ? ___preempt_schedule+0x16/0x18 [ 54.541143] ? trace_hardirqs_on+0xb4/0x310 [ 54.545469] kasan_end_report+0x47/0x4f [ 54.549442] kasan_report.cold.8+0x76/0x309 [ 54.553766] ? tipc_group_bc_cong+0x327/0x3f0 [ 54.558259] __asan_report_load2_noabort+0x14/0x20 [ 54.563186] tipc_group_bc_cong+0x327/0x3f0 [ 54.567503] ? _raw_spin_unlock_irqrestore+0x6d/0xd0 [ 54.572608] ? tipc_group_cong+0x5d0/0x5d0 [ 54.576839] ? remove_wait_queue+0x1a6/0x360 [ 54.581422] ? add_wait_queue+0x2b0/0x2b0 [ 54.585684] ? __local_bh_enable_ip+0x160/0x260 [ 54.590371] tipc_send_group_bcast+0x50a/0xd90 [ 54.594964] ? tipc_sk_sock_err.isra.61+0x2f0/0x2f0 [ 54.600139] ? __init_waitqueue_head+0x150/0x150 [ 54.604903] ? mark_held_locks+0x130/0x130 [ 54.609139] ? avc_has_perm+0x469/0x7e0 [ 54.613112] ? lock_downgrade+0x900/0x900 [ 54.617255] ? check_preemption_disabled+0x48/0x280 [ 54.622426] __tipc_sendmsg+0xeec/0x1d40 [ 54.626493] ? rcu_softirq_qs+0x20/0x20 [ 54.630475] ? tipc_sendmcast+0xf50/0xf50 [ 54.634750] ? zap_class+0x640/0x640 [ 54.638478] ? print_usage_bug+0xc0/0xc0 [ 54.642541] ? find_held_lock+0x36/0x1c0 [ 54.646605] ? find_held_lock+0x36/0x1c0 [ 54.650790] ? mark_held_locks+0xc7/0x130 [ 54.654945] ? __local_bh_enable_ip+0x160/0x260 [ 54.659606] ? __local_bh_enable_ip+0x160/0x260 [ 54.664270] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 54.669191] ? trace_hardirqs_on+0xbd/0x310 [ 54.673525] ? lock_release+0xa00/0xa00 [ 54.677496] ? lock_sock_nested+0xe2/0x120 [ 54.681733] ? trace_hardirqs_off_caller+0x310/0x310 [ 54.686984] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.692519] ? check_preemption_disabled+0x48/0x280 [ 54.697533] ? lock_sock_nested+0x9a/0x120 [ 54.701762] ? lock_sock_nested+0x9a/0x120 [ 54.705994] ? __local_bh_enable_ip+0x160/0x260 [ 54.710773] tipc_sendmsg+0x50/0x70 [ 54.714406] ? __tipc_sendmsg+0x1d40/0x1d40 [ 54.718727] sock_sendmsg+0xd5/0x120 [ 54.722438] ___sys_sendmsg+0x51d/0x930 [ 54.726411] ? zap_class+0x640/0x640 [ 54.730126] ? copy_msghdr_from_user+0x580/0x580 [ 54.735020] ? find_held_lock+0x36/0x1c0 [ 54.739087] ? __fget_light+0x2e9/0x430 [ 54.743059] ? fget_raw+0x20/0x20 [ 54.746510] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 54.751092] ? trace_hardirqs_on+0xbd/0x310 [ 54.755411] ? _raw_spin_unlock_bh+0x30/0x40 [ 54.759816] ? trace_hardirqs_off_caller+0x310/0x310 [ 54.765031] ? __sanitizer_cov_trace_const_cmp4+0x16/0x20 [ 54.770579] ? check_preemption_disabled+0x48/0x280 [ 54.775602] ? release_sock+0x1ec/0x2c0 [ 54.779577] ? release_sock+0x1ec/0x2c0 [ 54.783550] ? __sanitizer_cov_trace_const_cmp8+0x18/0x20 [ 54.789081] ? sockfd_lookup_light+0xc5/0x160 [ 54.793933] __sys_sendmmsg+0x246/0x6d0 [ 54.797914] ? __ia32_sys_sendmsg+0xb0/0xb0 [ 54.802242] ? rcvbuf_limit+0x2c0/0x2c0 [ 54.806230] ? __x64_sys_futex+0x47f/0x6a0 [ 54.810464] ? do_syscall_64+0x9a/0x820 [ 54.814448] ? do_syscall_64+0x9a/0x820 [ 54.818559] ? lockdep_hardirqs_on+0x3bb/0x5b0 [ 54.823145] ? trace_hardirqs_on+0xbd/0x310 [ 54.827467] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.832918] ? trace_hardirqs_off_caller+0x310/0x310 [ 54.838135] __x64_sys_sendmmsg+0x9d/0x100 [ 54.842374] do_syscall_64+0x1b9/0x820 [ 54.846261] ? entry_SYSCALL_64_after_hwframe+0x3e/0xbe [ 54.851622] ? syscall_return_slowpath+0x5e0/0x5e0 [ 54.856703] ? trace_hardirqs_on_caller+0x310/0x310 [ 54.861734] ? prepare_exit_to_usermode+0x3b0/0x3b0 [ 54.866748] ? post_copy_siginfo_from_user.isra.25.part.26+0x250/0x250 [ 54.873976] ? __switch_to_asm+0x40/0x70 [ 54.878035] ? __switch_to_asm+0x34/0x70 [ 54.882242] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 54.887091] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 54.892280] RIP: 0033:0x446339 [ 54.895493] 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 [ 54.914400] RSP: 002b:00007ff1bd83bdb8 EFLAGS: 00000297 ORIG_RAX: 0000000000000133 [ 54.922109] RAX: ffffffffffffffda RBX: 00000000006dac38 RCX: 0000000000446339 [ 54.929376] RDX: 0000000000000142 RSI: 0000000020000000 RDI: 0000000000000006 [ 54.936766] RBP: 00000000006dac30 R08: 0000000000000000 R09: 0000000000000000 [ 54.944034] R10: 0000000000000000 R11: 0000000000000297 R12: 00000000006dac3c [ 54.951459] R13: 00007ffea6d1565f R14: 00007ff1bd83c9c0 R15: 00000000006dad2c [ 54.960130] Kernel Offset: disabled [ 54.963760] Rebooting in 86400 seconds..