[ 99.269133][ T73] [ 99.270108][ T73] ====================================================== [ 99.272652][ T73] WARNING: possible circular locking dependency detected [ 99.275278][ T73] 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 Not tainted [ 99.277994][ T73] ------------------------------------------------------ [ 99.280708][ T73] kswapd0/73 is trying to acquire lock: [ 99.282917][ T73] ffff88801ef49438 (&q->q_usage_counter(io)#37){++++}-{0:0}, at: __submit_bio+0x2c6/0x560 [ 99.286888][ T73] [ 99.286888][ T73] but task is already holding lock: [ 99.289735][ T73] ffffffff8ea35b60 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x36f0 [ 99.292948][ T73] [ 99.292948][ T73] which lock already depends on the new lock. [ 99.292948][ T73] [ 99.298029][ T73] [ 99.298029][ T73] the existing dependency chain (in reverse order) is: [ 99.301978][ T73] [ 99.301978][ T73] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 99.305213][ T73] lock_acquire+0x1ed/0x550 [ 99.307499][ T73] fs_reclaim_acquire+0x88/0x130 [ 99.309993][ T73] __kmalloc_node_noprof+0xb2/0x4d0 [ 99.312819][ T73] __kvmalloc_node_noprof+0x72/0x190 [ 99.315708][ T73] sbitmap_init_node+0x2d4/0x670 [ 99.318174][ T73] scsi_realloc_sdev_budget_map+0x2a7/0x460 [ 99.320614][ T73] scsi_probe_and_add_lun+0x3173/0x4bd0 [ 99.322941][ T73] __scsi_add_device+0x228/0x2f0 [ 99.325006][ T73] ata_scsi_scan_host+0x236/0x740 [ 99.327139][ T73] async_run_entry_fn+0xa8/0x420 [ 99.329220][ T73] process_scheduled_works+0xa66/0x1840 [ 99.331554][ T73] worker_thread+0x870/0xd30 [ 99.333567][ T73] kthread+0x2f0/0x390 [ 99.335354][ T73] ret_from_fork+0x4b/0x80 [ 99.337275][ T73] ret_from_fork_asm+0x1a/0x30 [ 99.339344][ T73] [ 99.339344][ T73] -> #0 (&q->q_usage_counter(io)#37){++++}-{0:0}: [ 99.342652][ T73] validate_chain+0x18ef/0x5920 [ 99.344665][ T73] __lock_acquire+0x1397/0x2100 [ 99.346746][ T73] lock_acquire+0x1ed/0x550 [ 99.348696][ T73] blk_mq_submit_bio+0x1536/0x2390 [ 99.350847][ T73] __submit_bio+0x2c6/0x560 [ 99.352814][ T73] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 99.355279][ T73] __swap_writepage+0x5fc/0x1400 [ 99.357346][ T73] swap_writepage+0x8f4/0x1170 [ 99.359382][ T73] shrink_folio_list+0x3c0e/0x8cb0 [ 99.361535][ T73] evict_folios+0x5568/0x7be0 [ 99.363462][ T73] try_to_shrink_lruvec+0x9a6/0xc70 [ 99.365622][ T73] shrink_one+0x3b9/0x850 [ 99.367496][ T73] shrink_node+0x37c5/0x3e50 [ 99.369420][ T73] kswapd+0x1ca9/0x36f0 [ 99.371259][ T73] kthread+0x2f0/0x390 [ 99.373060][ T73] ret_from_fork+0x4b/0x80 [ 99.374983][ T73] ret_from_fork_asm+0x1a/0x30 [ 99.377053][ T73] [ 99.377053][ T73] other info that might help us debug this: [ 99.377053][ T73] [ 99.380859][ T73] Possible unsafe locking scenario: [ 99.380859][ T73] [ 99.383725][ T73] CPU0 CPU1 [ 99.385848][ T73] ---- ---- [ 99.387914][ T73] lock(fs_reclaim); [ 99.389461][ T73] lock(&q->q_usage_counter(io)#37); [ 99.392554][ T73] lock(fs_reclaim); [ 99.395014][ T73] rlock(&q->q_usage_counter(io)#37); [ 99.396807][ T73] [ 99.396807][ T73] *** DEADLOCK *** [ 99.396807][ T73] [ 99.399739][ T73] 1 lock held by kswapd0/73: [ 99.401546][ T73] #0: ffffffff8ea35b60 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x36f0 [ 99.404428][ T73] [ 99.404428][ T73] stack backtrace: [ 99.406620][ T73] CPU: 0 UID: 0 PID: 73 Comm: kswapd0 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 [ 99.410310][ T73] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 99.414114][ T73] Call Trace: [ 99.415751][ T73] [ 99.416956][ T73] dump_stack_lvl+0x241/0x360 [ 99.418824][ T73] ? __pfx_dump_stack_lvl+0x10/0x10 [ 99.420702][ T73] ? __pfx__printk+0x10/0x10 [ 99.422421][ T73] print_circular_bug+0x13a/0x1b0 [ 99.424265][ T73] check_noncircular+0x36a/0x4a0 [ 99.425894][ T73] ? __pfx_check_noncircular+0x10/0x10 [ 99.427562][ T73] ? lockdep_lock+0x123/0x2b0 [ 99.429097][ T73] ? __pfx_validate_chain+0x10/0x10 [ 99.430812][ T73] ? validate_chain+0x11e/0x5920 [ 99.432460][ T73] validate_chain+0x18ef/0x5920 [ 99.434377][ T73] ? mark_lock+0x9a/0x360 [ 99.436005][ T73] ? validate_chain+0x11e/0x5920 [ 99.437882][ T73] ? __pfx_validate_chain+0x10/0x10 [ 99.439823][ T73] ? validate_chain+0x11e/0x5920 [ 99.441824][ T73] ? __lock_acquire+0x1397/0x2100 [ 99.443805][ T73] ? __pfx_validate_chain+0x10/0x10 [ 99.445704][ T73] ? mark_lock+0x9a/0x360 [ 99.447224][ T73] __lock_acquire+0x1397/0x2100 [ 99.449054][ T73] lock_acquire+0x1ed/0x550 [ 99.450841][ T73] ? __submit_bio+0x2c6/0x560 [ 99.452663][ T73] ? __pfx_lock_acquire+0x10/0x10 [ 99.454560][ T73] ? blk_mq_submit_bio+0x482/0x2390 [ 99.456422][ T73] ? __pfx_lock_release+0x10/0x10 [ 99.458368][ T73] ? __submit_bio+0x2c6/0x560 [ 99.460198][ T73] blk_mq_submit_bio+0x1536/0x2390 [ 99.462162][ T73] ? __submit_bio+0x2c6/0x560 [ 99.464012][ T73] ? __pfx_blk_mq_submit_bio+0x10/0x10 [ 99.466110][ T73] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 99.468374][ T73] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 99.470832][ T73] __submit_bio+0x2c6/0x560 [ 99.472617][ T73] ? __pfx___submit_bio+0x10/0x10 [ 99.474591][ T73] ? mark_lock+0x9a/0x360 [ 99.476268][ T73] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 99.478431][ T73] ? __folio_start_writeback+0x8d3/0x1040 [ 99.480592][ T73] ? __pfx___might_resched+0x10/0x10 [ 99.482708][ T73] ? __pfx_submit_bio_noacct_nocheck+0x10/0x10 [ 99.484638][ T73] ? __pfx___folio_start_writeback+0x10/0x10 [ 99.486459][ T73] ? count_swpout_vm_event+0x4f8/0x9b0 [ 99.488080][ T73] __swap_writepage+0x5fc/0x1400 [ 99.489589][ T73] ? __pfx___swap_writepage+0x10/0x10 [ 99.491098][ T73] ? zswap_store+0x1ae9/0x2080 [ 99.492514][ T73] ? zswap_store+0x5b4/0x2080 [ 99.494405][ T73] ? __pfx_zswap_store+0x10/0x10 [ 99.496364][ T73] ? _raw_spin_unlock+0x28/0x50 [ 99.498336][ T73] ? folio_free_swap+0x2eb/0x610 [ 99.500264][ T73] ? zswap_is_enabled+0x1d/0x30 [ 99.502147][ T73] swap_writepage+0x8f4/0x1170 [ 99.504016][ T73] shrink_folio_list+0x3c0e/0x8cb0 [ 99.505972][ T73] ? __pfx_shrink_folio_list+0x10/0x10 [ 99.508241][ T73] ? do_raw_spin_unlock+0x58/0x8b0 [ 99.510246][ T73] ? __pfx_validate_chain+0x10/0x10 [ 99.512205][ T73] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 99.514529][ T73] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 99.516925][ T73] ? rcu_is_watching+0x15/0xb0 [ 99.518681][ T73] ? __mod_memcg_lruvec_state+0x2f7/0x4d0 [ 99.520728][ T73] ? mark_lock+0x9a/0x360 [ 99.522337][ T73] ? _raw_spin_unlock_irq+0x23/0x50 [ 99.524261][ T73] ? lockdep_hardirqs_on+0x99/0x150 [ 99.526216][ T73] evict_folios+0x5568/0x7be0 [ 99.528029][ T73] ? __pfx_evict_folios+0x10/0x10 [ 99.529935][ T73] ? mark_lock+0x9a/0x360 [ 99.531588][ T73] ? mem_cgroup_get_nr_swap_pages+0x28/0x110 [ 99.535373][ T73] ? get_swappiness+0x380/0x3e0 [ 99.537288][ T73] try_to_shrink_lruvec+0x9a6/0xc70 [ 99.539385][ T73] ? __pfx_try_to_shrink_lruvec+0x10/0x10 [ 99.541357][ T73] ? shrink_node+0x3573/0x3e50 [ 99.543067][ T73] ? __pfx_lock_release+0x10/0x10 [ 99.544930][ T73] shrink_one+0x3b9/0x850 [ 99.546534][ T73] ? shrink_node+0x3573/0x3e50 [ 99.548420][ T73] shrink_node+0x37c5/0x3e50 [ 99.550343][ T73] ? shrink_node+0x3573/0x3e50 [ 99.552106][ T73] ? __pfx_lock_acquire+0x10/0x10 [ 99.554058][ T73] ? percpu_ref_put+0x19/0x180 [ 99.555892][ T73] ? __pfx_lock_release+0x10/0x10 [ 99.557808][ T73] ? __pfx_shrink_node+0x10/0x10 [ 99.559687][ T73] ? mem_cgroup_iter+0x3d/0x420 [ 99.561529][ T73] kswapd+0x1ca9/0x36f0 [ 99.563192][ T73] ? kswapd+0xbf1/0x36f0 [ 99.564845][ T73] ? __pfx_kswapd+0x10/0x10 [ 99.566582][ T73] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 99.568856][ T73] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 99.571307][ T73] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 99.573752][ T73] ? __pfx_autoremove_wake_function+0x10/0x10 [ 99.576027][ T73] ? __kthread_parkme+0x169/0x1d0 [ 99.577962][ T73] ? __pfx_kswapd+0x10/0x10 [ 99.579676][ T73] kthread+0x2f0/0x390 [ 99.581267][ T73] ? __pfx_kswapd+0x10/0x10 [ 99.583021][ T73] ? __pfx_kthread+0x10/0x10 [ 99.584780][ T73] ret_from_fork+0x4b/0x80 [ 99.586579][ T73] ? __pfx_kthread+0x10/0x10 [ 99.588372][ T73] ret_from_fork_asm+0x1a/0x30 [ 99.590246][ T73] Warning: Permanently added '[localhost]:22984' (ED25519) to the list of known hosts. 2024/12/07 08:05:17 ignoring optional flag "sandboxArg"="0" 2024/12/07 08:05:19 parsed 1 programs [ 116.940255][ T5712] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k