rseq: Increase AT_VECTOR_SIZE_BASE to match rseq auxvec entries
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 4 Jan 2023 19:20:54 +0000 (14:20 -0500)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 12 Jan 2023 10:22:22 +0000 (11:22 +0100)
Two new auxiliary vector entries are introduced for rseq without
matching increment of the AT_VECTOR_SIZE_BASE, which causes failures
with CONFIG_HARDENED_USERCOPY=y.

Fixes: 317c8194e6ae ("rseq: Introduce feature size and alignment ELF auxiliary vector entries")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20230104192054.34046-1-mathieu.desnoyers@efficios.com
include/linux/auxvec.h

index f68d0ec2d740d6e5138e7cc7d63ae0dcf2b706c7..407f7005e6d60af23fca5ae876147e1d1b5f5c57 100644 (file)
@@ -4,6 +4,6 @@
 
 #include <uapi/linux/auxvec.h>
 
-#define AT_VECTOR_SIZE_BASE 20 /* NEW_AUX_ENT entries in auxiliary table */
+#define AT_VECTOR_SIZE_BASE 22 /* NEW_AUX_ENT entries in auxiliary table */
   /* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */
 #endif /* _LINUX_AUXVEC_H */