From bdab18633a302c82b5e5d5dbc4e38b0baf9c0837 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 20 Sep 2026 08:15:23 -0700 Subject: Merge tag 'locking-urgent-2026-09-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull futex fix from Ingo Molnar: - Also allocate a default private futex hash on vfork() as well, to avoid races with (private) futex waiters (Peter Zijlstra) * tag 'locking-urgent-2026-09-20' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: futex: Also allocate private hash on vfork() --- include/asm-generic/current.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/asm-generic/current.h (limited to 'include/asm-generic/current.h') diff --git a/include/asm-generic/current.h b/include/asm-generic/current.h new file mode 100644 index 000000000..9c2aeecbd --- /dev/null +++ b/include/asm-generic/current.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __ASM_GENERIC_CURRENT_H +#define __ASM_GENERIC_CURRENT_H + +#ifndef __ASSEMBLY__ +#include + +#define get_current() (current_thread_info()->task) +#define current get_current() +#endif + +#endif /* __ASM_GENERIC_CURRENT_H */ -- cgit v1.3.1