diff options
| author | Linus Torvalds <[email protected]> | 2024-12-09 18:00:25 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2024-12-09 18:00:25 +0000 |
| commit | 32913f348229c9f72dda45fc2c08c6d9dfcd3d6d (patch) | |
| tree | df435b6aee8d7d484c12d7004546603541ab20bd /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | |
| parent | Linux 6.13-rc2 (diff) | |
| download | kernel-32913f348229c9f72dda45fc2c08c6d9dfcd3d6d.tar.gz kernel-32913f348229c9f72dda45fc2c08c6d9dfcd3d6d.zip | |
futex: fix user access on powerpc
The powerpc user access code is special, and unlike other architectures
distinguishes between user access for reading and writing.
And commit 43a43faf5376 ("futex: improve user space accesses") messed
that up. It went undetected elsewhere, but caused ppc32 to fail early
during boot, because the user access had been started with
user_read_access_begin(), but then finished off with just a plain
"user_access_end()".
Note that the address-masking user access helpers don't even have that
read-vs-write distinction, so if powerpc ever wants to do address
masking tricks, we'll have to do some extra work for it.
[ Make sure to also do it for the EFAULT case, as pointed out by
Christophe Leroy ]
Reported-by: Andreas Schwab <[email protected]>
Cc: Christophe Leroy <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions
