On Mon, Jan 18, 2021 at 05:38:52PM +0800, Aili Yao wrote: > On Mon, 18 Jan 2021 10:24:23 +0100 > Oscar Salvador <osalvador@xxxxxxx> wrote: > > > > > So, the scenario case is a multithread application with the same page mapped. > > And PF_MCE_KILL_EARLY flag was set. > > > The scenario is not related multithread application; > it's about multiprocess application which share the same page Ok, I misunderstood that part. Then, I do not fully understand the concern. I guess you are kind of memory scrubbing with mcelog defaulting to memory_failure instead of soft_offline. E.g: collect_procs_anon will pick the processes which have the MCE policy set and have the page mapped. That is all we should need. So, if you have processes A, B, C and D with X page mapped, and you set the MCE policy on those four, they should get picked up by your scrubbing when handling X page by memory_failure. Is not that right? -- Oscar Salvador SUSE L3