[GIT PULL] Landlock fix for v7.3-rc3

Mickaël Salaün mic at digikod.net
Wed Sep 9 15:31:18 UTC 2026


Hi,

This PR fixes an UAF and a lockdep assert NULL dereferencing, and it
properly truncates too-long strings printed by a Landlock tracepoint.
Most of the changes are brought by new tests.

Please pull these changes for v7.3-rc3 .  These commits have been tested
in the latest linux-next releases and merge cleanly with your master
branch.

Test coverage for security/landlock is 91.6% of 2574 lines according to
LLVM 22, and it was 91.5% of 2571 lines before this PR.

Regards,
 Mickaël

--
The following changes since commit df2908090cda368b01ff43709f51890076c56157:

  Linux 7.3-rc2 (2026-09-06 15:07:20 -0700)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-7.3-rc3

for you to fetch changes up to d41d0021a6ea3e9fcd14126a00fead47f981c46e:

  landlock: Test trace path output boundaries (2026-09-08 11:49:39 +0200)

----------------------------------------------------------------
Landlock fix for v7.3-rc3

----------------------------------------------------------------
Mickaël Salaün (4):
      selftests/landlock: Test abstract socket trace name limits
      landlock: Clean up ruleset validation checks
      landlock: Bound escaped trace path output
      landlock: Test trace path output boundaries

Norbert Szetei (1):
      landlock: Fix use-after-free of the source's parent directory

 include/trace/events/landlock.h                    |  70 ++++++--
 security/landlock/.kunitconfig                     |   2 +
 security/landlock/domain.c                         |   3 +-
 security/landlock/fs.c                             |  18 +-
 security/landlock/ruleset.c                        |   2 +-
 security/landlock/trace.c                          | 182 +++++++++++++++++++++
 .../selftests/landlock/scoped_abstract_unix_test.c |  76 ++++++---
 tools/testing/selftests/landlock/trace_fs_test.c   | 160 ++++++++++++++++++
 8 files changed, 466 insertions(+), 47 deletions(-)



More information about the Linux-security-module-archive mailing list