DUID 00:04:bb:a2:40:ae:48:ac:17:b5:4c:fd:37:63:df:39:12:a9 forked to background, child pid 4644 [ 30.595376][ T4645] 8021q: adding VLAN 0 to HW filter on device bond0 [ 30.606447][ T4645] eql: remember to turn off Van-Jacobson compression on your slave devices Starting sshd: OK syzkaller syzkaller login: [ 76.010445][ T7] cfg80211: failed to load regulatory.db Warning: Permanently added '10.128.0.55' (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 [ 175.947804][ T8677] ================================================================== [ 175.955916][ T8677] BUG: KASAN: use-after-free in io_wq_worker_running+0x114/0x130 [ 175.963647][ T8677] Read of size 4 at addr ffff888021ae4004 by task iou-wrk-8635/8677 [ 175.971608][ T8677] [ 175.973910][ T8677] CPU: 0 PID: 8677 Comm: iou-wrk-8635 Not tainted 6.2.0-rc3-syzkaller-00009-g5a41237ad1d4 #0 [ 175.984040][ T8677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 175.994080][ T8677] Call Trace: [ 175.997348][ T8677] [ 176.000266][ T8677] dump_stack_lvl+0xd1/0x138 [ 176.004864][ T8677] print_report+0x15e/0x45d [ 176.009366][ T8677] ? __phys_addr+0xc8/0x140 [ 176.013864][ T8677] ? io_wq_worker_running+0x114/0x130 [ 176.019236][ T8677] kasan_report+0xbf/0x1f0 [ 176.023649][ T8677] ? io_wq_worker_running+0x114/0x130 [ 176.029007][ T8677] io_wq_worker_running+0x114/0x130 [ 176.034198][ T8677] schedule_preempt_disabled+0x13/0x20 [ 176.039653][ T8677] __mutex_lock+0xa48/0x1360 [ 176.044222][ T8677] ? io_wq_submit_work+0x5f7/0xdc0 [ 176.049321][ T8677] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 176.054854][ T8677] ? find_held_lock+0x2d/0x110 [ 176.059603][ T8677] ? io_worker_handle_work+0x599/0x1c60 [ 176.065132][ T8677] ? lock_downgrade+0x6e0/0x6e0 [ 176.069965][ T8677] ? do_raw_spin_lock+0x124/0x2b0 [ 176.074968][ T8677] io_wq_submit_work+0x5f7/0xdc0 [ 176.079901][ T8677] io_worker_handle_work+0xc41/0x1c60 [ 176.085269][ T8677] io_wqe_worker+0xa5b/0xe40 [ 176.089858][ T8677] ? io_worker_handle_work+0x1c60/0x1c60 [ 176.095483][ T8677] ? ret_from_fork+0x8/0x30 [ 176.099968][ T8677] ? lock_downgrade+0x6e0/0x6e0 [ 176.104805][ T8677] ? do_raw_spin_lock+0x124/0x2b0 [ 176.109808][ T8677] ? rwlock_bug.part.0+0x90/0x90 [ 176.114725][ T8677] ? _raw_spin_unlock_irq+0x23/0x50 [ 176.119914][ T8677] ? io_worker_handle_work+0x1c60/0x1c60 [ 176.125529][ T8677] ret_from_fork+0x1f/0x30 [ 176.129928][ T8677] [ 176.132924][ T8677] [ 176.135232][ T8677] Allocated by task 8635: [ 176.139533][ T8677] kasan_save_stack+0x22/0x40 [ 176.144187][ T8677] kasan_set_track+0x25/0x30 [ 176.148763][ T8677] __kasan_kmalloc+0xa5/0xb0 [ 176.153347][ T8677] create_io_worker+0x10c/0x630 [ 176.158190][ T8677] io_wqe_enqueue+0x6c3/0xbc0 [ 176.162866][ T8677] io_queue_iowq+0x282/0x5c0 [ 176.167442][ T8677] io_queue_sqe_fallback+0xf3/0x190 [ 176.172622][ T8677] io_submit_sqes+0x11db/0x1e60 [ 176.177464][ T8677] __do_sys_io_uring_enter+0xc1d/0x2540 [ 176.182992][ T8677] do_syscall_64+0x39/0xb0 [ 176.187392][ T8677] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 176.193267][ T8677] [ 176.195590][ T8677] Freed by task 8677: [ 176.199559][ T8677] kasan_save_stack+0x22/0x40 [ 176.204222][ T8677] kasan_set_track+0x25/0x30 [ 176.208801][ T8677] kasan_save_free_info+0x2e/0x40 [ 176.213808][ T8677] ____kasan_slab_free+0x160/0x1c0 [ 176.218908][ T8677] slab_free_freelist_hook+0x8b/0x1c0 [ 176.224275][ T8677] __kmem_cache_free+0xaf/0x3b0 [ 176.229112][ T8677] io_queue_worker_create+0x567/0x660 [ 176.234470][ T8677] io_wqe_dec_running+0x1e4/0x240 [ 176.239477][ T8677] io_wq_worker_sleeping+0xa6/0xc0 [ 176.244575][ T8677] schedule+0x16e/0x1b0 [ 176.248725][ T8677] schedule_preempt_disabled+0x13/0x20 [ 176.254178][ T8677] __mutex_lock+0xa48/0x1360 [ 176.258753][ T8677] io_wq_submit_work+0x5f7/0xdc0 [ 176.263675][ T8677] io_worker_handle_work+0xc41/0x1c60 [ 176.269031][ T8677] io_wqe_worker+0xa5b/0xe40 [ 176.273604][ T8677] ret_from_fork+0x1f/0x30 [ 176.278010][ T8677] [ 176.280318][ T8677] Last potentially related work creation: [ 176.286019][ T8677] kasan_save_stack+0x22/0x40 [ 176.290675][ T8677] __kasan_record_aux_stack+0xbc/0xd0 [ 176.296035][ T8677] task_work_add+0x7f/0x2c0 [ 176.300519][ T8677] io_queue_worker_create+0x41d/0x660 [ 176.305933][ T8677] io_wqe_dec_running+0x1e4/0x240 [ 176.310951][ T8677] io_wq_worker_sleeping+0xa6/0xc0 [ 176.316057][ T8677] schedule+0x16e/0x1b0 [ 176.320211][ T8677] schedule_preempt_disabled+0x13/0x20 [ 176.325664][ T8677] __mutex_lock+0xa48/0x1360 [ 176.330233][ T8677] io_wq_submit_work+0x5f7/0xdc0 [ 176.335166][ T8677] io_worker_handle_work+0xc41/0x1c60 [ 176.340532][ T8677] io_wqe_worker+0xa5b/0xe40 [ 176.345117][ T8677] ret_from_fork+0x1f/0x30 [ 176.349528][ T8677] [ 176.351829][ T8677] The buggy address belongs to the object at ffff888021ae4000 [ 176.351829][ T8677] which belongs to the cache kmalloc-512 of size 512 [ 176.365870][ T8677] The buggy address is located 4 bytes inside of [ 176.365870][ T8677] 512-byte region [ffff888021ae4000, ffff888021ae4200) [ 176.378950][ T8677] [ 176.381253][ T8677] The buggy address belongs to the physical page: [ 176.387639][ T8677] page:ffffea000086b900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21ae4 [ 176.397772][ T8677] head:ffffea000086b900 order:2 compound_mapcount:0 subpages_mapcount:0 compound_pincount:0 [ 176.407826][ T8677] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) [ 176.415796][ T8677] raw: 00fff00000010200 ffff888012441c80 dead000000000122 0000000000000000 [ 176.424359][ T8677] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 176.432927][ T8677] page dumped because: kasan: bad access detected [ 176.439325][ T8677] page_owner tracks the page as allocated [ 176.445014][ T8677] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 8635, tgid 8634 (syz-executor290), ts 175604119328, free_ts 172868743417 [ 176.466779][ T8677] get_page_from_freelist+0x119c/0x2ce0 [ 176.472309][ T8677] __alloc_pages+0x1cb/0x5b0 [ 176.476881][ T8677] allocate_slab+0xa7/0x350 [ 176.481376][ T8677] ___slab_alloc+0xa91/0x1400 [ 176.486037][ T8677] __slab_alloc.constprop.0+0x56/0xa0 [ 176.491395][ T8677] __kmem_cache_alloc_node+0x1a4/0x430 [ 176.496836][ T8677] kmalloc_node_trace+0x21/0x60 [ 176.501677][ T8677] create_io_worker+0x10c/0x630 [ 176.506511][ T8677] io_wqe_enqueue+0x6c3/0xbc0 [ 176.511181][ T8677] io_queue_iowq+0x282/0x5c0 [ 176.515763][ T8677] io_queue_sqe_fallback+0xf3/0x190 [ 176.520960][ T8677] io_submit_sqes+0x11db/0x1e60 [ 176.525812][ T8677] __do_sys_io_uring_enter+0xc1d/0x2540 [ 176.531359][ T8677] do_syscall_64+0x39/0xb0 [ 176.535771][ T8677] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 176.541650][ T8677] page last free stack trace: [ 176.546300][ T8677] free_pcp_prepare+0x65c/0xc00 [ 176.551136][ T8677] free_unref_page+0x1d/0x490 [ 176.555801][ T8677] __unfreeze_partials+0x17c/0x1a0 [ 176.560906][ T8677] qlist_free_all+0x6a/0x170 [ 176.565477][ T8677] kasan_quarantine_reduce+0x192/0x220 [ 176.570925][ T8677] __kasan_slab_alloc+0x66/0x90 [ 176.575761][ T8677] kmem_cache_alloc+0x1e4/0x430 [ 176.580589][ T8677] vm_area_alloc+0x20/0x100 [ 176.585071][ T8677] mmap_region+0x44c/0x1dd0 [ 176.589565][ T8677] do_mmap+0x831/0xf60 [ 176.593612][ T8677] vm_mmap_pgoff+0x1af/0x280 [ 176.598190][ T8677] vm_mmap+0x96/0xc0 [ 176.602067][ T8677] elf_map+0x229/0x2a0 [ 176.606117][ T8677] load_elf_binary+0xd79/0x4f10 [ 176.610957][ T8677] bprm_execve+0x7ef/0x19f0 [ 176.615437][ T8677] do_execveat_common+0x724/0x890 [ 176.620442][ T8677] [ 176.622752][ T8677] Memory state around the buggy address: [ 176.628357][ T8677] ffff888021ae3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 176.636401][ T8677] ffff888021ae3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc executing program executing program [ 176.644454][ T8677] >ffff888021ae4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 176.652488][ T8677] ^ [ 176.656529][ T8677] ffff888021ae4080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 176.664566][ T8677] ffff888021ae4100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 176.672602][ T8677] ================================================================== [ 176.815729][ T8677] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 176.822965][ T8677] CPU: 0 PID: 8677 Comm: iou-wrk-8635 Not tainted 6.2.0-rc3-syzkaller-00009-g5a41237ad1d4 #0 [ 176.833133][ T8677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 [ 176.843170][ T8677] Call Trace: [ 176.846432][ T8677] [ 176.849345][ T8677] dump_stack_lvl+0xd1/0x138 [ 176.853928][ T8677] panic+0x2cc/0x626 [ 176.857810][ T8677] ? panic_print_sys_info.part.0+0x110/0x110 [ 176.863775][ T8677] ? preempt_schedule_thunk+0x1a/0x20 [ 176.869157][ T8677] ? preempt_schedule_common+0x59/0xc0 [ 176.874641][ T8677] check_panic_on_warn.cold+0x19/0x35 [ 176.880035][ T8677] end_report.part.0+0x36/0x73 [ 176.884831][ T8677] ? io_wq_worker_running+0x114/0x130 [ 176.890224][ T8677] kasan_report.cold+0xa/0xf [ 176.894841][ T8677] ? io_wq_worker_running+0x114/0x130 [ 176.900202][ T8677] io_wq_worker_running+0x114/0x130 [ 176.905390][ T8677] schedule_preempt_disabled+0x13/0x20 [ 176.910845][ T8677] __mutex_lock+0xa48/0x1360 [ 176.915413][ T8677] ? io_wq_submit_work+0x5f7/0xdc0 [ 176.920521][ T8677] ? mutex_lock_io_nested+0x11a0/0x11a0 [ 176.926066][ T8677] ? find_held_lock+0x2d/0x110 [ 176.930833][ T8677] ? io_worker_handle_work+0x599/0x1c60 [ 176.936378][ T8677] ? lock_downgrade+0x6e0/0x6e0 [ 176.941207][ T8677] ? do_raw_spin_lock+0x124/0x2b0 [ 176.946220][ T8677] io_wq_submit_work+0x5f7/0xdc0 [ 176.951152][ T8677] io_worker_handle_work+0xc41/0x1c60 [ 176.956511][ T8677] io_wqe_worker+0xa5b/0xe40 [ 176.961085][ T8677] ? io_worker_handle_work+0x1c60/0x1c60 [ 176.966701][ T8677] ? ret_from_fork+0x8/0x30 [ 176.971202][ T8677] ? lock_downgrade+0x6e0/0x6e0 [ 176.976066][ T8677] ? do_raw_spin_lock+0x124/0x2b0 [ 176.981109][ T8677] ? rwlock_bug.part.0+0x90/0x90 [ 176.986059][ T8677] ? _raw_spin_unlock_irq+0x23/0x50 [ 176.991250][ T8677] ? io_worker_handle_work+0x1c60/0x1c60 [ 176.996888][ T8677] ret_from_fork+0x1f/0x30 [ 177.001297][ T8677] [ 177.004437][ T8677] Kernel Offset: disabled [ 177.008752][ T8677] Rebooting in 86400 seconds..