Thread (60 messages) 60 messages, 8 authors, 2024-10-28

Re: [PATCH v1 04/14] futex: Validate futex value against futex size

From: Thomas Gleixner <hidden>
Date: 2023-07-31 17:16:06
Also in: linux-arch, linux-mm, lkml

On Fri, Jul 21 2023 at 12:22, Peter Zijlstra wrote:
+static inline bool futex_validate_input(unsigned int flags, u64 val)
+{
+	int bits = 8 * futex_size(flags);
+	if (bits < 64 && (val >> bits))
New line between declaration and code. 
+		return false;
+	return true;
+}
Other than that::

Reviewed-by: Thomas Gleixner <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help