[PATCH 0/2] listns(): validate the reserved spare2 field
From: Nikolai Dokutovich
Date: Sat Nov 28 2026 - 09:06:43 EST
copy_ns_id_req() rejects a non-zero @spare but not @spare2, although
struct ns_id_req documents both as reserved. Validate @spare2 the same
way, and extend the error-case selftest to cover it instead of only
@spare.
Nikolai Dokutovich (2):
nstree: reject a non-zero spare2 in the listns() request
selftests/namespaces: check that listns() rejects a non-zero spare2
kernel/nstree.c | 2 +-
tools/testing/selftests/namespaces/listns_test.c | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
--
2.43.0