Files
twx-linux/drivers
Kevin Vigor f8bd479859 md/raid10: initialize r10_bio->read_slot before use.
commit 93decc5636 upstream.

In __make_request() a new r10bio is allocated and passed to
raid10_read_request(). The read_slot member of the bio is not
initialized, and the raid10_read_request() uses it to index an
array. This leads to occasional panics.

Fix by initializing the field to invalid value and checking for
valid value in raid10_read_request().

Cc: stable@vger.kernel.org
Signed-off-by: Kevin Vigor <kvigor@gmail.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-06 14:44:58 +01:00
..
…
2020-11-24 13:27:15 +01:00
…
2020-09-09 19:04:23 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2020-12-30 11:26:04 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…