diff options
| author | Terry Tritton <[email protected]> | 2025-07-04 19:02:34 +0000 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2025-07-06 09:15:29 +0000 |
| commit | d0a48dc4df5c986bf8c3caf4d8fc15c480273052 (patch) | |
| tree | 557e7d197310e9b42b9c59b8cbe7981f94c31e0e /lib/crypto/mpi/mpi-mul.c | |
| parent | selftests/futex: Add futex_numa to .gitignore (diff) | |
| download | kernel-d0a48dc4df5c986bf8c3caf4d8fc15c480273052.tar.gz kernel-d0a48dc4df5c986bf8c3caf4d8fc15c480273052.zip | |
selftests/futex: Convert 32-bit timespec to 64-bit version for 32-bit compatibility mode
sys_futex_wait() expects a struct __kernel_timespec pointer for the
timeout, but the provided struct timespec pointer is of type struct
old_timespec32 when compiled for 32-bit architectures, unless they use
64-bit timespecs already.
Make it work for all variants by converting the provided timespec value
into a local struct __kernel_timespec and provide a pointer to it to the
syscall. This is a pointless operation for 64-bit, but this is not a
hotpath operation, so keep it simple.
This fix is based off [1]
Originally-by: Wei Gao <[email protected]>
Signed-off-by: Terry Tritton <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Link: https://lore.kernel.org/all/[email protected]/ [1]
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
