In the Linux kernel, the following vulnerability has been resolved:
md/raid1,raid10: fix bio accounting for split md cloned bios
Use mdclonedbio() to control bio accounting instead of relying on r1bioexisted in raid1 or the ioaccounting flag in raid10.
The previous logic does not reliably reflect whether a bio is an md cloned bio. When a failed bio is split and resubmitted via biosubmitsplitbioset() on the error path, this can lead to either double accounting for md cloned bios, or missing accounting for bios returned from biosubmitsplitbioset()
Fix this by using mdclonedbio() to detect md cloned bios and skip accounting accordingly.