回复: [PATCH v4] mm: Fix possible NULL pointer dereference in __swap_duplicate

From: gaoxu
Date: Wed Feb 19 2025 - 01:24:50 EST


>
> On Wed, 19 Feb 2025 15:28:26 +1300 Barry Song <21cnbao@xxxxxxxxx>
> wrote:
>
> > > The patch seems to only provide a workaround, but there are no more
> > > effective software solutions to handle the bit flips problem. This
> > > path will change the issue from a system crash to a process
> > > exception, thereby reducing the impact on the entire machine.
> > >
> > > Signed-off-by: gao xu <gaoxu2@xxxxxxxxx>
> >
> > Regardless of whether the above statement is 100% accurate or whether
> > a bit-flip actually exists, providing this check still seems useful,
> > at least for defensive programming.
>
> I'm doubtful as well.
>
> How often has this crash been observed?
The probability of this issue occurring is approximately 1 in 500,000 per week.