[ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.185' (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 syzkaller login: [ 29.498097] ================================================================== [ 29.505481] BUG: KASAN: use-after-free in __lock_acquire+0x2c57/0x3f20 [ 29.512213] Read of size 8 at addr ffff8880b52c55a0 by task kworker/u4:2/34 [ 29.519286] [ 29.520893] CPU: 0 PID: 34 Comm: kworker/u4:2 Not tainted 4.14.302-syzkaller #0 [ 29.528308] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 29.537645] Workqueue: tipc_rcv tipc_recv_work [ 29.542200] Call Trace: [ 29.544761] dump_stack+0x1b2/0x281 [ 29.548365] print_address_description.cold+0x54/0x1d3 [ 29.553614] kasan_report_error.cold+0x8a/0x191 [ 29.558263] ? __lock_acquire+0x2c57/0x3f20 [ 29.562564] __asan_report_load8_noabort+0x68/0x70 [ 29.567466] ? tipc_subscrb_rcv_cb+0x2f0/0xa40 [ 29.572021] ? __lock_acquire+0x2c57/0x3f20 [ 29.576328] __lock_acquire+0x2c57/0x3f20 [ 29.580452] ? io_schedule_timeout+0x140/0x140 [ 29.585015] ? __wake_up_common_lock+0xcd/0x140 [ 29.589661] ? trace_hardirqs_on+0x10/0x10 [ 29.593870] ? trace_hardirqs_on+0x10/0x10 [ 29.598078] ? preempt_schedule_common+0x45/0xc0 [ 29.602814] ? ___preempt_schedule+0x16/0x18 [ 29.607197] ? tipc_recvmsg+0x43e/0x9e0 [ 29.611145] ? __local_bh_enable_ip+0x132/0x170 [ 29.615794] lock_acquire+0x170/0x3f0 [ 29.619570] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 29.624124] _raw_spin_lock_bh+0x2f/0x40 [ 29.628160] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 29.632712] tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 29.637095] tipc_receive_from_sock+0x25c/0x450 [ 29.641735] ? trace_hardirqs_on+0x10/0x10 [ 29.645945] ? lock_acquire+0x170/0x3f0 [ 29.649892] ? tipc_close_conn+0x200/0x200 [ 29.654102] tipc_recv_work+0x75/0xd0 [ 29.657899] process_one_work+0x793/0x14a0 [ 29.662108] ? work_busy+0x320/0x320 [ 29.665802] ? worker_thread+0x158/0xff0 [ 29.669926] ? _raw_spin_unlock_irq+0x24/0x80 [ 29.674394] worker_thread+0x5cc/0xff0 [ 29.678256] ? rescuer_thread+0xc80/0xc80 [ 29.682375] kthread+0x30d/0x420 [ 29.685722] ? kthread_create_on_node+0xd0/0xd0 [ 29.690363] ret_from_fork+0x24/0x30 [ 29.694055] [ 29.695657] Allocated by task 34: [ 29.699085] kasan_kmalloc+0xeb/0x160 [ 29.702952] kmem_cache_alloc_trace+0x131/0x3d0 [ 29.707638] tipc_subscrb_connect_cb+0x40/0x150 [ 29.712280] tipc_accept_from_sock+0x25b/0x400 [ 29.716834] tipc_recv_work+0x75/0xd0 [ 29.720608] process_one_work+0x793/0x14a0 [ 29.724813] worker_thread+0x5cc/0xff0 [ 29.728675] kthread+0x30d/0x420 [ 29.732017] ret_from_fork+0x24/0x30 [ 29.735699] [ 29.737300] Freed by task 5: [ 29.740291] kasan_slab_free+0xc3/0x1a0 [ 29.744240] kfree+0xc9/0x250 [ 29.747581] tipc_subscrb_put+0x22/0x30 [ 29.751535] tipc_close_conn+0x16a/0x200 [ 29.755572] tipc_send_work+0x41e/0x520 [ 29.759520] process_one_work+0x793/0x14a0 [ 29.763733] worker_thread+0x5cc/0xff0 [ 29.767604] kthread+0x30d/0x420 [ 29.770944] ret_from_fork+0x24/0x30 [ 29.774711] [ 29.776314] The buggy address belongs to the object at ffff8880b52c5580 [ 29.776314] which belongs to the cache kmalloc-96 of size 96 [ 29.788770] The buggy address is located 32 bytes inside of [ 29.788770] 96-byte region [ffff8880b52c5580, ffff8880b52c55e0) [ 29.800442] The buggy address belongs to the page: [ 29.805344] page:ffffea0002d4b140 count:1 mapcount:0 mapping:ffff8880b52c5000 index:0x0 [ 29.813460] flags: 0xfff00000000100(slab) [ 29.817584] raw: 00fff00000000100 ffff8880b52c5000 0000000000000000 0000000100000020 [ 29.825436] raw: ffffea00029ac1a0 ffff88813fe64448 ffff88813fe744c0 0000000000000000 [ 29.833359] page dumped because: kasan: bad access detected [ 29.839047] [ 29.840652] Memory state around the buggy address: [ 29.845558] ffff8880b52c5480: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 29.852898] ffff8880b52c5500: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 29.860252] >ffff8880b52c5580: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 29.867594] ^ [ 29.871984] ffff8880b52c5600: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 29.879323] ffff8880b52c5680: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc [ 29.886656] ================================================================== [ 29.893983] Disabling lock debugging due to kernel taint [ 29.899404] Kernel panic - not syncing: panic_on_warn set ... [ 29.899404] [ 29.906740] CPU: 0 PID: 34 Comm: kworker/u4:2 Tainted: G B 4.14.302-syzkaller #0 [ 29.915373] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 29.924729] Workqueue: tipc_rcv tipc_recv_work [ 29.929281] Call Trace: [ 29.931847] dump_stack+0x1b2/0x281 [ 29.935447] panic+0x1f9/0x42d [ 29.938611] ? add_taint.cold+0x16/0x16 [ 29.942562] ? lock_downgrade+0x740/0x740 [ 29.946682] kasan_end_report+0x43/0x49 [ 29.950632] kasan_report_error.cold+0xa7/0x191 [ 29.955274] ? __lock_acquire+0x2c57/0x3f20 [ 29.959568] __asan_report_load8_noabort+0x68/0x70 [ 29.964481] ? tipc_subscrb_rcv_cb+0x2f0/0xa40 [ 29.969039] ? __lock_acquire+0x2c57/0x3f20 [ 29.973342] __lock_acquire+0x2c57/0x3f20 [ 29.977473] ? io_schedule_timeout+0x140/0x140 [ 29.982038] ? __wake_up_common_lock+0xcd/0x140 [ 29.986681] ? trace_hardirqs_on+0x10/0x10 [ 29.990890] ? trace_hardirqs_on+0x10/0x10 [ 29.995097] ? preempt_schedule_common+0x45/0xc0 [ 29.999828] ? ___preempt_schedule+0x16/0x18 [ 30.004224] ? tipc_recvmsg+0x43e/0x9e0 [ 30.008172] ? __local_bh_enable_ip+0x132/0x170 [ 30.012815] lock_acquire+0x170/0x3f0 [ 30.016676] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.021229] _raw_spin_lock_bh+0x2f/0x40 [ 30.025275] ? tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.029844] tipc_subscrb_rcv_cb+0x4d4/0xa40 [ 30.034238] tipc_receive_from_sock+0x25c/0x450 [ 30.038886] ? trace_hardirqs_on+0x10/0x10 [ 30.043096] ? lock_acquire+0x170/0x3f0 [ 30.047044] ? tipc_close_conn+0x200/0x200 [ 30.051259] tipc_recv_work+0x75/0xd0 [ 30.055035] process_one_work+0x793/0x14a0 [ 30.059246] ? work_busy+0x320/0x320 [ 30.062939] ? worker_thread+0x158/0xff0 [ 30.066974] ? _raw_spin_unlock_irq+0x24/0x80 [ 30.071471] worker_thread+0x5cc/0xff0 [ 30.075422] ? rescuer_thread+0xc80/0xc80 [ 30.079542] kthread+0x30d/0x420 [ 30.082890] ? kthread_create_on_node+0xd0/0xd0 [ 30.087544] ret_from_fork+0x24/0x30 [ 30.091376] Kernel Offset: disabled [ 30.094979] Rebooting in 86400 seconds..