Skip to content

LTP 20240930

Compare
Choose a tag to compare
@metan-ucw metan-ucw released this 30 Sep 10:48
· 729 commits to master since this release
20240930
60f8141

NOTABLE CHANGES

  • New tests

    • chown09 regression test for 5d1f903f75a8 ("attr: block mode changes of symlinks")
    • request_key06 Negative tests for request_key() syscall
    • signalfd02 Negative tests for signalfd() syscall
    • mseal02 Negative tests for mseal() syscall
    • hugeshmget06 A hugepage shm test
    • landlock07 Landlock Houdini reproducer aka CVE-2024-42318
    • getcpu02 Negative tests for getcpu() syscall
    • landlock06 Tests for LANDLOCK_ACCESS_FS_IOCTL_DEV
    • landlock05 Tests for LONDLOCK_ACCESS_FS_REFER
    • landlock04 Tests that syscalls are enabled/disable accordingly to the ruleset
    • landlock03 Negative tests for landlock_restrict_self() syscall
    • landlock02 Negative tests for landlock_add_rule() syscall
    • landlock01 Negative tests for landlock_create_ruleset() syscall
    • mseal01 Tests that memory is protected from being changed after it's sealed
    • fchmodat2_02 Negative tests for fchmodat2()
    • fchmodat2_01 Tests for AT_SYMLINK_NOFOLLOW for fchmodat2()
    • cachestat04 Checks that cachestat() syscall either reports EBADF or zeroed
      statistics on all kinds of unsupported fds
    • cachestat03 Negative tests for cachestat() syscall
    • cachestat02 Basic cachestat tests with fd pointing to shared memory
    • cachestat01 Basic cachestat tests for regular files
    • shutdown01 Basic shutdown tests
    • shutdown02 Negative tests for shutdown() sycall
  • The symlink01 mess is being split into separate testcases

    • open15 A test that open() syscall works correctly with symlinks
    • lstat03 A basic lstat() test.
    • rename15 Tests that rename works correctly with symlinks
    • chmod08 Tests that chmod() works correctly with symlinks
  • Increased coverage

    • readdir and getdents tests were enabled to run on all supported filesystems
      after we found that bcachefs had sublty broken implementation
    • gedent02 Adds more negative tests
    • timer_settime01 Now checks for premature timer expiration as well
    • pkey01 Now includes tests for PKEY_DISABLE_EXECUTE
    • request_key01 Added more negative tests
    • acct02 Added more negative tests
    • prctl04 has been renamed to seccomp01 and now covers also the seccomp()
      syscall along with the older prctl(PR_SET_SECCOMP) calls
    • msync04 now uses direct I/O to verify that data have been written to disk
  • Rewritten tests

    • fork05 was rewritten and correctly reports TCONF on non i386 hardware
    • fcnt14 a file locking test was rewriten to generate subtests at runtime
    • sched_starvation now autocallibrates expected runtime based on CPU speed
    • sched_footbal was rewritten and is now executed as part of the sched
      runtest file
  • The test library now supports specifying mkfs and mount options per a
    filesystem

  • Bunch of checks for kernels older than 4.4 were removed from the tests since
    the currently minimal kernel version LTP supports is 4.4

  • We have a new shell test library that:

    • makes shell code seamlessly interoperable with C
    • reuses most of the C test library
    • makes use shared memory to report test results
    • there are currently no tests using this library, we will start rewriting
      existing tests after the release
  • 3 testcases were converted to the new test library

  • The usual amount of fixes and cleanups

REMOVED SCRIPTS AND FILES

  • Removed old and outdated man pages.

  • Removed ltpmenu an legacy script that was unmaintained for a decade.

NOTABLE CHANGES IN NETWORK TESTS

brought to you by Petr Vorel

  • nfsstat02.sh new test for per-NS NFS client statistics
    (checks that /proc/net/rpc/nfs exists in nested network namespaces)

  • nfsstat01.sh read client stats from netns rhost
    (fix for kernel 6.9, backported up to 5.10 so far)

  • nfs02.sh Added subtest for O_DIRECT

