On Linux, I use RAID mirror (mdadm - software reaid). How to configure it so that data is read from both underlying devices and compared, to detect data bitrot and fail in such case?

Is that at all supported?

Would be good option to have.

(Of course as one of layers of protection, for important data)