audit: type=1800 audit(1673308019.915:76): pid=16253 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed comm="syz-executor.0" name="SYSV00000000" dev="hugetlbfs" ino=131074 res=0 overlayfs: fs on './file0' does not support file handles, falling back to index=off,nfs_export=off. NILFS (loop5): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds ====================================================== WARNING: possible circular locking dependency detected 4.19.211-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.5/16245 is trying to acquire lock: 000000003d20fcd3 (&dat_lock_key){.+.+}, at: nilfs_count_free_blocks+0x68/0x180 fs/nilfs2/the_nilfs.c:698 but task is already holding lock: 00000000ee93a35f (&nilfs->ns_sem){++++}, at: nilfs_put_super+0x14a/0x1a0 fs/nilfs2/super.c:472 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&nilfs->ns_sem){++++}: nilfs_set_error fs/nilfs2/super.c:86 [inline] __nilfs_error+0x195/0x401 fs/nilfs2/super.c:131 nilfs_ifile_get_inode_block+0x12a/0x170 fs/nilfs2/ifile.c:139 __nilfs_read_inode fs/nilfs2/inode.c:483 [inline] nilfs_iget+0x204/0x860 fs/nilfs2/inode.c:592 nilfs_lookup fs/nilfs2/namei.c:63 [inline] nilfs_lookup+0xfd/0x130 fs/nilfs2/namei.c:54 lookup_open+0x698/0x1a20 fs/namei.c:3214 do_last fs/namei.c:3327 [inline] path_openat+0x1804/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe -> #0 (&dat_lock_key){.+.+}: down_read+0x36/0x80 kernel/locking/rwsem.c:24 nilfs_count_free_blocks+0x68/0x180 fs/nilfs2/the_nilfs.c:698 nilfs_set_log_cursor fs/nilfs2/super.c:237 [inline] nilfs_cleanup_super+0x133/0x490 fs/nilfs2/super.c:319 nilfs_put_super+0x152/0x1a0 fs/nilfs2/super.c:473 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&nilfs->ns_sem); lock(&dat_lock_key); lock(&nilfs->ns_sem); lock(&dat_lock_key); *** DEADLOCK *** 2 locks held by syz-executor.5/16245: #0: 00000000053fa484 (&type->s_umount_key#88){+.+.}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 #1: 00000000ee93a35f (&nilfs->ns_sem){++++}, at: nilfs_put_super+0x14a/0x1a0 fs/nilfs2/super.c:472 stack backtrace: CPU: 1 PID: 16245 Comm: syz-executor.5 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1222 check_prev_add kernel/locking/lockdep.c:1866 [inline] check_prevs_add kernel/locking/lockdep.c:1979 [inline] validate_chain kernel/locking/lockdep.c:2420 [inline] __lock_acquire+0x30c9/0x3ff0 kernel/locking/lockdep.c:3416 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 down_read+0x36/0x80 kernel/locking/rwsem.c:24 nilfs_count_free_blocks+0x68/0x180 fs/nilfs2/the_nilfs.c:698 nilfs_set_log_cursor fs/nilfs2/super.c:237 [inline] nilfs_cleanup_super+0x133/0x490 fs/nilfs2/super.c:319 nilfs_put_super+0x152/0x1a0 fs/nilfs2/super.c:473 generic_shutdown_super+0x144/0x370 fs/super.c:456 kill_block_super+0x97/0xf0 fs/super.c:1185 deactivate_locked_super+0x94/0x160 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1a8/0x290 fs/namespace.c:1098 task_work_run+0x148/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x251/0x2a0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb5d433b5fa Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fb5d28abf88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffec RBX: 0000000000000d99 RCX: 00007fb5d433b5fa RDX: 0000000020000dc0 RSI: 0000000020000e00 RDI: 00007fb5d28abfe0 RBP: 00007fb5d28ac020 R08: 00007fb5d28ac020 R09: 0000000000000004 R10: 0000000000000004 R11: 0000000000000202 R12: 0000000020000dc0 R13: 0000000020000e00 R14: 00007fb5d28abfe0 R15: 0000000020000000 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. IPVS: ftp: loaded support on port[0] = 21 netlink: 4 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 4 bytes leftover after parsing attributes in process `syz-executor.3'. IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): orphan cleanup on readonly fs EXT4-fs (loop5): Cannot turn on journaled quota: type 1: error -2 netem: incorrect ge model size netem: change failed IPVS: ftp: loaded support on port[0] = 21 EXT4-fs error (device loop5): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 32753 vs 41 free clusters EXT4-fs (loop5): 1 orphan inode deleted EXT4-fs (loop5): mounted filesystem without journal. Opts: grpjquota= noblock_validity,norecovery,jqfmt=vfsv0,nombcache,abort,noload,bsddf,barrier=0xfffffffffffffff7,noauto_da_alloc,noblock_validity,,errors=continue netem: incorrect ge model size netem: change failed EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): orphan cleanup on readonly fs EXT4-fs (loop5): Cannot turn on journaled quota: type 1: error -2 EXT4-fs error (device loop5): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 32753 vs 41 free clusters EXT4-fs (loop5): 1 orphan inode deleted EXT4-fs (loop5): mounted filesystem without journal. Opts: grpjquota= noblock_validity,norecovery,jqfmt=vfsv0,nombcache,abort,noload,bsddf,barrier=0xfffffffffffffff7,noauto_da_alloc,noblock_validity,,errors=continue netem: incorrect ge model size netem: change failed EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors netem: incorrect ge model size IPVS: ftp: loaded support on port[0] = 21 netem: change failed EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): orphan cleanup on readonly fs EXT4-fs (loop5): Cannot turn on journaled quota: type 1: error -2 EXT4-fs error (device loop5): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 32753 vs 41 free clusters EXT4-fs (loop5): 1 orphan inode deleted EXT4-fs (loop5): mounted filesystem without journal. Opts: grpjquota= noblock_validity,norecovery,jqfmt=vfsv0,nombcache,abort,noload,bsddf,barrier=0xfffffffffffffff7,noauto_da_alloc,noblock_validity,,errors=continue IPVS: ftp: loaded support on port[0] = 21 EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): ext4_check_descriptors: Block bitmap for group 0 overlaps block group descriptors EXT4-fs (loop5): filesystem is read-only EXT4-fs (loop5): orphan cleanup on readonly fs EXT4-fs (loop5): Cannot turn on journaled quota: type 1: error -2 EXT4-fs error (device loop5): ext4_mb_generate_buddy:744: group 0, block bitmap and bg descriptor inconsistent: 32753 vs 41 free clusters EXT4-fs (loop5): 1 orphan inode deleted EXT4-fs (loop5): mounted filesystem without journal. Opts: grpjquota= noblock_validity,norecovery,jqfmt=vfsv0,nombcache,abort,noload,bsddf,barrier=0xfffffffffffffff7,noauto_da_alloc,noblock_validity,,errors=continue