Christian Brauner
e3b2cf6e5d
kernfs: pass struct ns_common instead of const void * for namespace tags
...
kernfs has historically used const void * to pass around namespace tags
used for directory-level namespace filtering. The only current user of
this is sysfs network namespace tagging where struct net pointers are
cast to void *.
Replace all const void * namespace parameters with const struct
ns_common * throughout the kernfs, sysfs, and kobject namespace layers.
This includes the kobj_ns_type_operations callbacks, kobject_namespace(),
and all sysfs/kernfs APIs that accept or return namespace tags.
Passing struct ns_common is needed because various codepaths require
access to the underlying namespace. A struct ns_common can always be
converted back to the concrete namespace type (e.g., struct net) via
container_of() or to_ns_common() in the reverse direction.
This is a preparatory change for switching to ns_id-based directory
iteration to prevent a KASLR pointer leak through the current use of
raw namespace pointers as hash seeds and comparison keys.
Signed-off-by: Christian Brauner <brauner@kernel.org >
2026-04-09 14:36:52 +02:00
..
2026-03-24 09:29:28 +01:00
2026-02-21 17:09:51 -08:00
2026-03-24 18:47:10 +01:00
2026-02-21 17:09:51 -08:00
2026-02-26 21:34:14 -08:00
2026-03-20 09:59:30 +01:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-04-09 14:36:52 +02:00
2026-02-21 17:09:51 -08:00
2026-03-21 17:36:33 -07:00
2026-03-25 15:32:55 -04:00
2026-03-17 20:30:57 +01:00
2026-02-06 19:54:40 +00:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-26 14:34:21 -08:00
2026-03-17 20:30:57 +01:00
2026-02-22 08:26:33 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-03-23 13:32:57 +01:00
2026-03-10 16:03:02 +01:00
2026-03-18 15:50:29 -07:00
2026-03-19 15:12:40 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-17 16:33:32 +05:30
2026-02-21 20:03:00 -08:00
2026-02-26 08:00:13 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-03-16 19:29:45 -07:00
2026-03-18 08:28:54 -07:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-11 16:23:32 +01:00
2026-02-23 11:49:23 +01:00
2026-03-28 08:05:36 +10:00
2026-02-21 20:03:00 -08:00
2026-03-17 13:55:51 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-18 16:18:49 +00:00
2026-03-25 13:32:37 -07:00
2026-02-10 20:45:30 -08:00
2026-02-21 20:03:00 -08:00
2026-03-27 13:51:21 +01:00
2026-03-11 22:50:29 +01:00
2026-03-14 16:25:10 -07:00
2026-04-09 14:36:52 +02:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-26 08:22:07 -07:00
2026-02-21 20:03:00 -08:00
2026-03-29 09:53:01 -07:00
2026-02-21 20:03:00 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-21 01:02:28 -08:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-03-26 13:14:07 +01:00
2026-02-21 17:09:51 -08:00
2026-02-22 08:26:33 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 20:03:00 -08:00
2026-02-27 16:33:07 +01:00
2026-03-16 16:08:54 +01:00
2026-02-21 17:09:51 -08:00
2026-03-18 18:08:25 +01:00
2026-02-21 17:09:51 -08:00
2026-04-09 14:36:52 +02:00
2026-03-18 17:20:51 -07:00
2026-02-21 11:02:58 -08:00
2026-02-21 17:09:51 -08:00
2026-03-09 09:38:22 -05:00
2026-03-13 10:13:06 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-03-23 15:57:43 -05:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 20:03:00 -08:00
2026-02-27 20:46:57 +05:30
2026-03-23 14:23:09 +01:00
2026-03-24 12:31:10 +02:00
2026-03-20 09:46:15 -07:00
2026-02-21 17:09:51 -08:00
2026-03-04 09:16:41 +01:00
2026-02-22 08:26:33 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-10 14:52:42 +00:00
2026-03-05 10:18:23 -07:00
2026-03-13 14:17:30 +00:00
2026-02-23 17:03:28 +01:00
2026-02-21 17:09:51 -08:00
2026-02-22 09:43:11 -08:00
2026-03-13 14:18:13 -07:00
2026-02-21 17:09:51 -08:00
2026-03-27 19:58:22 -07:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-17 20:30:57 +01:00
2026-03-17 09:35:40 +01:00
2026-02-22 08:26:33 -08:00
2026-03-26 12:27:42 +00:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-02-24 10:01:20 -08:00
2026-03-19 22:07:39 -04:00
2026-02-21 17:09:51 -08:00
2026-03-03 09:03:04 +01:00
2026-03-24 19:00:12 +01:00
2026-02-21 20:03:00 -08:00
2026-03-13 09:15:58 +01:00
2026-03-07 11:08:39 -05:00
2026-02-21 17:09:51 -08:00
2026-03-13 18:19:07 +01:00
2026-02-22 08:26:33 -08:00
2026-03-26 06:38:27 -06:00
2026-02-22 08:26:33 -08:00
2026-03-05 17:35:12 +01:00
2026-03-20 21:05:50 -07:00
2026-03-20 11:33:24 +01:00
2026-02-21 17:09:51 -08:00
2026-02-21 17:09:51 -08:00
2026-03-26 08:57:51 +01:00
2026-02-21 17:09:51 -08:00
2026-02-04 20:45:26 +05:30