Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.94' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 30.624763] ================================================================== [ 30.632237] BUG: KASAN: use-after-free in __lock_acquire+0x2c57/0x3f20 [ 30.638881] Read of size 8 at addr ffff8880b60f32a0 by task kworker/u4:0/5 [ 30.645954] [ 30.647572] CPU: 0 PID: 5 Comm: kworker/u4:0 Not tainted 4.14.260-syzkaller #0 [ 30.654904] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 30.664339] Workqueue: tipc_rcv tipc_recv_work [ 30.668901] Call Trace: [ 30.671467] dump_stack+0x1b2/0x281 [ 30.675069] print_address_description.cold+0x54/0x1d3 [ 30.680323] kasan_report_error.cold+0x8a/0x191 [ 30.684971] ? __lock_acquire+0x2c57/0x3f20 [ 30.689355] __asan_report_load8_noabort+0x68/0x70 [ 30.694261] ? tipc_subscrb_rcv_cb+0x350/0xa40 [ 30.698824] ? __lock_acquire+0x2c57/0x3f20 [ 30.703129] __lock_acquire+0x2c57/0x3f20 [ 30.707258] ? io_schedule_timeout+0x140/0x140 [ 30.711820] ? __wake_up_common_lock+0xcd/0x140 [ 30.716466] ? trace_hardirqs_on+0x10/0x10 [ 30.720683] ? trace_hardirqs_on+0x10/0x10 [ 30.724896] ? preempt_schedule_common+0x45/0xc0 [ 30.729631] ? ___preempt_schedule+0x16/0x18 [ 30.734019] ? tipc_recvmsg+0x43e/0x9e0 [ 30.738318] ? __local_bh_enable_ip+0x132/0x170 [ 30.742968] lock_acquire+0x170/0x3f0 [ 30.746749] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.751309] _raw_spin_lock_bh+0x2f/0x40 [ 30.755347] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.759904] tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.764300] tipc_receive_from_sock+0x25c/0x450 [ 30.768948] ? trace_hardirqs_on+0x10/0x10 [ 30.773161] ? lock_acquire+0x170/0x3f0 [ 30.777115] ? tipc_close_conn+0x200/0x200 [ 30.781335] tipc_recv_work+0x75/0xd0 [ 30.785116] process_one_work+0x793/0x14a0 [ 30.789342] ? work_busy+0x320/0x320 [ 30.793033] ? worker_thread+0x158/0xff0 [ 30.797072] ? _raw_spin_unlock_irq+0x24/0x80 [ 30.801544] worker_thread+0x5cc/0xff0 [ 30.805411] ? rescuer_thread+0xc80/0xc80 [ 30.809537] kthread+0x30d/0x420 [ 30.812882] ? kthread_create_on_node+0xd0/0xd0 [ 30.817530] ret_from_fork+0x24/0x30 [ 30.821220] [ 30.822828] Allocated by task 5: [ 30.826178] kasan_kmalloc+0xeb/0x160 [ 30.829962] kmem_cache_alloc_trace+0x131/0x3d0 [ 30.835069] tipc_subscrb_connect_cb+0x40/0x150 [ 30.839723] tipc_accept_from_sock+0x25b/0x400 [ 30.844629] tipc_recv_work+0x75/0xd0 [ 30.848411] process_one_work+0x793/0x14a0 [ 30.852624] worker_thread+0x5cc/0xff0 [ 30.856493] kthread+0x30d/0x420 [ 30.859839] ret_from_fork+0x24/0x30 [ 30.863698] [ 30.865303] Freed by task 2695: [ 30.868562] kasan_slab_free+0xc3/0x1a0 [ 30.872515] kfree+0xc9/0x250 [ 30.875605] tipc_subscrb_put+0x22/0x30 [ 30.879554] tipc_close_conn+0x16a/0x200 [ 30.883592] tipc_send_work+0x41e/0x520 [ 30.887545] process_one_work+0x793/0x14a0 [ 30.891759] worker_thread+0x5cc/0xff0 [ 30.895627] kthread+0x30d/0x420 [ 30.899234] ret_from_fork+0x24/0x30 [ 30.903192] [ 30.904827] The buggy address belongs to the object at ffff8880b60f3280 [ 30.904827] which belongs to the cache kmalloc-96 of size 96 [ 30.917294] The buggy address is located 32 bytes inside of [ 30.917294] 96-byte region [ffff8880b60f3280, ffff8880b60f32e0) [ 30.928972] The buggy address belongs to the page: [ 30.933881] page:ffffea0002d83cc0 count:1 mapcount:0 mapping:ffff8880b60f3000 index:0xffff8880b60f3f80 [ 30.943300] flags: 0xfff00000000100(slab) [ 30.947425] raw: 00fff00000000100 ffff8880b60f3000 ffff8880b60f3f80 000000010000000b [ 30.955280] raw: ffffea0002ce77e0 ffffea00028dfd20 ffff88813fe744c0 0000000000000000 [ 30.963187] page dumped because: kasan: bad access detected [ 30.968870] [ 30.970469] Memory state around the buggy address: [ 30.975372] ffff8880b60f3180: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.982710] ffff8880b60f3200: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.990047] >ffff8880b60f3280: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 30.997380] ^ [ 31.001763] ffff8880b60f3300: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 31.009099] ffff8880b60f3380: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.016436] ================================================================== [ 31.023766] Disabling lock debugging due to kernel taint [ 31.029187] Kernel panic - not syncing: panic_on_warn set ... [ 31.029187] [ 31.036526] CPU: 0 PID: 5 Comm: kworker/u4:0 Tainted: G B 4.14.260-syzkaller #0 [ 31.045116] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 31.054456] Workqueue: tipc_rcv tipc_recv_work [ 31.059011] Call Trace: [ 31.061580] dump_stack+0x1b2/0x281 [ 31.065198] panic+0x1f9/0x42d [ 31.068366] ? add_taint.cold+0x16/0x16 [ 31.072327] ? lock_downgrade+0x740/0x740 [ 31.076450] kasan_end_report+0x43/0x49 [ 31.080400] kasan_report_error.cold+0xa7/0x191 [ 31.085045] ? __lock_acquire+0x2c57/0x3f20 [ 31.089347] __asan_report_load8_noabort+0x68/0x70 [ 31.094267] ? tipc_subscrb_rcv_cb+0x350/0xa40 [ 31.098832] ? __lock_acquire+0x2c57/0x3f20 [ 31.103135] __lock_acquire+0x2c57/0x3f20 [ 31.107274] ? io_schedule_timeout+0x140/0x140 [ 31.111844] ? __wake_up_common_lock+0xcd/0x140 [ 31.116571] ? trace_hardirqs_on+0x10/0x10 [ 31.120793] ? trace_hardirqs_on+0x10/0x10 [ 31.125003] ? preempt_schedule_common+0x45/0xc0 [ 31.129736] ? ___preempt_schedule+0x16/0x18 [ 31.134125] ? tipc_recvmsg+0x43e/0x9e0 [ 31.138083] ? __local_bh_enable_ip+0x132/0x170 [ 31.142743] lock_acquire+0x170/0x3f0 [ 31.146521] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 31.151079] _raw_spin_lock_bh+0x2f/0x40 [ 31.155115] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 31.159671] tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 31.164057] tipc_receive_from_sock+0x25c/0x450 [ 31.168702] ? trace_hardirqs_on+0x10/0x10 [ 31.172935] ? lock_acquire+0x170/0x3f0 [ 31.176884] ? tipc_close_conn+0x200/0x200 [ 31.181099] tipc_recv_work+0x75/0xd0 [ 31.184876] process_one_work+0x793/0x14a0 [ 31.189089] ? work_busy+0x320/0x320 [ 31.192780] ? worker_thread+0x158/0xff0 [ 31.196819] ? _raw_spin_unlock_irq+0x24/0x80 [ 31.201290] worker_thread+0x5cc/0xff0 [ 31.205157] ? rescuer_thread+0xc80/0xc80 [ 31.209281] kthread+0x30d/0x420 [ 31.212709] ? kthread_create_on_node+0xd0/0xd0 [ 31.217357] ret_from_fork+0x24/0x30 [ 31.221098] Kernel Offset: disabled [ 31.224714] Rebooting in 86400 seconds..