diff options
author | Ilpo Järvinen <[email protected]> | 2023-04-11 19:45:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-04-20 14:11:33 +0200 |
commit | 2b3174c96696cde676393474f0e01d0d108462f5 (patch) | |
tree | a81a0ae7a4f0ff1c08bff6d31c0d621653f6e39a /drivers/fpga/zynqmp-fpga.c | |
parent | f91cf1a30255d81cf1d8992974ec0a9c0fd4a771 (diff) |
n_gsm: Use array_index_nospec() with index that comes from userspace
dc.channel used for indexing comes directly from copy_from_user(). Use
array_index_nospec() to mitigate speculative side-channel.
Link: https://lore.kernel.org/linux-serial/64306d13.ONswMlyWlVKLGkKR%[email protected]/
Cc: stable <[email protected]>
Fixes: afe3154ba87e ("tty: n_gsm: add ioctl for DLC config via ldisc handle")
Reported-by: kernel test robot <[email protected]>
Reviewed-by: Daniel Starke <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/zynqmp-fpga.c')
0 files changed, 0 insertions, 0 deletions