sorry for the mistake in v2 patch. I had checked codes & tested module ko many times before sending v3. - Heming On 3/30/22 18:28, Heming Zhao wrote:
If bitmap area contains invalid data, kernel will crash then mdadm triggers "Segmentation fault". This is cluster-md speical bug. In non-clustered env, mdadm will handle broken metadata case. In clustered array, only kernel space handles bitmap slot info. But even this bug only happened in clustered env, current sanity check is wrong, the code should be changed.