diff options
| author | Peter Zijlstra <[email protected]> | 2025-05-28 08:55:21 +0000 |
|---|---|---|
| committer | Peter Zijlstra <[email protected]> | 2025-06-05 12:37:58 +0000 |
| commit | 8337204c58899fe422db765b481711eb2d95eb0b (patch) | |
| tree | ba54af5faeaf7a698f584e25e2b2d9b6875a70cc /lib/crypto/mpi/mpi-cmp.c | |
| parent | selftests/futex: Set the home_node in futex_numa_mpol (diff) | |
| download | kernel-8337204c58899fe422db765b481711eb2d95eb0b.tar.gz kernel-8337204c58899fe422db765b481711eb2d95eb0b.zip | |
futex: Handle invalid node numbers supplied by user
syzbot used a negative node number which was not rejected early and led
to invalid memory access in node_possible().
Reject negative node numbers except for FUTEX_NO_NODE.
[bigeasy: Keep the FUTEX_NO_NODE check]
Closes: https://lore.kernel.org/all/[email protected]/
Fixes: cec199c5e39bd ("futex: Implement FUTEX2_NUMA")
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reported-by: [email protected]
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