KIRK

  • Kirk has been update to 1.4
  • Kirk can now be installed from pypi

DOWNLOAD AND LINKS

The latest version of the test-suite contains 3000+ tests for the Linux
and can be downloaded at:

https://github.com/linux-test-project/ltp/releases/tag/20240930

The project pages as well as GIT repository are hosted on GitHub:

https://github.com/linux-test-project/ltp

If you ever wondered how to write a LTP testcase, don't miss our developer
documentation at:

https://linux-test-project.readthedocs.io/en/latest/developers/test_case_tutorial.html

And our library API documentation at:

https://linux-test-project.readthedocs.io/en/latest/developers/api_c_tests.html

Patches, new tests, bugs, comments or questions should go to to our mailing
list at ltp@lists.linux.it.

CREDITS

Many thanks to the people contributing to this release:

git shortlog -s -e -n 20240524..

93  Petr Vorel <pvorel@suse.cz>
58  Andrea Cervesato <andrea.cervesato@suse.com>
22  Xinjian Ma (Fujitsu) <maxj.fnst@fujitsu.com>
17  Martin Doucha <mdoucha@suse.cz>
15  Cyril Hrubis <chrubis@suse.cz>
15  Li Wang <liwang@redhat.com>
 7  Wei Gao <wegao@suse.com>
 6  John Stultz <jstultz@google.com>
 3  Andreas Schwab <schwab@suse.de>
 3  Edward Liaw <edliaw@google.com>
 3  Jan Stancek <jstancek@redhat.com>
 3  Xiao Yang <ice_yangxiao@163.com>
 2  Jiwei Sun <sunjw10@lenovo.com>
 2  Po-Hsu Lin <po-hsu.lin@canonical.com>
 1  Ajay Kaher <ajay.kaher@broadcom.com>
 1  Avinesh Kumar <akumar@suse.de>
 1  Chen Haonan <chen.haonan2@zte.com.cn>
 1  Chuck Lever <chuck.lever@oracle.com>
 1  Haifeng Xu <haifeng.xu@shopee.com>
 1  Jingyi Song <jingyisong@hust.edu.cn>
 1  Kuan-Ying Lee <kuan-ying.lee@canonical.com>
 1  Li Xiaosong <rj45usb@163.com>
 1  Madadi Vineeth Reddy <vineethr@linux.ibm.com>
 1  Nirjhar Roy <nirjhar@linux.ibm.com>
 1  Remi Peuvergne <remi.peuvergne@kaizen-solutions.net>
 1  Sachin P Bappalige <sachinpb@linux.ibm.com>
 1  Shizhao Chen <shichen@redhat.com>
 1  Yiwei Lin <s921975628@gmail.com>
 1  Zizhi Wo <wozizhi@huawei.com>
 1  lufei <lufei@uniontech.com>

And also thanks to patch reviewers:

git log 20240524.. | grep -Ei '(reviewed|acked)-by:' | sed 's/.*by: //' | sort | uniq -c | sort -n -r

 87 Petr Vorel <pvorel@suse.cz>
 87 Cyril Hrubis <chrubis@suse.cz>
 77 Li Wang <liwang@redhat.com>
 28 Avinesh Kumar <akumar@suse.de>
 13 Andrea Cervesato <andrea.cervesato@suse.com>
  4 Martin Doucha <mdoucha@suse.cz>
  3 Wei Gao <wegao@suse.com>
  3 Richard Palethorpe <io@richiejp.com>
  3 Jan Stancek <jstancek@redhat.com>
  3 Jan Kara <jack@suse.cz>
  2 Adrian Huang <ahuang12@lenovo.com>
  1 Po-Hsu Lin <po-hsu.lin@canonical.com>
  1 Amir Goldstein <amir73il@gmail.com>