Re: [PATCH v4] mm: Fix possible NULL pointer dereference in __swap_duplicate
From: Andrew Morton
Date: Tue Feb 18 2025 - 23:04:07 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?