Jeff Moyer 5f4610fe2e aio: fix spectre gadget in lookup_ioctx
commit a538e3ff9dabcdf6c3f477a373c629213d1c3066 upstream.

Matthew pointed out that the ioctx_table is susceptible to spectre v1,
because the index can be controlled by an attacker.  The below patch
should mitigate the attack for all of the aio system calls.

Cc: stable@vger.kernel.org
Reported-by: Matthew Wilcox <willy@infradead.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-21 14:13:04 +01:00
..
2018-07-08 15:30:51 +02:00
2018-12-05 19:41:10 +01:00
2018-07-17 11:39:26 +02:00
2018-12-05 19:41:25 +01:00
2018-11-21 09:24:14 +01:00
2018-12-17 09:28:54 +01:00
2018-12-17 09:28:54 +01:00
2018-12-21 14:13:04 +01:00
2017-09-04 19:05:15 -04:00
2018-05-16 10:10:25 +02:00