On Thu, Mar 01, 2018 at 09:23:06AM +0800, Jiufei Xue wrote: > I think the check should be done twice if the bi_partno is not zero, > one for the partition, and another for the whole disk after remap which > is add in the commit 5ddfe9691c91 > ("md: check bio address after mapping through partitions"). Why? If the partitions has an incorrect size we already catch it during parsing in rescan_partitions().