In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]md: call __md_stop_writes in md_stop[EOL][EOL]From the link [1], we can see raid1d was running even after the path[EOL]raid_dtr -> md_stop -> __md_stop.[EOL][EOL]Let's stop write first in destructor to align with normal md-raid to[EOL]fix the KASAN issue.[EOL][EOL][1]. https://lore.kernel.org/linux-raid/CAPhsuW5gc4AakdGNdF8ubpezAuDLFOYUO_sfMZcec6hQFm8nhg@mail.gmail.com/T/#m7f12bf90481c02c6d2da68c64aeed4779b7df74a CREATE(Triage):(User=lchen-cn) [CVE-2022-49987 (https://nvd.nist.gov/vuln/detail/CVE-2022-49987)