From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-190c.mail.infomaniak.ch (smtp-190c.mail.infomaniak.ch [185.125.25.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 188F9568FA3 for ; Wed, 9 Sep 2026 15:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.25.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788968426; cv=none; b=GnlVAQC9fPTJvcrzZ9yRtqz4BjVyXyDQ6u2qIX5wHjHcKjLBFp3fpAw6syEjnkupaexjuciZYSGEWx7nIG591IDIuyPAw+1jl4wFt+I/SI6Mc11FbgU5YY1jA8ltKtBv+franzGVOqC7xd27dY8iUFf+UkX1TP3AWRIp32Fa3gQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788968426; c=relaxed/simple; bh=4xu7P+Ok2DEsJO8rCqVkGv/bOIR3n14IO/ixqglQwlk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=oDXJtYuQppzwW8vDgf+Y+wYV5X/I95eX39R5D8fUAZBp8SXwe9Z02SRG9oP9MTk9CJef6/QFmpytcAxgt9BFlVircUL4fZyXkvcqXijw83iiAcCXb2vlnH5PWmAyfO9FgyvIWDYq6i9PvZJzEDqGN/4Vt9zTmFNXeULzfaA7A6U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=G908QrEN; arc=none smtp.client-ip=185.125.25.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="G908QrEN" Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4hg4Xj0BpzzNcj; Wed, 9 Sep 2026 17:31:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1788967892; bh=XghtDDw38xkG4QZmgFfj5So2FgOTVfPx3aNeREMiTD8=; h=From:To:Cc:Subject:Date:From; b=G908QrENGJsU7dKlUa4OtC0fXBLBuSeKkOFYKcJYLAq2JOtFerdxwdp5cwdqVULJB bXF+UvZ8rudrTW9TvGXUCWj/gv/byqxWgY/2UpNRPcREF73eSrTdOVdQQNNjhEFdP5 GyQtn/WPQyEjPZkPKWDGgXwE2EPzBap2RYPeyjsw= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4hg4Xh17MnzJdg; Wed, 9 Sep 2026 17:31:32 +0200 (CEST) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Linus Torvalds Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , =?UTF-8?q?G=C3=BCnther=20Noack?= , =?UTF-8?q?G=C3=BCnther=20Noack?= , Norbert Szetei , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [GIT PULL] Landlock fix for v7.3-rc3 Date: Wed, 9 Sep 2026 17:31:18 +0200 Message-ID: <20260909153118.361748-1-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha 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(-)