← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2084625] Re: landlock01 from ubuntu_ltp_syscalls failed on F-5.15 (TFAIL: Size is too small expected EINVAL: ENOMSG (42))

 

It appears that the following log lines were emitted for all failed test
machines:

  ...
  [stdout] checking for struct landlock_ruleset_attr.handled_access_net... no
  [stdout] checking for struct landlock_ruleset_attr... no
  ...

This indicates that the test fell back to LTP's copied definition of struct landlock_ruleset_attr, which includes both .handled_access_fs and .handled_access_net.
In the 5.15 kernel, landlock_create_ruleset(2) is implemented, allowing the test to run. However, the kernel's struct landlock_ruleset_attr only includes .handled_access_fs. I suppose this mismatch causes the discrepancy, leading to the test failure. This issue could be resolvable by addressing it at the test environment setup or packaging level.

-- 
You received this bug notification because you are a member of Canonical
Platform QA Team, which is subscribed to ubuntu-kernel-tests.
https://bugs.launchpad.net/bugs/2084625

Title:
  landlock01 from ubuntu_ltp_syscalls failed on F-5.15 (TFAIL: Size is
  too small expected EINVAL: ENOMSG (42))

Status in ubuntu-kernel-tests:
  New

Bug description:
  This is a new test case added on Jul. 12
  https://github.com/linux-test-project/ltp/commit/4e17e907c154e1b44e950b2a12c45048e1595051

  And we got our fork updated recently in order to cover Oracular.
  So this is not a regression.

  This failure can be found with 5.15 kernel on Focal. But Jammy 5.15 is
  good.

  INFO: Test start time: Fri Oct 11 19:16:23 UTC 2024
  COMMAND:    /opt/ltp/bin/ltp-pan -q  -e -S   -a 129263     -n 129263  -f /tmp/ltp-2mgDUWwOzo/alltests -l /dev/null  -C /dev/null -T /dev/null
  LOG File: /dev/null
  FAILED COMMAND File: /dev/null
  TCONF COMMAND File: /dev/null
  Running tests.......
  tst_buffers.c:57: TINFO: Test is using guarded buffers
  tst_test.c:1860: TINFO: LTP version: 20240930
  tst_test.c:1864: TINFO: Tested kernel: 5.15.0-1072-aws #78~20.04.1-Ubuntu SMP Wed Oct 9 15:30:47 UTC 2024 x86_64
  tst_test.c:1703: TINFO: Timeout per run is 0h 00m 30s
  landlock_common.h:31: TINFO: Landlock ABI v1
  landlock01.c:49: TPASS: Unknown access : EINVAL (22)
  landlock01.c:49: TFAIL: Size is too small expected EINVAL: ENOMSG (42)
  landlock01.c:49: TPASS: Unknown flags : EINVAL (22)
  landlock01.c:49: TPASS: Size is too big : E2BIG (7)
  landlock01.c:49: TPASS: Invalid attr address : EFAULT (14)
  landlock01.c:49: TPASS: Empty accesses : ENOMSG (42)

  Summary:
  passed   5
  failed   1
  broken   0
  skipped  0
  warnings 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/2084625/+subscriptions



References