Greeting, FYI, we noticed the following commit (built with gcc-11): commit: 3fb4ec6faac286d97e27f48715f2cda56a701cd3 ("[PATCH RFC] VFS: lock source directory for link to avoid rename race.") url: https://github.com/intel-lab-lkp/linux/commits/NeilBrown/VFS-lock-source-directory-for-link-to-avoid-rename-race/20220916-141546 base: https://git.kernel.org/cgit/linux/kernel/git/viro/vfs.git for-next patch link: https://lore.kernel.org/linux-fsdevel/166330881189.15759.13499931397891560275@noble.neil.brown.name in testcase: ltp version: ltp-x86_64-14c1f76-1_20220829 with following parameters: disk: 1HDD fs: ext4 test: syscalls-01 test-description: The LTP testsuite contains a collection of tools for testing the Linux kernel and related features. test-url: http://linux-test-project.github.io/ on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (Skylake) with 32G memory caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag | Reported-by: kernel test robot | Link: https://lore.kernel.org/r/202209231042.4f771ffe-oliver.sang@intel.com <<>> tag=linkat02 stime=1663772091 cmdline="linkat02" contacts="" analysis=exit <<>> mke2fs 1.46.5 (30-Dec-2021) linkat02 0 TINFO : Found free device 0 '/dev/loop0' linkat02 0 TINFO : Formatting /dev/loop0 with ext2 opts='' extra opts='' linkat02 0 TINFO : the maximum number of hard links to emlink_dir/testfile0 is hit: 65000 linkat02 1 TPASS : linkat failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long linkat02 2 TPASS : linkat failed as expected: TEST_ERRNO=ENAMETOOLONG(36): File name too long linkat02 3 TPASS : linkat failed as expected: TEST_ERRNO=EEXIST(17): File exists linkat02 4 TFAIL : linkat02.c:132: linkat failed unexpectedly; expected: 40 - Too many levels of symbolic links: TEST_ERRNO=EEXIST(17): File exists linkat02 5 TPASS : linkat failed as expected: TEST_ERRNO=EACCES(13): Permission denied linkat02 6 TFAIL : linkat02.c:132: linkat failed unexpectedly; expected: 30 - Read-only file system: TEST_ERRNO=EXDEV(18): Invalid cross-device link linkat02 7 TPASS : linkat failed as expected: TEST_ERRNO=EMLINK(31): Too many links To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests sudo bin/lkp install job.yaml # job file is attached in this email bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run sudo bin/lkp run generated-yaml-file # if come across any failure that blocks the test, # please remove ~/.lkp and /lkp dir to run from a clean state. -- 0-DAY CI Kernel Test Service https://01.org/lkp