Jaegeuk Kim
8ca7cab82b
dm verity fec: fix misaligned RS roots IO
...
commit df7b59ba92 ("dm verity: fix FEC for RS roots unaligned to
block size") introduced the possibility for misaligned roots IO
relative to the underlying device's logical block size. E.g. Android's
default RS roots=2 results in dm_bufio->block_size=1024, which causes
the following EIO if the logical block size of the device is 4096,
given v->data_dev_block_bits=12:
E sd 0 : 0:0:0: [sda] tag#30 request not aligned to the logical block size
E blk_update_request: I/O error, dev sda, sector 10368424 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
E device-mapper: verity-fec: 254:8: FEC 9244672: parity read failed (block 18056): -5
Fix this by onlu using f->roots for dm_bufio blocksize IFF it is
aligned to v->data_dev_block_bits.
Fixes: df7b59ba92 ("dm verity: fix FEC for RS roots unaligned to block size")
Cc: stable@vger.kernel.org
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com >
Signed-off-by: Mike Snitzer <snitzer@redhat.com >
2021-04-14 14:28:29 -04:00
..
2021-03-11 07:47:48 -07:00
2021-02-03 10:10:05 -05:00
2019-11-05 14:53:03 -05:00
2017-06-09 09:27:32 -06:00
2020-01-07 12:07:08 -05:00
2017-03-07 11:30:16 -05:00
2021-01-24 18:17:20 -07:00
2021-03-04 14:53:54 -05:00
2017-11-02 11:10:55 +01:00
2018-04-30 15:40:40 -04:00
2017-03-07 13:28:31 -05:00
2021-01-24 18:15:57 -07:00
2017-03-07 13:28:31 -05:00
2017-03-07 13:28:31 -05:00
2018-10-16 14:34:59 -04:00
2017-03-07 13:28:31 -05:00
2020-12-22 09:54:48 -05:00
2020-03-27 14:42:51 -04:00
2020-03-27 14:42:51 -04:00
2021-01-27 09:51:48 -07:00
2021-02-11 09:45:28 -05:00
2021-03-11 07:47:48 -07:00
2020-07-01 07:27:24 -06:00
2021-02-03 10:10:04 -05:00
2020-12-21 13:59:37 -05:00
2021-02-11 09:45:22 -05:00
2019-05-16 15:55:48 -07:00
2021-02-11 09:45:27 -05:00
2020-08-04 15:51:28 -04:00
2021-02-03 10:10:05 -05:00
2021-02-26 15:49:51 -07:00
2021-03-26 14:51:50 -04:00
2019-08-15 15:57:39 -04:00
2021-02-11 09:45:27 -05:00
2018-05-30 15:33:32 -06:00
2021-02-26 15:49:51 -07:00
2020-09-29 16:33:08 -04:00
2020-05-15 10:29:36 -04:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2021-01-24 18:17:20 -07:00
2021-01-04 15:02:30 -05:00
2018-06-12 18:28:00 -07:00
2020-12-04 09:42:00 -07:00
2019-03-05 14:48:50 -05:00
2020-09-29 16:33:12 -04:00
2021-01-06 18:28:34 -05:00
2020-05-20 17:09:44 -04:00
2017-11-02 11:10:55 +01:00
2020-12-04 18:04:35 -05:00
2020-12-04 18:04:35 -05:00
2018-10-11 11:36:09 -04:00
2021-03-22 12:32:31 -04:00
2019-04-25 15:38:52 -04:00
2021-01-24 18:15:57 -07:00
2019-12-05 17:05:24 -05:00
2020-07-08 17:20:46 -06:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:26:35 -07:00
2020-12-04 18:04:35 -05:00
2021-04-14 14:28:29 -04:00
2021-04-14 14:28:29 -04:00
2021-03-22 12:32:30 -04:00
2020-12-04 18:04:35 -05:00
2020-08-04 15:48:13 -04:00
2020-07-13 11:47:33 -04:00
2021-03-11 07:47:48 -07:00
2020-12-04 18:04:35 -05:00
2021-01-27 09:51:48 -07:00
2020-07-08 12:21:53 -04:00
2021-03-22 12:32:31 -04:00
2020-06-05 14:59:53 -04:00
2021-03-22 12:32:32 -04:00
2021-02-09 08:45:30 -05:00
2021-02-03 10:13:00 -05:00
2020-12-04 18:04:35 -05:00
2020-08-23 17:36:59 -05:00
2020-10-08 22:37:39 -07:00
2018-08-01 15:49:39 -07:00
2020-12-16 13:09:32 -08:00
2018-10-18 09:36:35 -07:00
2020-07-01 07:27:24 -06:00
2021-01-24 18:17:20 -07:00
2020-05-13 12:02:23 -07:00
2020-07-08 17:20:46 -06:00
2018-05-30 15:33:32 -06:00
2021-02-01 09:35:20 -07:00
2021-01-27 09:51:48 -07:00
2020-12-16 12:57:51 -08:00
2019-09-13 13:10:05 -07:00
2019-06-15 01:37:35 -06:00
2021-01-27 09:51:48 -07:00
2020-05-13 12:02:23 -07:00
2021-03-11 07:47:48 -07:00
2019-03-12 10:15:18 -07:00
2021-03-11 07:47:48 -07:00
2021-02-21 11:06:54 -08:00
2020-09-24 16:44:44 -07:00
2021-02-08 08:33:16 -07:00
2020-12-09 20:46:00 -08:00