diff options
author | Waiman Long <longman@redhat.com> | 2025-08-11 10:11:47 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-08-11 17:53:21 +0200 |
commit | dfb36e4a8db0cd56f92d4cb445f54e85a9b40897 (patch) | |
tree | 5ee89c56ec9118904cbd94a5b1208be50d68117a /scripts/extract-fwblobs | |
parent | e703b7e247503b8bf87b62c02a4392749b09eca8 (diff) |
futex: Use user_write_access_begin/_end() in futex_put_value()
Commit cec199c5e39b ("futex: Implement FUTEX2_NUMA") introduced the
futex_put_value() helper to write a value to the given user
address.
However, it uses user_read_access_begin() before the write. For
architectures that differentiate between read and write accesses, like
PowerPC, futex_put_value() fails with -EFAULT.
Fix that by using the user_write_access_begin/user_write_access_end() pair
instead.
Fixes: cec199c5e39b ("futex: Implement FUTEX2_NUMA")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20250811141147.322261-1-longman@redhat.com
Diffstat (limited to 'scripts/extract-fwblobs')
0 files changed, 0 insertions, 0 deletions