Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.167' (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 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 executing program executing program syzkaller login: [ 67.108624][ T8802] ================================================================== [ 67.116806][ T8802] BUG: KASAN: use-after-free in __lock_acquire+0x3e6f/0x54c0 [ 67.124177][ T8802] Read of size 8 at addr ffff8880266ba4d0 by task iou-sqp-8798/8802 [ 67.132176][ T8802] [ 67.134484][ T8802] CPU: 0 PID: 8802 Comm: iou-sqp-8798 Not tainted 5.11.0-next-20210224-syzkaller #0 [ 67.143836][ T8802] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 67.153977][ T8802] Call Trace: [ 67.157328][ T8802] dump_stack+0xfa/0x151 [ 67.161571][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.166608][ T8802] print_address_description.constprop.0.cold+0x5b/0x2f8 [ 67.173631][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.178642][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.183672][ T8802] kasan_report.cold+0x7c/0xd8 [ 67.188422][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.193436][ T8802] __lock_acquire+0x3e6f/0x54c0 [ 67.198307][ T8802] ? lock_acquire+0x1bb/0x730 [ 67.202990][ T8802] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 67.208988][ T8802] lock_acquire+0x1ab/0x730 [ 67.213479][ T8802] ? try_to_wake_up+0x98/0x14a0 [ 67.218318][ T8802] ? lock_release+0x710/0x710 [ 67.222986][ T8802] ? lock_downgrade+0x6d0/0x6d0 [ 67.227845][ T8802] ? __cpuhp_state_remove_instance+0x15e/0x5b0 [ 67.233993][ T8802] ? lock_is_held_type+0xd5/0x130 [ 67.239014][ T8802] ? _raw_spin_lock_irqsave+0x4e/0x50 [ 67.244415][ T8802] _raw_spin_lock_irqsave+0x39/0x50 [ 67.249625][ T8802] ? try_to_wake_up+0x98/0x14a0 [ 67.254466][ T8802] try_to_wake_up+0x98/0x14a0 [ 67.259137][ T8802] ? migrate_swap_stop+0x9f0/0x9f0 [ 67.264291][ T8802] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 67.270526][ T8802] ? __cpuhp_state_remove_instance+0x3de/0x5b0 [ 67.276704][ T8802] io_wq_destroy+0x74/0x3d0 [ 67.281225][ T8802] __io_uring_files_cancel+0x195/0x230 [ 67.286686][ T8802] ? __io_uring_free+0xc0/0xc0 [ 67.291444][ T8802] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 67.297671][ T8802] ? __validate_process_creds+0x20c/0x370 [ 67.303392][ T8802] do_exit+0x299/0x2a60 [ 67.307542][ T8802] ? find_held_lock+0x2d/0x110 [ 67.312312][ T8802] ? lock_release+0x3bb/0x710 [ 67.316972][ T8802] ? mm_update_next_owner+0x7a0/0x7a0 [ 67.322335][ T8802] ? lock_downgrade+0x6d0/0x6d0 [ 67.327196][ T8802] ? _raw_spin_unlock_irqrestore+0x28/0x50 [ 67.332995][ T8802] io_sq_thread+0x1231/0x19a0 [ 67.337672][ T8802] ? io_submit_sqes+0x63d0/0x63d0 [ 67.342709][ T8802] ? lock_release+0x3bb/0x710 [ 67.347403][ T8802] ? ret_from_fork+0x8/0x30 [ 67.351895][ T8802] ? finish_wait+0x260/0x260 [ 67.356472][ T8802] ? rwlock_bug.part.0+0x90/0x90 [ 67.361401][ T8802] ? _raw_spin_unlock_irq+0x1f/0x40 [ 67.366617][ T8802] ? io_submit_sqes+0x63d0/0x63d0 [ 67.371652][ T8802] ret_from_fork+0x1f/0x30 [ 67.376060][ T8802] [ 67.378371][ T8802] Allocated by task 8798: [ 67.382692][ T8802] kasan_save_stack+0x1b/0x40 [ 67.387359][ T8802] __kasan_slab_alloc+0x75/0x90 [ 67.392193][ T8802] kmem_cache_alloc_node+0x16d/0x3c0 [ 67.397547][ T8802] copy_process+0x613/0x6fd0 [ 67.402145][ T8802] kernel_clone+0xe7/0xab0 [ 67.406558][ T8802] io_wq_fork_thread+0xa7/0xe0 [ 67.411314][ T8802] io_wq_create+0x81c/0xab0 [ 67.415804][ T8802] io_uring_alloc_task_context+0x185/0x510 [ 67.421613][ T8802] io_uring_setup+0x1e00/0x2c20 [ 67.426453][ T8802] do_syscall_64+0x2d/0x70 [ 67.430888][ T8802] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 67.436771][ T8802] [ 67.439100][ T8802] Freed by task 8429: [ 67.443079][ T8802] kasan_save_stack+0x1b/0x40 [ 67.447746][ T8802] kasan_set_track+0x1c/0x30 [ 67.452345][ T8802] kasan_set_free_info+0x20/0x30 [ 67.457278][ T8802] __kasan_slab_free+0xf5/0x130 [ 67.462133][ T8802] slab_free_freelist_hook+0x72/0x1b0 [ 67.467593][ T8802] kmem_cache_free+0x8b/0x730 [ 67.472255][ T8802] __put_task_struct+0x267/0x3f0 [ 67.477206][ T8802] delayed_put_task_struct+0x1f6/0x340 [ 67.482657][ T8802] rcu_core+0x722/0x1280 [ 67.486910][ T8802] __do_softirq+0x29b/0x9f6 [ 67.491399][ T8802] [ 67.493702][ T8802] Last potentially related work creation: [ 67.499398][ T8802] kasan_save_stack+0x1b/0x40 [ 67.504107][ T8802] kasan_record_aux_stack+0xe5/0x110 [ 67.509382][ T8802] call_rcu+0xb1/0x700 [ 67.513479][ T8802] put_task_struct_rcu_user+0x7f/0xb0 [ 67.518835][ T8802] __schedule+0x914/0x21a0 [ 67.523237][ T8802] schedule+0xcf/0x270 [ 67.527295][ T8802] do_nanosleep+0x268/0x6a0 [ 67.531815][ T8802] hrtimer_nanosleep+0x1f9/0x430 [ 67.536761][ T8802] common_nsleep+0xa2/0xc0 [ 67.541173][ T8802] __x64_sys_clock_nanosleep+0x2f4/0x430 [ 67.546830][ T8802] do_syscall_64+0x2d/0x70 [ 67.551268][ T8802] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 67.557146][ T8802] [ 67.559454][ T8802] The buggy address belongs to the object at ffff8880266b9c00 [ 67.559454][ T8802] which belongs to the cache task_struct of size 6912 [ 67.573572][ T8802] The buggy address is located 2256 bytes inside of [ 67.573572][ T8802] 6912-byte region [ffff8880266b9c00, ffff8880266bb700) [ 67.587002][ T8802] The buggy address belongs to the page: [ 67.592609][ T8802] page:0000000030d23d99 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x266b8 [ 67.602740][ T8802] head:0000000030d23d99 order:3 compound_mapcount:0 compound_pincount:0 [ 67.611046][ T8802] flags: 0xfff00000010200(slab|head) [ 67.616317][ T8802] raw: 00fff00000010200 dead000000000100 dead000000000122 ffff888140004000 [ 67.624889][ T8802] raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 [ 67.633479][ T8802] page dumped because: kasan: bad access detected [ 67.639913][ T8802] [ 67.642229][ T8802] Memory state around the buggy address: [ 67.647848][ T8802] ffff8880266ba380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.655895][ T8802] ffff8880266ba400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.663942][ T8802] >ffff8880266ba480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.671995][ T8802] ^ [ 67.678660][ T8802] ffff8880266ba500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.686708][ T8802] ffff8880266ba580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 67.694760][ T8802] ================================================================== [ 67.702821][ T8802] Disabling lock debugging due to kernel taint [ 67.709052][ T8802] Kernel panic - not syncing: panic_on_warn set ... [ 67.715612][ T8802] CPU: 0 PID: 8802 Comm: iou-sqp-8798 Tainted: G B 5.11.0-next-20210224-syzkaller #0 [ 67.726347][ T8802] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 67.736508][ T8802] Call Trace: [ 67.739807][ T8802] dump_stack+0xfa/0x151 [ 67.744077][ T8802] panic+0x306/0x73d [ 67.747965][ T8802] ? __warn_printk+0xf3/0xf3 [ 67.752566][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.757596][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.762690][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.767698][ T8802] end_report.cold+0x5a/0x5a [ 67.772283][ T8802] kasan_report.cold+0x6a/0xd8 [ 67.777032][ T8802] ? __lock_acquire+0x3e6f/0x54c0 [ 67.782045][ T8802] __lock_acquire+0x3e6f/0x54c0 [ 67.786912][ T8802] ? lock_acquire+0x1bb/0x730 [ 67.791574][ T8802] ? lockdep_hardirqs_on_prepare+0x400/0x400 [ 67.797546][ T8802] lock_acquire+0x1ab/0x730 [ 67.802054][ T8802] ? try_to_wake_up+0x98/0x14a0 [ 67.806900][ T8802] ? lock_release+0x710/0x710 [ 67.811563][ T8802] ? lock_downgrade+0x6d0/0x6d0 [ 67.816405][ T8802] ? __cpuhp_state_remove_instance+0x15e/0x5b0 [ 67.822546][ T8802] ? lock_is_held_type+0xd5/0x130 [ 67.827567][ T8802] ? _raw_spin_lock_irqsave+0x4e/0x50 [ 67.832943][ T8802] _raw_spin_lock_irqsave+0x39/0x50 [ 67.838127][ T8802] ? try_to_wake_up+0x98/0x14a0 [ 67.842979][ T8802] try_to_wake_up+0x98/0x14a0 [ 67.847660][ T8802] ? migrate_swap_stop+0x9f0/0x9f0 [ 67.852759][ T8802] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 67.858989][ T8802] ? __cpuhp_state_remove_instance+0x3de/0x5b0 [ 67.865130][ T8802] io_wq_destroy+0x74/0x3d0 [ 67.869622][ T8802] __io_uring_files_cancel+0x195/0x230 [ 67.875067][ T8802] ? __io_uring_free+0xc0/0xc0 [ 67.879846][ T8802] ? __sanitizer_cov_trace_const_cmp4+0x1c/0x70 [ 67.886072][ T8802] ? __validate_process_creds+0x20c/0x370 [ 67.891779][ T8802] do_exit+0x299/0x2a60 [ 67.895921][ T8802] ? find_held_lock+0x2d/0x110 [ 67.900668][ T8802] ? lock_release+0x3bb/0x710 [ 67.905331][ T8802] ? mm_update_next_owner+0x7a0/0x7a0 [ 67.910722][ T8802] ? lock_downgrade+0x6d0/0x6d0 [ 67.915557][ T8802] ? _raw_spin_unlock_irqrestore+0x28/0x50 [ 67.921358][ T8802] io_sq_thread+0x1231/0x19a0 [ 67.926072][ T8802] ? io_submit_sqes+0x63d0/0x63d0 [ 67.931078][ T8802] ? lock_release+0x3bb/0x710 [ 67.935747][ T8802] ? ret_from_fork+0x8/0x30 [ 67.940265][ T8802] ? finish_wait+0x260/0x260 [ 67.944968][ T8802] ? rwlock_bug.part.0+0x90/0x90 [ 67.949892][ T8802] ? _raw_spin_unlock_irq+0x1f/0x40 [ 67.955077][ T8802] ? io_submit_sqes+0x63d0/0x63d0 [ 67.960105][ T8802] ret_from_fork+0x1f/0x30 [ 67.964983][ T8802] Kernel Offset: disabled [ 67.969298][ T8802] Rebooting in 86400 seconds..