Re: [syzbot] WARNING in change_protection
From: Andrew Morton
Date: Fri Sep 30 2022 - 21:14:40 EST
On Fri, 30 Sep 2022 21:03:53 -0400 Peter Xu <peterx@xxxxxxxxxx> wrote:
> When PTE_MARKER_UFFD_WP not configured, it's still possible to reach pte
> marker code and trigger an warning. Add a few CONFIG_PTE_MARKER_UFFD_WP
> ifdefs to make sure the code won't be reached when not compiled in.
Thanks.
Is 679d10331910180 ("mm: introduce PTE_MARKER swap entry") the
appropriate Fixes: target?
Should we backport to -stable?
The inlined ifdefs are unpleasing. Let's go with this for now, but
some future cleanup would be nice.