# Pastebin yIDNlk0O [259199.642408] ====================================================== [259199.649616] WARNING: possible circular locking dependency detected [259199.656832] 5.14.0-rc3-debug+ #16 Tainted: G W [259199.663617] ------------------------------------------------------ [259199.670845] kswapd0/155 is trying to acquire lock: [259199.676658] ffffff80896029a0 (reservation_ww_class_mutex){+.+.}-{3:3}, at: msm_gem_lock.isra.0+0x14/0x20 [259199.687324] [259199.687324] but task is already holding lock: [259199.695127] ffffffdb176748c8 (fs_reclaim){+.+.}-{0:0}, at: __fs_reclaim_acquire+0xc/0x50 [259199.704379] [259199.704379] which lock already depends on the new lock. [259199.704379] [259199.715497] [259199.715497] the existing dependency chain (in reverse order) is: [259199.724909] [259199.724909] -> #1 (fs_reclaim){+.+.}-{0:0}: [259199.732487] __fs_reclaim_acquire+0x44/0x50 [259199.738204] fs_reclaim_acquire+0x44/0x94 [259199.743746] dma_resv_lockdep+0x1c8/0x2f0 [259199.749304] do_one_initcall+0x108/0x2b8 [259199.754769] kernel_init_freeable+0x360/0x368 [259199.760689] kernel_init+0x30/0x12c [259199.765719] ret_from_fork+0x10/0x18 [259199.770838] [259199.770838] -> #0 (reservation_ww_class_mutex){+.+.}-{3:3}: [259199.779891] __lock_acquire+0xd94/0x1064 [259199.785370] lock_acquire+0x288/0x2d8 [259199.790572] __ww_mutex_lock.constprop.0+0xe8/0x850 [259199.797023] ww_mutex_lock+0x7c/0xec [259199.802124] msm_gem_lock.isra.0+0x14/0x20 [259199.807734] msm_gem_free_object+0xac/0x1b8 [259199.813412] drm_gem_object_free+0x30/0x3c [259199.819001] scan+0x1bc/0x228 [259199.823429] msm_gem_shrinker_scan+0x48/0x228 [259199.829290] shrink_slab.constprop.0+0x258/0x46c [259199.835424] shrink_node+0x1f8/0x400 [259199.840487] balance_pgdat+0x204/0x488 [259199.845736] kswapd+0x330/0x410 [259199.850367] kthread+0x114/0x124 [259199.855085] ret_from_fork+0x10/0x18 [259199.860167] [259199.860167] other info that might help us debug this: [259199.860167] [259199.871000] Possible unsafe locking scenario: [259199.871000] [259199.878817] CPU0 CPU1 [259199.884337] ---- ---- [259199.889837] lock(fs_reclaim); [259199.893880] lock(reservation_ww_class_mutex); [259199.901925] lock(fs_reclaim); [259199.908510] lock(reservation_ww_class_mutex); [259199.913937] [259199.913937] *** DEADLOCK *** [259199.913937] [259199.922309] 2 locks held by kswapd0/155: [259199.927112] #0: ffffffdb176748c8 (fs_reclaim){+.+.}-{0:0}, at: __fs_reclaim_acquire+0xc/0x50 [259199.936669] #1: ffffffdb17667c70 (shrinker_rwsem){++++}-{3:3}, at: shrink_slab.constprop.0+0x50/0x46c [259199.947052] [259199.947052] stack backtrace: [259199.953163] CPU: 7 PID: 155 Comm: kswapd0 Tainted: G W 5.14.0-rc3-debug+ #16 [259199.962588] Hardware name: Google Lazor (rev1 - 2) with LTE (DT) [259199.969619] Call trace: [259199.972982] dump_backtrace+0x0/0x18c [259199.977585] show_stack+0x24/0x30 [259199.981835] dump_stack_lvl+0xa0/0xd4 [259199.986448] dump_stack+0x18/0x34 [259199.990687] print_circular_bug+0x1b4/0x1f0 [259199.995820] check_noncircular+0x78/0xac [259200.000684] __lock_acquire+0xd94/0x1064 [259200.005533] lock_acquire+0x288/0x2d8 [259200.010108] __ww_mutex_lock.constprop.0+0xe8/0x850 [259200.015934] ww_mutex_lock+0x7c/0xec [259200.020404] msm_gem_lock.isra.0+0x14/0x20 [259200.025405] msm_gem_free_object+0xac/0x1b8 [259200.030492] drm_gem_object_free+0x30/0x3c [259200.035478] scan+0x1bc/0x228 [259200.039294] msm_gem_shrinker_scan+0x48/0x228 [259200.044540] shrink_slab.constprop.0+0x258/0x46c [259200.050042] shrink_node+0x1f8/0x400 [259200.054480] balance_pgdat+0x204/0x488 [259200.059095] kswapd+0x330/0x410 [259200.063076] kthread+0x114/0x124 [259200.067142] ret_from_fork+0x10/0x18