====================================================== WARNING: possible circular locking dependency detected 4.19.0-rc2+ #3 Not tainted ------------------------------------------------------ kswapd0/1175 is trying to acquire lock: 00000000c163adfa (jbd2_handle){++++}, at: start_this_handle+0x589/0x1260 fs/jbd2/transaction.c:383 but task is already holding lock: 00000000ca005ada (fs_reclaim){+.+.}, at: __page_frag_cache_refill mm/page_alloc.c:4476 [inline] 00000000ca005ada (fs_reclaim){+.+.}, at: __fs_reclaim_acquire+0x0/0x30 mm/page_alloc.c:4505 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (fs_reclaim){+.+.}: __fs_reclaim_acquire mm/page_alloc.c:3728 [inline] fs_reclaim_acquire.part.98+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] kmem_cache_alloc_trace+0x2d/0x730 mm/slab.c:3618 kmalloc include/linux/slab.h:513 [inline] kzalloc include/linux/slab.h:707 [inline] smk_fetch.part.24+0x5a/0xf0 security/smack/smack_lsm.c:273 smk_fetch security/smack/smack_lsm.c:3548 [inline] smack_d_instantiate+0x946/0xea0 security/smack/smack_lsm.c:3502 security_d_instantiate+0x5c/0xf0 security/security.c:1287 d_instantiate+0x5e/0xa0 fs/dcache.c:1870 shmem_mknod+0x189/0x1f0 mm/shmem.c:2812 vfs_mknod+0x447/0x800 fs/namei.c:3719 handle_create+0x1ff/0x7c0 drivers/base/devtmpfs.c:211 handle drivers/base/devtmpfs.c:374 [inline] devtmpfsd+0x27f/0x4c0 drivers/base/devtmpfs.c:400 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 -> #1 (&isp->smk_lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:925 [inline] __mutex_lock+0x171/0x1700 kernel/locking/mutex.c:1073 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:1088 smack_d_instantiate+0x130/0xea0 security/smack/smack_lsm.c:3369 security_d_instantiate+0x5c/0xf0 security/security.c:1287 d_instantiate_new+0x7e/0x160 fs/dcache.c:1889 ext4_add_nondir+0x81/0x90 fs/ext4/namei.c:2415 ext4_symlink+0x761/0x1170 fs/ext4/namei.c:3162 vfs_symlink+0x37a/0x5d0 fs/namei.c:4127 do_symlinkat+0x242/0x2d0 fs/namei.c:4154 __do_sys_symlink fs/namei.c:4173 [inline] __se_sys_symlink fs/namei.c:4171 [inline] __x64_sys_symlink+0x59/0x80 fs/namei.c:4171 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (jbd2_handle){++++}: lock_acquire+0x1e4/0x4f0 kernel/locking/lockdep.c:3901 start_this_handle+0x5c0/0x1260 fs/jbd2/transaction.c:385 jbd2__journal_start+0x3c9/0x9f0 fs/jbd2/transaction.c:439 __ext4_journal_start_sb+0x18d/0x590 fs/ext4/ext4_jbd2.c:81 __ext4_journal_start fs/ext4/ext4_jbd2.h:311 [inline] ext4_dirty_inode+0x62/0xc0 fs/ext4/inode.c:6021 __mark_inode_dirty+0x760/0x1300 fs/fs-writeback.c:2129 mark_inode_dirty_sync include/linux/fs.h:2072 [inline] iput+0x131/0xa00 fs/inode.c:1570 dentry_unlink_inode+0x461/0x5e0 fs/dcache.c:374 __dentry_kill+0x44c/0x7a0 fs/dcache.c:566 shrink_dentry_list+0x322/0x7c0 fs/dcache.c:1079 prune_dcache_sb+0x12f/0x1c0 fs/dcache.c:1171 super_cache_scan+0x270/0x480 fs/super.c:102 do_shrink_slab+0x4ba/0xbb0 mm/vmscan.c:536 shrink_slab_memcg mm/vmscan.c:601 [inline] shrink_slab+0x6fe/0x8c0 mm/vmscan.c:674 shrink_node+0x429/0x16a0 mm/vmscan.c:2735 kswapd_shrink_node mm/vmscan.c:3457 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3567 kswapd+0x82f/0x11e0 mm/vmscan.c:3789 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 other info that might help us debug this: Chain exists of: jbd2_handle --> &isp->smk_lock --> fs_reclaim Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(fs_reclaim); lock(&isp->smk_lock); lock(fs_reclaim); lock(jbd2_handle); *** DEADLOCK *** 3 locks held by kswapd0/1175: #0: 00000000ca005ada (fs_reclaim){+.+.}, at: __page_frag_cache_refill mm/page_alloc.c:4476 [inline] #0: 00000000ca005ada (fs_reclaim){+.+.}, at: __fs_reclaim_acquire+0x0/0x30 mm/page_alloc.c:4505 #1: 000000002914e83d (shrinker_rwsem){++++}, at: shrink_slab_memcg mm/vmscan.c:578 [inline] #1: 000000002914e83d (shrinker_rwsem){++++}, at: shrink_slab+0x1d1/0x8c0 mm/vmscan.c:674 #2: 0000000056670205 (&type->s_umount_key#28){++++}, at: trylock_super+0x22/0x110 fs/super.c:412 stack backtrace: CPU: 0 PID: 1175 Comm: kswapd0 Not tainted 4.19.0-rc2+ #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 print_circular_bug.isra.34.cold.55+0x1bd/0x27d kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1862 [inline] check_prevs_add kernel/locking/lockdep.c:1975 [inline] validate_chain kernel/locking/lockdep.c:2416 [inline] __lock_acquire+0x3449/0x5020 kernel/locking/lockdep.c:3412 lock_acquire+0x1e4/0x4f0 kernel/locking/lockdep.c:3901 start_this_handle+0x5c0/0x1260 fs/jbd2/transaction.c:385 jbd2__journal_start+0x3c9/0x9f0 fs/jbd2/transaction.c:439 __ext4_journal_start_sb+0x18d/0x590 fs/ext4/ext4_jbd2.c:81 __ext4_journal_start fs/ext4/ext4_jbd2.h:311 [inline] ext4_dirty_inode+0x62/0xc0 fs/ext4/inode.c:6021 __mark_inode_dirty+0x760/0x1300 fs/fs-writeback.c:2129 mark_inode_dirty_sync include/linux/fs.h:2072 [inline] iput+0x131/0xa00 fs/inode.c:1570 dentry_unlink_inode+0x461/0x5e0 fs/dcache.c:374 __dentry_kill+0x44c/0x7a0 fs/dcache.c:566 shrink_dentry_list+0x322/0x7c0 fs/dcache.c:1079 prune_dcache_sb+0x12f/0x1c0 fs/dcache.c:1171 super_cache_scan+0x270/0x480 fs/super.c:102 do_shrink_slab+0x4ba/0xbb0 mm/vmscan.c:536 shrink_slab_memcg mm/vmscan.c:601 [inline] shrink_slab+0x6fe/0x8c0 mm/vmscan.c:674 shrink_node+0x429/0x16a0 mm/vmscan.c:2735 kswapd_shrink_node mm/vmscan.c:3457 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3567 kswapd+0x82f/0x11e0 mm/vmscan.c:3789 kthread+0x35a/0x420 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413 overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value XFS (loop2): mtpt option not allowed on this system XFS (loop2): mtpt option not allowed on this system overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 5957 Comm: syz-executor1 Not tainted 4.19.0-rc2+ #3 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold.4+0xa/0x11 lib/fault-inject.c:149 __should_failslab+0x124/0x180 mm/failslab.c:32 should_failslab+0x9/0x14 mm/slab_common.c:1557 slab_pre_alloc_hook mm/slab.h:423 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b2/0x720 mm/slab.c:3727 kmalloc include/linux/slab.h:518 [inline] kzalloc include/linux/slab.h:707 [inline] bpf_test_init.isra.9+0x98/0x100 net/bpf/test_run.c:90 bpf_prog_test_run_skb+0x103/0xb40 net/bpf/test_run.c:113 bpf_prog_test_run+0x130/0x1a0 kernel/bpf/syscall.c:1753 __do_sys_bpf kernel/bpf/syscall.c:2390 [inline] __se_sys_bpf kernel/bpf/syscall.c:2334 [inline] __x64_sys_bpf+0x3d8/0x510 kernel/bpf/syscall.c:2334 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457099 Code: fd b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5485d58c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f5485d596d4 RCX: 0000000000457099 RDX: 0000000000000028 RSI: 0000000020000100 RDI: 000000000000000a RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00000000004cb8c0 R14: 00000000004c3289 R15: 0000000000000000 Process accounting resumed Process accounting resumed overlayfs: unrecognized mount option "etacopy=on\" or missing value overlayfs: unrecognized mount option "etacopy=on\" or missing value