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-02-24 10:25:37 -08:00
2021-04-07 19:02:43 +02:00
2021-02-02 14:26:02 +01:00
2021-03-17 13:16:18 -07:00
2021-03-16 16:32:40 +01:00
2021-04-05 09:14:18 +02:00
2021-04-02 16:13:13 -07:00
2021-04-09 09:08:02 -07:00
2021-04-09 14:54:23 -07:00
2021-04-06 11:46:39 +02:00
2021-04-07 16:01:25 -07:00
2021-02-22 14:11:36 -08:00
2021-03-06 16:48:09 +00:00
2021-03-26 17:43:48 +01:00
2021-03-02 22:41:23 +11:00
2021-02-22 14:44:39 -08:00
2021-02-27 08:07:12 -08:00
2021-02-15 17:02:04 +01:00
2021-02-23 15:05:10 -08:00
2021-02-24 21:05:28 +05:30
2021-02-15 10:06:58 +01:00
2021-03-15 11:09:38 +09:00
2021-04-04 14:05:45 -07:00
2021-04-09 14:54:23 -07:00
2021-04-09 14:54:23 -07:00
2021-04-10 05:18:35 +10:00
2021-02-23 14:52:22 -08:00
2021-02-26 09:41:00 -08:00
2021-02-22 10:05:12 -08:00
2021-02-09 11:36:50 -06:00
2021-02-22 14:27:07 -08:00
2021-04-06 22:32:33 +02:00
2021-02-22 09:52:55 -08:00
2021-02-28 15:48:25 -08:00
2021-03-15 16:34:39 +01:00
2021-04-08 16:14:56 -03:00
2021-03-17 13:16:18 -07:00
2021-03-18 23:46:21 +02:00
2021-03-18 11:31:12 +01:00
2021-02-09 09:48:23 +01:00
2021-03-09 08:45:17 +00:00
2021-03-22 16:51:11 -07:00
2021-04-09 14:54:23 -07:00
2021-02-14 21:27:24 -07:00
2021-04-09 14:54:23 -07:00
2021-04-14 14:28:29 -04:00
2021-03-17 13:16:18 -07:00
2021-02-24 10:25:37 -08:00
2021-03-23 09:14:12 +00:00
2021-03-23 15:15:15 +01:00
2021-03-09 10:00:52 +01:00
2021-03-17 13:16:18 -07:00
2021-04-09 12:50:31 -07:00
2021-02-24 10:25:37 -08:00
2021-02-23 14:12:53 -06:00
2021-02-24 09:35:54 -08:00
2021-03-18 05:39:18 +01:00
2021-02-05 11:25:52 +01:00
2021-04-09 13:01:48 -07:00
2021-03-12 09:26:52 +05:30
2021-03-17 13:16:18 -07:00
2021-03-21 10:57:35 -07:00
2021-02-26 13:54:43 -08:00
2021-03-12 11:30:31 +00:00
2021-02-10 10:39:23 +01:00
2021-03-30 00:46:49 +02:00
2021-04-06 22:10:21 +02:00
2021-03-01 17:43:29 +01:00
2021-03-24 12:10:03 -07:00
2021-02-25 12:23:49 -08:00
2021-04-07 11:52:26 +02:00
2021-03-15 15:42:12 +00:00
2021-03-17 14:15:07 -05:00
2021-02-26 10:28:35 -08:00
2021-02-27 08:07:12 -08:00
2021-03-17 13:16:18 -07:00
2021-03-17 13:16:18 -07:00
2021-04-10 12:29:19 -07:00
2021-03-17 13:16:18 -07:00
2021-04-07 09:26:50 -07:00
2021-03-02 15:33:00 +01:00
2021-03-11 13:32:32 +00:00
2021-02-12 12:26:46 +01:00
2021-03-23 13:32:40 +01:00
2021-04-05 23:09:37 -04:00
2021-03-17 13:16:18 -07:00
2021-03-17 09:55:58 +01:00
2021-03-30 13:38:10 +03:00
2021-04-03 10:00:53 -07:00
2021-02-09 12:25:32 +01:00
2021-04-05 09:05:42 +02:00
2021-04-09 12:08:28 -04:00
2021-03-29 14:48:00 -06:00
2021-03-18 11:20:35 -07:00
2021-04-03 10:42:20 -07:00
2021-03-10 16:59:50 +01:00
2021-03-18 11:20:35 -07:00
2021-02-09 12:15:07 +01:00
2021-04-09 14:54:23 -07:00
2021-04-09 09:58:42 -07:00
2021-02-16 20:36:38 -08:00
2021-02-24 10:35:29 -08:00