aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2018-04-24 08:04:41 +0200
committerTakashi Iwai <[email protected]>2018-04-25 10:37:48 +0200
commitf526afcd8f71945c23ce581d7864ace93de8a4f7 (patch)
tree910de0bc4f2596055400f6c7e501ad28b3dd664f /lib/memory-notifier-error-inject.c
parent10513142a7114d251670361ad40cba2c61403406 (diff)
ALSA: rme9652: Hardening for potential Spectre v1
As recently Smatch suggested, one place in RME9652 driver may expand the array directly from the user-space value with speculation: sound/pci/rme9652/rme9652.c:2074 snd_rme9652_channel_info() warn: potential spectre issue 'rme9652->channel_map' (local cap) This patch puts array_index_nospec() for hardening against it. BugLink: https://marc.info/?l=linux-kernel&m=152411496503418&w=2 Reported-by: Dan Carpenter <[email protected]> Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions