aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2025-09-25 09:22:09 +0200
committerChristian Brauner <brauner@kernel.org>2025-09-25 09:23:55 +0200
commit6e65f4e8fc5b02f7a60ebb5b1b83772df0b86663 (patch)
treeb76db4a01798af39da02bf1581beaca1a9302f97 /init
parentMerge patch series "ns: minor tweaks" (diff)
parentns: drop assert (diff)
downloadlinux-6e65f4e8fc5b02f7a60ebb5b1b83772df0b86663.tar.gz
linux-6e65f4e8fc5b02f7a60ebb5b1b83772df0b86663.zip
Merge patch series "ns: tweak ns common handling"
Christian Brauner <brauner@kernel.org> says: This contains three minor tweaks for namespace handling: * Make struct ns_tree private. There's no need for anything to access that directly. * Drop a debug assert that would trigger in conditions that are benign. * Move the type of the namespace out of struct proc_ns_operations and into struct ns_common. This eliminates a pointer dereference and also allows assertions to work when the namespace type is disabled and the operations field set to NULL. * patches from https://lore.kernel.org/20250924-work-namespaces-fixes-v1-0-8fb682c8678e@kernel.org: ns: drop assert ns: move ns type into struct ns_common nstree: make struct ns_tree private Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'init')
-rw-r--r--init/version-timestamp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/init/version-timestamp.c b/init/version-timestamp.c
index 376b7c856d4d..d071835121c2 100644
--- a/init/version-timestamp.c
+++ b/init/version-timestamp.c
@@ -8,6 +8,7 @@
#include <linux/utsname.h>
struct uts_namespace init_uts_ns = {
+ .ns.ns_type = ns_common_type(&init_uts_ns),
.ns.__ns_ref = REFCOUNT_INIT(2),
.name = {
.sysname = UTS_SYSNAME,