On Tue, May 12, 2026 at 10:22:38AM +0200, David Hildenbrand (Arm) wrote:
>
> > @@ -1281,6 +1292,18 @@ static void update_per_node_mf_stats(unsigned long
> > pfn,
> > ++mf_stats->total;
> > }
> >
> > +static bool panic_on_unrecoverable_mf(enum mf_action_page_type type,
> > + enum mf_result result)
> > +{
> > + if (!sysctl_panic_on_unrecoverable_mf || result != MF_IGNORED)
> > + return false;
> > +
> > + if (type == MF_MSG_KERNEL)
> > + return true;
> > +
> > + return false;
>
> return type == MF_MSG_KERNEL;
>
> might be simpler.
Ack, I will update once we decide about the other pendencies.