Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.39' (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 syzkaller login: [ 67.865469][ T8507] ================================================================== [ 67.873582][ T8507] BUG: KASAN: use-after-free in __lock_acquire+0x3e6f/0x54c0 [ 67.881018][ T8507] Read of size 8 at addr ffff8880175840d0 by task iou-sqp-8496/8507 [ 67.889010][ T8507] [ 67.891344][ T8507] CPU: 1 PID: 8507 Comm: iou-sqp-8496 Not tainted 5.11.0-next-20210224-syzkaller #0 [ 67.901688][ T8507] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 67.911876][ T8507] Call Trace: [ 67.915164][ T8507] dump_stack+0xfa/0x151 [ 67.919439][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 67.924642][ T8507] print_address_description.constprop.0.cold+0x5b/0x2f8 [ 67.932376][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 67.937413][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 67.942441][ T8507] kasan_report.cold+0x7c/0xd8 [ 67.947217][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 67.952248][ T8507] __lock_acquire+0x3e6f/0x54c0 [ 67.957114][ T8507] ? lock_acquire+0x1bb/0x730 [ 67.962174][ T8507] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 67.968165][ T8507] lock_acquire+0x1ab/0x730 [ 67.972934][ T8507] ? try_to_wake_up+0x98/0x14a0 [ 67.977801][ T8507] ? lock_release+0x710/0x710 [ 67.982482][ T8507] ? lock_downgrade+0x6d0/0x6d0 [ 67.987776][ T8507] ? __cpuhp_state_remove_instance+0x15e/0x5b0 [ 67.993937][ T8507] ? lock_is_held_type+0xd5/0x130 [ 67.999237][ T8507] ? _raw_spin_lock_irqsave+0x4e/0x50 [ 68.004620][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.009397][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.014184][ T8507] _raw_spin_lock_irqsave+0x39/0x50 [ 68.019392][ T8507] ? try_to_wake_up+0x98/0x14a0 [ 68.024251][ T8507] try_to_wake_up+0x98/0x14a0 [ 68.028939][ T8507] ? migrate_swap_stop+0x9f0/0x9f0 [ 68.034093][ T8507] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 68.040342][ T8507] ? __cpuhp_state_remove_instance+0x3de/0x5b0 [ 68.046510][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.051298][ T8507] io_wq_destroy+0x74/0x3d0 [ 68.055812][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.060614][ T8507] __io_uring_files_cancel+0x195/0x230 [ 68.066089][ T8507] ? __io_uring_free+0xc0/0xc0 [ 68.070976][ T8507] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 68.077242][ T8507] ? __validate_process_creds+0x20c/0x370 [ 68.083065][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.087949][ T8507] do_exit+0x299/0x2a60 [ 68.092120][ T8507] ? find_held_lock+0x2d/0x110 [ 68.096891][ T8507] ? lock_release+0x3bb/0x710 [ 68.101574][ T8507] ? mm_update_next_owner+0x7a0/0x7a0 [ 68.107128][ T8507] ? lock_downgrade+0x6d0/0x6d0 [ 68.111983][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.116759][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.121533][ T8507] ? _raw_spin_unlock_irqrestore+0x28/0x50 [ 68.127389][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.132166][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.136941][ T8507] io_sq_thread+0x1231/0x19a0 [ 68.141653][ T8507] ? io_submit_sqes+0x63d0/0x63d0 [ 68.146702][ T8507] ? lock_release+0x3bb/0x710 [ 68.151385][ T8507] ? ret_from_fork+0x8/0x30 [ 68.155893][ T8507] ? finish_wait+0x260/0x260 [ 68.160491][ T8507] ? rwlock_bug.part.0+0x90/0x90 [ 68.165444][ T8507] ? _raw_spin_unlock_irq+0x1f/0x40 [ 68.171187][ T8507] ? io_submit_sqes+0x63d0/0x63d0 [ 68.176226][ T8507] ret_from_fork+0x1f/0x30 [ 68.180657][ T8507] [ 68.183071][ T8507] Allocated by task 8496: [ 68.187844][ T8507] kasan_save_stack+0x1b/0x40 [ 68.192530][ T8507] __kasan_slab_alloc+0x75/0x90 [ 68.197384][ T8507] kmem_cache_alloc_node+0x16d/0x3c0 [ 68.202671][ T8507] copy_process+0x613/0x6fd0 [ 68.207264][ T8507] kernel_clone+0xe7/0xab0 [ 68.211680][ T8507] io_wq_fork_thread+0xa7/0xe0 [ 68.216452][ T8507] io_wq_create+0x81c/0xab0 [ 68.221219][ T8507] io_uring_alloc_task_context+0x185/0x510 [ 68.227039][ T8507] io_uring_setup+0x1e00/0x2c20 [ 68.231897][ T8507] do_syscall_64+0x2d/0x70 [ 68.236318][ T8507] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 68.242217][ T8507] [ 68.244533][ T8507] Freed by task 12: [ 68.248334][ T8507] kasan_save_stack+0x1b/0x40 [ 68.253011][ T8507] kasan_set_track+0x1c/0x30 [ 68.257616][ T8507] kasan_set_free_info+0x20/0x30 [ 68.262610][ T8507] __kasan_slab_free+0xf5/0x130 [ 68.267464][ T8507] slab_free_freelist_hook+0x72/0x1b0 [ 68.272842][ T8507] kmem_cache_free+0x8b/0x730 [ 68.277520][ T8507] __put_task_struct+0x267/0x3f0 [ 68.282460][ T8507] delayed_put_task_struct+0x1f6/0x340 [ 68.288099][ T8507] rcu_core+0x722/0x1280 [ 68.292346][ T8507] __do_softirq+0x29b/0x9f6 [ 68.296850][ T8507] [ 68.299169][ T8507] Last potentially related work creation: [ 68.304875][ T8507] kasan_save_stack+0x1b/0x40 [ 68.309554][ T8507] kasan_record_aux_stack+0xe5/0x110 [ 68.314842][ T8507] call_rcu+0xb1/0x700 [ 68.318917][ T8507] put_task_struct_rcu_user+0x7f/0xb0 [ 68.324300][ T8507] __schedule+0x914/0x21a0 [ 68.328723][ T8507] schedule+0xcf/0x270 [ 68.332885][ T8507] schedule_timeout+0x1db/0x250 [ 68.339219][ T8507] wait_for_completion+0x168/0x270 [ 68.344334][ T8507] io_wq_create+0x905/0xab0 [ 68.348843][ T8507] io_uring_alloc_task_context+0x185/0x510 [ 68.354664][ T8507] io_uring_setup+0x1e00/0x2c20 [ 68.359713][ T8507] do_syscall_64+0x2d/0x70 [ 68.364152][ T8507] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 68.370064][ T8507] [ 68.373097][ T8507] Second to last potentially related work creation: [ 68.379677][ T8507] kasan_save_stack+0x1b/0x40 [ 68.384365][ T8507] kasan_record_aux_stack+0xe5/0x110 [ 68.389663][ T8507] call_rcu+0xb1/0x700 [ 68.393768][ T8507] put_task_struct_rcu_user+0x7f/0xb0 [ 68.399183][ T8507] __schedule+0x914/0x21a0 [ 68.403755][ T8507] preempt_schedule_common+0x45/0xc0 [ 68.409148][ T8507] preempt_schedule_thunk+0x16/0x18 [ 68.414706][ T8507] _raw_write_unlock_irq+0x3c/0x40 [ 68.419823][ T8507] do_exit+0x1411/0x2a60 [ 68.424341][ T8507] do_group_exit+0x125/0x310 [ 68.429100][ T8507] __x64_sys_exit_group+0x3a/0x50 [ 68.435030][ T8507] do_syscall_64+0x2d/0x70 [ 68.439459][ T8507] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 68.445361][ T8507] [ 68.447681][ T8507] The buggy address belongs to the object at ffff888017583800 [ 68.447681][ T8507] which belongs to the cache task_struct of size 6912 [ 68.462004][ T8507] The buggy address is located 2256 bytes inside of [ 68.462004][ T8507] 6912-byte region [ffff888017583800, ffff888017585300) [ 68.475456][ T8507] The buggy address belongs to the page: [ 68.481079][ T8507] page:000000008d342e2c refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x17580 [ 68.492018][ T8507] head:000000008d342e2c order:3 compound_mapcount:0 compound_pincount:0 [ 68.500449][ T8507] flags: 0xfff00000010200(slab|head) [ 68.505751][ T8507] raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888140004000 [ 68.514340][ T8507] raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 [ 68.522917][ T8507] page dumped because: kasan: bad access detected [ 68.529346][ T8507] [ 68.531662][ T8507] Memory state around the buggy address: [ 68.537288][ T8507] ffff888017583f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.545346][ T8507] ffff888017584000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.553405][ T8507] >ffff888017584080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.561466][ T8507] ^ [ 68.568657][ T8507] ffff888017584100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.577588][ T8507] ffff888017584180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 68.585644][ T8507] ================================================================== [ 68.593701][ T8507] Disabling lock debugging due to kernel taint [ 68.599854][ T8507] Kernel panic - not syncing: panic_on_warn set ... [ 68.606438][ T8507] CPU: 1 PID: 8507 Comm: iou-sqp-8496 Tainted: G B 5.11.0-next-20210224-syzkaller #0 [ 68.617199][ T8507] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 68.627636][ T8507] Call Trace: [ 68.630914][ T8507] dump_stack+0xfa/0x151 [ 68.635167][ T8507] panic+0x306/0x73d [ 68.639081][ T8507] ? __warn_printk+0xf3/0xf3 [ 68.643679][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 68.648797][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 68.653839][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 68.658882][ T8507] end_report.cold+0x5a/0x5a [ 68.663574][ T8507] kasan_report.cold+0x6a/0xd8 [ 68.668371][ T8507] ? __lock_acquire+0x3e6f/0x54c0 [ 68.673498][ T8507] __lock_acquire+0x3e6f/0x54c0 [ 68.678400][ T8507] ? lock_acquire+0x1bb/0x730 [ 68.683090][ T8507] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 68.689081][ T8507] lock_acquire+0x1ab/0x730 [ 68.693607][ T8507] ? try_to_wake_up+0x98/0x14a0 [ 68.698727][ T8507] ? lock_release+0x710/0x710 [ 68.703439][ T8507] ? lock_downgrade+0x6d0/0x6d0 [ 68.708308][ T8507] ? __cpuhp_state_remove_instance+0x15e/0x5b0 [ 68.714473][ T8507] ? lock_is_held_type+0xd5/0x130 [ 68.719505][ T8507] ? _raw_spin_lock_irqsave+0x4e/0x50 [ 68.724885][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.729655][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.734423][ T8507] _raw_spin_lock_irqsave+0x39/0x50 [ 68.740064][ T8507] ? try_to_wake_up+0x98/0x14a0 [ 68.744921][ T8507] try_to_wake_up+0x98/0x14a0 [ 68.749634][ T8507] ? migrate_swap_stop+0x9f0/0x9f0 [ 68.754761][ T8507] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 68.761006][ T8507] ? __cpuhp_state_remove_instance+0x3de/0x5b0 [ 68.767168][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.771967][ T8507] io_wq_destroy+0x74/0x3d0 [ 68.776508][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.782172][ T8507] __io_uring_files_cancel+0x195/0x230 [ 68.787637][ T8507] ? __io_uring_free+0xc0/0xc0 [ 68.792407][ T8507] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 68.798654][ T8507] ? __validate_process_creds+0x20c/0x370 [ 68.804420][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.809192][ T8507] do_exit+0x299/0x2a60 [ 68.813356][ T8507] ? find_held_lock+0x2d/0x110 [ 68.818214][ T8507] ? lock_release+0x3bb/0x710 [ 68.822892][ T8507] ? mm_update_next_owner+0x7a0/0x7a0 [ 68.832204][ T8507] ? lock_downgrade+0x6d0/0x6d0 [ 68.837066][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.841840][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.846608][ T8507] ? _raw_spin_unlock_irqrestore+0x28/0x50 [ 68.852422][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.857188][ T8507] ? io_sq_thread+0x95b/0x19a0 [ 68.861956][ T8507] io_sq_thread+0x1231/0x19a0 [ 68.866643][ T8507] ? io_submit_sqes+0x63d0/0x63d0 [ 68.871670][ T8507] ? lock_release+0x3bb/0x710 [ 68.876351][ T8507] ? ret_from_fork+0x8/0x30 [ 68.880858][ T8507] ? finish_wait+0x260/0x260 [ 68.885449][ T8507] ? rwlock_bug.part.0+0x90/0x90 [ 68.890393][ T8507] ? _raw_spin_unlock_irq+0x1f/0x40 [ 68.895603][ T8507] ? io_submit_sqes+0x63d0/0x63d0 [ 68.900635][ T8507] ret_from_fork+0x1f/0x30 [ 68.905759][ T8507] Kernel Offset: disabled [ 68.914304][ T8507] Rebooting in 86400 seconds..