projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9a4408
)
ipc: enable is_ns_init_id() assertions
author
Christian Brauner
<brauner@kernel.org>
Mon, 10 Nov 2025 15:08:23 +0000
(16:08 +0100)
committer
Christian Brauner
<brauner@kernel.org>
Tue, 11 Nov 2025 09:01:31 +0000
(10:01 +0100)
The ipc namespace may call put_ipc_ns() and get_ipc_ns() before it is
added to the namespace tree. Assign the id early like we do for a some
other namespaces.
Link:
https://patch.msgid.link/20251110-work-namespace-nstree-fixes-v1-11-e8a9264e0fb9@kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
ipc/namespace.c
patch
|
blob
|
history
diff --git
a/ipc/namespace.c
b/ipc/namespace.c
index
59b12fc
..
c0dbfdd
100644
(file)
--- a/
ipc/namespace.c
+++ b/
ipc/namespace.c
@@
-66,6
+66,7
@@
static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
if (err)
goto fail_free;
+ ns_tree_gen_id(ns);
ns->user_ns = get_user_ns(user_ns);
ns->ucounts = ucounts;
@@
-86,7
+87,7
@@
static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
sem_init_ns(ns);
shm_init_ns(ns);
- ns_tree_add(ns);
+ ns_tree_add
_raw
(ns);
return ns;