summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2023-04-11 19:45:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-20 15:11:33 +0300
commit2b3174c96696cde676393474f0e01d0d108462f5 (patch)
treea81a0ae7a4f0ff1c08bff6d31c0d621653f6e39a /Documentation
parentf91cf1a30255d81cf1d8992974ec0a9c0fd4a771 (diff)
downloadlinux-2b3174c96696cde676393474f0e01d0d108462f5.tar.xz
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%25lkp@intel.com/ Cc: stable <stable@kernel.org> Fixes: afe3154ba87e ("tty: n_gsm: add ioctl for DLC config via ldisc handle") Reported-by: kernel test robot <lkp@intel.com> Reviewed-by: Daniel Starke <daniel.starke@siemens.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20230411164532.64175-1-ilpo.jarvinen@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions