[ 104.285163][ T74] [ 104.286187][ T74] ====================================================== [ 104.288826][ T74] WARNING: possible circular locking dependency detected [ 104.291503][ T74] 6.12.0-syzkaller-08446-g228a1157fb9f #0 Not tainted [ 104.294090][ T74] ------------------------------------------------------ [ 104.296778][ T74] kswapd0/74 is trying to acquire lock: [ 104.298935][ T74] ffff888034bf1438 (&q->q_usage_counter(io)#37){++++}-{0:0}, at: __submit_bio+0x2c6/0x560 [ 104.302713][ T74] [ 104.302713][ T74] but task is already holding lock: [ 104.305311][ T74] ffffffff8ea3eb40 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 104.308389][ T74] [ 104.308389][ T74] which lock already depends on the new lock. [ 104.308389][ T74] [ 104.312198][ T74] [ 104.312198][ T74] the existing dependency chain (in reverse order) is: [ 104.315574][ T74] [ 104.315574][ T74] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 104.318367][ T74] lock_acquire+0x1ed/0x550 [ 104.320279][ T74] fs_reclaim_acquire+0x88/0x130 [ 104.322369][ T74] __kmalloc_node_noprof+0xb0/0x440 [ 104.324548][ T74] __kvmalloc_node_noprof+0x72/0x190 [ 104.326817][ T74] sbitmap_init_node+0x2d4/0x670 [ 104.328972][ T74] scsi_realloc_sdev_budget_map+0x2a7/0x460 [ 104.331405][ T74] scsi_probe_and_add_lun+0x3173/0x4bd0 [ 104.333744][ T74] __scsi_add_device+0x228/0x2f0 [ 104.335864][ T74] ata_scsi_scan_host+0x236/0x740 [ 104.337960][ T74] async_run_entry_fn+0xa8/0x420 [ 104.340016][ T74] process_scheduled_works+0xa63/0x1850 [ 104.342362][ T74] worker_thread+0x870/0xd30 [ 104.344382][ T74] kthread+0x2f0/0x390 [ 104.346174][ T74] ret_from_fork+0x4b/0x80 [ 104.348077][ T74] ret_from_fork_asm+0x1a/0x30 [ 104.350074][ T74] [ 104.350074][ T74] -> #0 (&q->q_usage_counter(io)#37){++++}-{0:0}: [ 104.353312][ T74] validate_chain+0x18ef/0x5920 [ 104.355435][ T74] __lock_acquire+0x1397/0x2100 [ 104.357535][ T74] lock_acquire+0x1ed/0x550 [ 104.359458][ T74] blk_mq_submit_bio+0x1536/0x23a0 [ 104.361609][ T74] __submit_bio+0x2c6/0x560 [ 104.363489][ T74] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 104.365893][ T74] __swap_writepage+0x5fc/0x1400 [ 104.367894][ T74] swap_writepage+0x85d/0xfa0 [ 104.369866][ T74] shrink_folio_list+0x3c0e/0x8cc0 [ 104.371960][ T74] evict_folios+0x549b/0x7b50 [ 104.373949][ T74] try_to_shrink_lruvec+0x9ab/0xbb0 [ 104.376114][ T74] shrink_one+0x3b9/0x850 [ 104.377983][ T74] shrink_node+0x3789/0x3e10 [ 104.379933][ T74] kswapd+0x1ca9/0x3700 [ 104.381722][ T74] kthread+0x2f0/0x390 [ 104.383495][ T74] ret_from_fork+0x4b/0x80 [ 104.385287][ T74] ret_from_fork_asm+0x1a/0x30 [ 104.387266][ T74] [ 104.387266][ T74] other info that might help us debug this: [ 104.387266][ T74] [ 104.391197][ T74] Possible unsafe locking scenario: [ 104.391197][ T74] [ 104.394039][ T74] CPU0 CPU1 [ 104.396115][ T74] ---- ---- [ 104.398153][ T74] lock(fs_reclaim); [ 104.399655][ T74] lock(&q->q_usage_counter(io)#37); [ 104.402641][ T74] lock(fs_reclaim); [ 104.405093][ T74] rlock(&q->q_usage_counter(io)#37); [ 104.407222][ T74] [ 104.407222][ T74] *** DEADLOCK *** [ 104.407222][ T74] [ 104.410254][ T74] 1 lock held by kswapd0/74: [ 104.412006][ T74] #0: ffffffff8ea3eb40 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x3700 [ 104.415297][ T74] [ 104.415297][ T74] stack backtrace: [ 104.417608][ T74] CPU: 0 UID: 0 PID: 74 Comm: kswapd0 Not tainted 6.12.0-syzkaller-08446-g228a1157fb9f #0 [ 104.421334][ T74] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 104.425360][ T74] Call Trace: [ 104.426965][ T74] [ 104.428097][ T74] dump_stack_lvl+0x241/0x360 [ 104.429999][ T74] ? __pfx_dump_stack_lvl+0x10/0x10 [ 104.431951][ T74] ? __pfx__printk+0x10/0x10 [ 104.433665][ T74] print_circular_bug+0x13a/0x1b0 [ 104.435581][ T74] check_noncircular+0x36a/0x4a0 [ 104.437453][ T74] ? preempt_count_add+0x93/0x190 [ 104.439316][ T74] ? __pfx_check_noncircular+0x10/0x10 [ 104.441647][ T74] ? lockdep_lock+0x123/0x2b0 [ 104.443367][ T74] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 104.445688][ T74] ? arch_stack_walk+0x11c/0x150 [ 104.447585][ T74] validate_chain+0x18ef/0x5920 [ 104.449596][ T74] ? ret_from_fork_asm+0x1a/0x30 [ 104.451681][ T74] ? check_noncircular+0x259/0x4a0 [ 104.453631][ T74] ? __pfx_validate_chain+0x10/0x10 [ 104.455487][ T74] ? lockdep_unlock+0x16a/0x300 [ 104.457314][ T74] ? validate_chain+0x11e/0x5920 [ 104.459211][ T74] ? add_lock_to_list+0x1e8/0x2f0 [ 104.461169][ T74] ? __pfx_validate_chain+0x10/0x10 [ 104.463291][ T74] ? mark_lock+0x9a/0x360 [ 104.465234][ T74] __lock_acquire+0x1397/0x2100 [ 104.467230][ T74] lock_acquire+0x1ed/0x550 [ 104.469094][ T74] ? __submit_bio+0x2c6/0x560 [ 104.471234][ T74] ? __pfx_lock_acquire+0x10/0x10 [ 104.473561][ T74] ? blk_mq_submit_bio+0x482/0x23a0 [ 104.476092][ T74] ? __pfx_lock_release+0x10/0x10 [ 104.478040][ T74] ? __submit_bio+0x2c6/0x560 [ 104.479805][ T74] blk_mq_submit_bio+0x1536/0x23a0 [ 104.481681][ T74] ? __submit_bio+0x2c6/0x560 [ 104.483484][ T74] ? __pfx_blk_mq_submit_bio+0x10/0x10 [ 104.485537][ T74] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 104.487819][ T74] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 104.490297][ T74] __submit_bio+0x2c6/0x560 [ 104.492049][ T74] ? __pfx___submit_bio+0x10/0x10 [ 104.493964][ T74] ? __pfx_lock_release+0x10/0x10 [ 104.496049][ T74] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 104.498229][ T74] ? __pfx___might_resched+0x10/0x10 [ 104.500321][ T74] ? __pfx_submit_bio_noacct_nocheck+0x10/0x10 [ 104.502715][ T74] ? __pfx___folio_start_writeback+0x10/0x10 [ 104.505030][ T74] __swap_writepage+0x5fc/0x1400 [ 104.506831][ T74] ? __pfx___swap_writepage+0x10/0x10 [ 104.508787][ T74] ? kmem_cache_free+0x1a2/0x420 [ 104.510654][ T74] ? zswap_store+0x1208/0x1a00 [ 104.512513][ T74] ? zswap_store+0x1271/0x1a00 [ 104.514305][ T74] ? __pfx_zswap_store+0x10/0x10 [ 104.516489][ T74] ? _raw_spin_unlock+0x28/0x50 [ 104.518294][ T74] ? folio_free_swap+0x2eb/0x610 [ 104.520180][ T74] ? zswap_is_enabled+0x1d/0x30 [ 104.522074][ T74] swap_writepage+0x85d/0xfa0 [ 104.523816][ T74] shrink_folio_list+0x3c0e/0x8cc0 [ 104.525791][ T74] ? __pfx_shrink_folio_list+0x10/0x10 [ 104.527820][ T74] ? validate_chain+0x11e/0x5920 [ 104.529656][ T74] ? __pfx_validate_chain+0x10/0x10 [ 104.531583][ T74] ? memcg_rstat_updated+0x7b/0x2f0 [ 104.533529][ T74] ? __mod_memcg_lruvec_state+0x2b0/0x3b0 [ 104.535678][ T74] ? mark_lock+0x9a/0x360 [ 104.537457][ T74] ? _raw_spin_unlock_irq+0x23/0x50 [ 104.539497][ T74] ? lockdep_hardirqs_on+0x99/0x150 [ 104.541498][ T74] evict_folios+0x549b/0x7b50 [ 104.543286][ T74] ? __pfx_evict_folios+0x10/0x10 [ 104.545274][ T74] ? mem_cgroup_get_nr_swap_pages+0x28/0x110 [ 104.547602][ T74] ? get_swappiness+0x380/0x3e0 [ 104.549483][ T74] try_to_shrink_lruvec+0x9ab/0xbb0 [ 104.551498][ T74] ? __pfx_try_to_shrink_lruvec+0x10/0x10 [ 104.553677][ T74] ? shrink_node+0x3537/0x3e10 [ 104.555520][ T74] ? __pfx_lock_release+0x10/0x10 [ 104.557440][ T74] shrink_one+0x3b9/0x850 [ 104.559064][ T74] ? shrink_node+0x3537/0x3e10 [ 104.560890][ T74] shrink_node+0x3789/0x3e10 [ 104.562682][ T74] ? shrink_node+0x3537/0x3e10 [ 104.564557][ T74] ? __pfx_lock_acquire+0x10/0x10 [ 104.566523][ T74] ? percpu_ref_put+0x19/0x180 [ 104.568340][ T74] ? __pfx_lock_release+0x10/0x10 [ 104.570341][ T74] ? __pfx_shrink_node+0x10/0x10 [ 104.572260][ T74] ? mem_cgroup_iter+0x3d/0x420 [ 104.574172][ T74] kswapd+0x1ca9/0x3700 [ 104.575835][ T74] ? kswapd+0xbf1/0x3700 [ 104.577487][ T74] ? __pfx_kswapd+0x10/0x10 [ 104.579191][ T74] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 104.581526][ T74] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 104.583999][ T74] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 104.586493][ T74] ? __pfx_autoremove_wake_function+0x10/0x10 [ 104.588895][ T74] ? __kthread_parkme+0x169/0x1d0 [ 104.590927][ T74] ? __pfx_kswapd+0x10/0x10 [ 104.592703][ T74] kthread+0x2f0/0x390 [ 104.594318][ T74] ? __pfx_kswapd+0x10/0x10 [ 104.596143][ T74] ? __pfx_kthread+0x10/0x10 [ 104.597944][ T74] ret_from_fork+0x4b/0x80 [ 104.599632][ T74] ? __pfx_kthread+0x10/0x10 [ 104.601411][ T74] ret_from_fork_asm+0x1a/0x30 [ 104.603496][ T74] Warning: Permanently added '[localhost]:9162' (ED25519) to the list of known hosts. 2024/11/23 17:01:00 ignoring optional flag "sandboxArg"="0" 2024/11/23 17:01:01 parsed 1 programs [ 119.684807][ T5591] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k