[ 99.984929][ T75] [ 99.985982][ T75] ====================================================== [ 99.988729][ T75] WARNING: possible circular locking dependency detected [ 99.991394][ T75] 6.13.0-rc1-syzkaller-dirty #0 Not tainted [ 99.993723][ T75] ------------------------------------------------------ [ 99.996470][ T75] kswapd0/75 is trying to acquire lock: [ 99.998606][ T75] ffff888034c41438 (&q->q_usage_counter(io)#37){++++}-{0:0}, at: __submit_bio+0x2c6/0x560 [ 100.004154][ T75] [ 100.004154][ T75] but task is already holding lock: [ 100.006954][ T75] ffffffff8ea35b00 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x36f0 [ 100.009951][ T75] [ 100.009951][ T75] which lock already depends on the new lock. [ 100.009951][ T75] [ 100.013862][ T75] [ 100.013862][ T75] the existing dependency chain (in reverse order) is: [ 100.017371][ T75] [ 100.017371][ T75] -> #1 (fs_reclaim){+.+.}-{0:0}: [ 100.020216][ T75] lock_acquire+0x1ed/0x550 [ 100.022123][ T75] fs_reclaim_acquire+0x88/0x130 [ 100.024275][ T75] __kmalloc_node_noprof+0xb2/0x4d0 [ 100.026621][ T75] __kvmalloc_node_noprof+0x72/0x190 [ 100.028908][ T75] sbitmap_init_node+0x2d4/0x670 [ 100.031122][ T75] scsi_realloc_sdev_budget_map+0x2a7/0x460 [ 100.033620][ T75] scsi_probe_and_add_lun+0x3173/0x4bd0 [ 100.036082][ T75] __scsi_add_device+0x228/0x2f0 [ 100.038195][ T75] ata_scsi_scan_host+0x236/0x740 [ 100.040383][ T75] async_run_entry_fn+0xa8/0x420 [ 100.042490][ T75] process_scheduled_works+0xa66/0x1840 [ 100.045041][ T75] worker_thread+0x870/0xd30 [ 100.046956][ T75] kthread+0x2f0/0x390 [ 100.048499][ T75] ret_from_fork+0x4b/0x80 [ 100.050323][ T75] ret_from_fork_asm+0x1a/0x30 [ 100.052433][ T75] [ 100.052433][ T75] -> #0 (&q->q_usage_counter(io)#37){++++}-{0:0}: [ 100.055793][ T75] validate_chain+0x18ef/0x5920 [ 100.057772][ T75] __lock_acquire+0x1397/0x2100 [ 100.059834][ T75] lock_acquire+0x1ed/0x550 [ 100.061708][ T75] blk_mq_submit_bio+0x1536/0x2390 [ 100.063826][ T75] __submit_bio+0x2c6/0x560 [ 100.065705][ T75] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 100.068059][ T75] __swap_writepage+0x5fc/0x1400 [ 100.070145][ T75] swap_writepage+0x8f4/0x1170 [ 100.072209][ T75] shrink_folio_list+0x3c0e/0x8cb0 [ 100.074336][ T75] evict_folios+0x5568/0x7be0 [ 100.076316][ T75] try_to_shrink_lruvec+0x9a6/0xc70 [ 100.078445][ T75] shrink_one+0x3b9/0x850 [ 100.080305][ T75] shrink_node+0x37c5/0x3e50 [ 100.082513][ T75] kswapd+0x1ca9/0x36f0 [ 100.084353][ T75] kthread+0x2f0/0x390 [ 100.086144][ T75] ret_from_fork+0x4b/0x80 [ 100.088107][ T75] ret_from_fork_asm+0x1a/0x30 [ 100.090190][ T75] [ 100.090190][ T75] other info that might help us debug this: [ 100.090190][ T75] [ 100.094035][ T75] Possible unsafe locking scenario: [ 100.094035][ T75] [ 100.096710][ T75] CPU0 CPU1 [ 100.098695][ T75] ---- ---- [ 100.100605][ T75] lock(fs_reclaim); [ 100.102079][ T75] lock(&q->q_usage_counter(io)#37); [ 100.104943][ T75] lock(fs_reclaim); [ 100.107370][ T75] rlock(&q->q_usage_counter(io)#37); [ 100.109412][ T75] [ 100.109412][ T75] *** DEADLOCK *** [ 100.109412][ T75] [ 100.112332][ T75] 1 lock held by kswapd0/75: [ 100.114144][ T75] #0: ffffffff8ea35b00 (fs_reclaim){+.+.}-{0:0}, at: kswapd+0xbf1/0x36f0 [ 100.117414][ T75] [ 100.117414][ T75] stack backtrace: [ 100.119702][ T75] CPU: 0 UID: 0 PID: 75 Comm: kswapd0 Not tainted 6.13.0-rc1-syzkaller-dirty #0 [ 100.123105][ T75] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 100.127187][ T75] Call Trace: [ 100.128446][ T75] [ 100.129602][ T75] dump_stack_lvl+0x241/0x360 [ 100.131446][ T75] ? __pfx_dump_stack_lvl+0x10/0x10 [ 100.133464][ T75] ? __pfx__printk+0x10/0x10 [ 100.135274][ T75] print_circular_bug+0x13a/0x1b0 [ 100.137259][ T75] check_noncircular+0x36a/0x4a0 [ 100.139188][ T75] ? __pfx_check_noncircular+0x10/0x10 [ 100.141308][ T75] ? lockdep_lock+0x123/0x2b0 [ 100.143187][ T75] ? __pfx_validate_chain+0x10/0x10 [ 100.145216][ T75] ? validate_chain+0x11e/0x5920 [ 100.147147][ T75] validate_chain+0x18ef/0x5920 [ 100.148988][ T75] ? validate_chain+0x11e/0x5920 [ 100.150873][ T75] ? __pfx_validate_chain+0x10/0x10 [ 100.152684][ T75] ? ret_from_fork+0x4b/0x80 [ 100.154324][ T75] ? validate_chain+0x11e/0x5920 [ 100.156270][ T75] ? __lock_acquire+0x1397/0x2100 [ 100.158157][ T75] ? __pfx_validate_chain+0x10/0x10 [ 100.160080][ T75] ? mark_lock+0x9a/0x360 [ 100.161623][ T75] __lock_acquire+0x1397/0x2100 [ 100.163387][ T75] lock_acquire+0x1ed/0x550 [ 100.165040][ T75] ? __submit_bio+0x2c6/0x560 [ 100.166731][ T75] ? __pfx_lock_acquire+0x10/0x10 [ 100.168571][ T75] ? blk_mq_submit_bio+0x482/0x2390 [ 100.170469][ T75] ? __pfx_lock_release+0x10/0x10 [ 100.172329][ T75] ? __submit_bio+0x2c6/0x560 [ 100.174125][ T75] blk_mq_submit_bio+0x1536/0x2390 [ 100.176102][ T75] ? __submit_bio+0x2c6/0x560 [ 100.177970][ T75] ? __pfx_blk_mq_submit_bio+0x10/0x10 [ 100.180140][ T75] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 100.182518][ T75] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 100.184975][ T75] __submit_bio+0x2c6/0x560 [ 100.186813][ T75] ? __pfx___submit_bio+0x10/0x10 [ 100.188841][ T75] ? mark_lock+0x9a/0x360 [ 100.190573][ T75] submit_bio_noacct_nocheck+0x4d3/0xe30 [ 100.192719][ T75] ? __folio_start_writeback+0x8d3/0x1040 [ 100.194863][ T75] ? __pfx___might_resched+0x10/0x10 [ 100.196829][ T75] ? __pfx_submit_bio_noacct_nocheck+0x10/0x10 [ 100.199075][ T75] ? __pfx___folio_start_writeback+0x10/0x10 [ 100.201170][ T75] ? count_swpout_vm_event+0x4f8/0x9b0 [ 100.203228][ T75] __swap_writepage+0x5fc/0x1400 [ 100.205099][ T75] ? __pfx___swap_writepage+0x10/0x10 [ 100.207110][ T75] ? zswap_store+0x1ae9/0x2080 [ 100.208907][ T75] ? zswap_store+0x5b4/0x2080 [ 100.210921][ T75] ? __pfx_zswap_store+0x10/0x10 [ 100.212791][ T75] ? _raw_spin_unlock+0x28/0x50 [ 100.214676][ T75] ? folio_free_swap+0x2eb/0x610 [ 100.216568][ T75] ? zswap_is_enabled+0x1d/0x30 [ 100.218652][ T75] swap_writepage+0x8f4/0x1170 [ 100.220731][ T75] shrink_folio_list+0x3c0e/0x8cb0 [ 100.222762][ T75] ? __pfx_shrink_folio_list+0x10/0x10 [ 100.224943][ T75] ? mark_lock+0x9a/0x360 [ 100.226753][ T75] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 100.229091][ T75] ? rcu_is_watching+0x15/0xb0 [ 100.230994][ T75] ? preempt_schedule_common+0x84/0xd0 [ 100.232965][ T75] ? preempt_schedule+0xe1/0xf0 [ 100.234710][ T75] ? preempt_schedule_thunk+0x1a/0x30 [ 100.236585][ T75] evict_folios+0x5568/0x7be0 [ 100.238333][ T75] ? mark_lock+0x9a/0x360 [ 100.239980][ T75] ? __pfx_evict_folios+0x10/0x10 [ 100.241966][ T75] ? mark_lock+0x9a/0x360 [ 100.243712][ T75] ? mem_cgroup_get_nr_swap_pages+0x28/0x110 [ 100.245967][ T75] ? get_swappiness+0x380/0x3e0 [ 100.247887][ T75] try_to_shrink_lruvec+0x9a6/0xc70 [ 100.249899][ T75] ? __pfx_try_to_shrink_lruvec+0x10/0x10 [ 100.252062][ T75] ? shrink_node+0x3573/0x3e50 [ 100.253929][ T75] ? __pfx_lock_release+0x10/0x10 [ 100.255766][ T75] shrink_one+0x3b9/0x850 [ 100.257260][ T75] ? shrink_node+0x3573/0x3e50 [ 100.259051][ T75] shrink_node+0x37c5/0x3e50 [ 100.260735][ T75] ? shrink_node+0x3573/0x3e50 [ 100.262522][ T75] ? __pfx_lock_acquire+0x10/0x10 [ 100.264466][ T75] ? percpu_ref_put+0x19/0x180 [ 100.266307][ T75] ? __pfx_lock_release+0x10/0x10 [ 100.268216][ T75] ? __pfx_shrink_node+0x10/0x10 [ 100.270127][ T75] ? mem_cgroup_iter+0x3d/0x420 [ 100.271931][ T75] kswapd+0x1ca9/0x36f0 [ 100.273468][ T75] ? kswapd+0xbf1/0x36f0 [ 100.275031][ T75] ? __pfx_kswapd+0x10/0x10 [ 100.276685][ T75] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 100.278929][ T75] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 100.281324][ T75] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 100.283713][ T75] ? __pfx_autoremove_wake_function+0x10/0x10 [ 100.285898][ T75] ? __kthread_parkme+0x169/0x1d0 [ 100.287710][ T75] ? __pfx_kswapd+0x10/0x10 [ 100.289384][ T75] kthread+0x2f0/0x390 [ 100.290973][ T75] ? __pfx_kswapd+0x10/0x10 [ 100.292736][ T75] ? __pfx_kthread+0x10/0x10 [ 100.294659][ T75] ret_from_fork+0x4b/0x80 [ 100.296730][ T75] ? __pfx_kthread+0x10/0x10 [ 100.299025][ T75] ret_from_fork_asm+0x1a/0x30 [ 100.301015][ T75] Warning: Permanently added '[localhost]:17296' (ED25519) to the list of known hosts. 2024/12/04 14:32:09 ignoring optional flag "sandboxArg"="0" 2024/12/04 14:32:10 parsed 1 programs [ 118.240353][ T5644] Adding 124996k swap on ./swap-file. Priority:0 extents:1 across:124996k