IPVS: ftp: loaded support on port[0] = 21 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/8274 is trying to acquire lock: 0000000017fa1749 (&dat_lock_key){.+.+}, at: nilfs_count_free_blocks+0x68/0x180 fs/nilfs2/the_nilfs.c:698 but task is already holding lock: 000000008b36065a (&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/8274: #0: 0000000076f916d7 (&type->s_umount_key#48){+.+.}, at: deactivate_super+0x16c/0x1a0 fs/super.c:359 #1: 000000008b36065a (&nilfs->ns_sem){++++}, at: nilfs_put_super+0x14a/0x1a0 fs/nilfs2/super.c:472 stack backtrace: CPU: 1 PID: 8274 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:0x7f01c526d537 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 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:00007ffd3ec54ca8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f01c526d537 RDX: 00007ffd3ec54d7a RSI: 000000000000000a RDI: 00007ffd3ec54d70 RBP: 00007ffd3ec54d70 R08: 00000000ffffffff R09: 00007ffd3ec54b40 R10: 0000555555e88873 R11: 0000000000000246 R12: 00007f01c52c6b24 R13: 00007ffd3ec55e30 R14: 0000555555e88810 R15: 00007ffd3ec55e70 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 A link change request failed with some changes committed already. Interface gretap0 may have been left with an inconsistent configuration, please check. IPVS: ftp: loaded support on port[0] = 21 syz-executor.3 (10120) used greatest stack depth: 22392 bytes left IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 IPVS: ftp: loaded support on port[0] = 21 NILFS (loop5): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds NILFS error (device loop5): nilfs_ifile_get_inode_block: bad inode number: 1 Remounting filesystem read-only NILFS error (device loop5): nilfs_ifile_get_inode_block: bad inode number: 1 IPVS: ftp: loaded support on port[0] = 21 hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected IPVS: ftp: loaded support on port[0] = 21 hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected A link change request failed with some changes committed already. Interface gretap0 may have been left with an inconsistent configuration, please check. BTRFS: device fsid 24c7a497-3402-47dd-bef8-82358f5f30e0 devid 1 transid 8 /dev/loop0 BTRFS info (device loop0): enabling inode map caching syz-executor.2 (10305) used greatest stack depth: 22104 bytes left BTRFS warning (device loop0): excessive commit interval 622039222 BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): vcan0: link becomes ready hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected chnl_net:chnl_net_open(): err: Unable to register and open device, Err:-19 caif:caif_disconnect_client(): nothing to disconnect chnl_net:chnl_flowctrl_cb(): NET flowctrl func called flow: CLOSE/DEINIT chnl_net:chnl_net_open(): state disconnected A link change request failed with some changes committed already. Interface caif0 may have been left with an inconsistent configuration, please check. audit: type=1804 audit(1673865287.256:11): pid=10528 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir419546124/syzkaller.ITR0wJ/12/file0" dev="sda1" ino=13939 res=1 hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected audit: type=1804 audit(1673865287.416:12): pid=10549 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir419546124/syzkaller.ITR0wJ/13/file0" dev="sda1" ino=13935 res=1 audit: type=1804 audit(1673865287.616:13): pid=10575 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor.1" name="/root/syzkaller-testdir419546124/syzkaller.ITR0wJ/14/file0" dev="sda1" ino=13932 res=1 audit: type=1804 audit(1673865287.616:14): pid=10575 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir419546124/syzkaller.ITR0wJ/14/file0" dev="sda1" ino=13932 res=1 ieee802154 phy0 wpan0: encryption failed: -22 ieee802154 phy1 wpan1: encryption failed: -22 XFS (loop2): Mounting V4 Filesystem XFS (loop2): Ending clean mount XFS (loop2): Unmounting Filesystem BTRFS info (device loop0): enabling inode map caching BTRFS warning (device loop0): excessive commit interval 622039222 BTRFS info (device loop0): force zlib compression, level 3 BTRFS info (device loop0): using free space tree BTRFS info (device loop0): has skinny extents hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected BTRFS info (device loop1): enabling inode map caching BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by syz-executor.5 (10661) BTRFS warning (device loop1): excessive commit interval 622039222 BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by systemd-udevd (10696) BTRFS info (device loop1): force zlib compression, level 3 hub 9-0:1.0: USB hub found BTRFS info (device loop1): using free space tree hub 9-0:1.0: 8 ports detected BTRFS info (device loop1): has skinny extents hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected BTRFS warning (device ): duplicate device /dev/loop0 devid 1 generation 8 scanned by syz-executor.0 (10688) XFS (loop3): Mounting V4 Filesystem BTRFS warning (device ): duplicate device /dev/loop0 devid 1 generation 8 scanned by systemd-udevd (10753) XFS (loop3): Ending clean mount hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected XFS (loop3): Unmounting Filesystem BTRFS info (device loop5): enabling inode map caching BTRFS warning (device loop5): excessive commit interval 622039222 audit: type=1804 audit(1673865290.306:15): pid=10791 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.0" name="/root/syzkaller-testdir1465190784/syzkaller.rPi5LH/12/pids.events" dev="sda1" ino=13942 res=1 BTRFS info (device loop5): force zlib compression, level 3 BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (10779) BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (10849) hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected XFS (loop3): Mounting V4 Filesystem XFS (loop3): Ending clean mount XFS (loop3): Unmounting Filesystem BTRFS info (device loop5): enabling inode map caching BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (10880) BTRFS warning (device loop5): excessive commit interval 622039222 BTRFS info (device loop5): force zlib compression, level 3 BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected XFS (loop3): Mounting V4 Filesystem XFS (loop3): Ending clean mount XFS (loop3): Unmounting Filesystem BTRFS info (device loop5): enabling inode map caching BTRFS warning (device loop5): excessive commit interval 622039222 BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (10981) BTRFS info (device loop5): force zlib compression, level 3 BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (11069) hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected BTRFS info (device loop5): using free space tree BTRFS info (device loop5): has skinny extents hub 9-0:1.0: USB hub found hub 9-0:1.0: 8 ports detected XFS (loop3): Mounting V4 Filesystem XFS (loop3): Ending clean mount XFS (loop3): Unmounting Filesystem