Re: [PATCH] mm/uffd: Always wr-protect pte in pte_mkuffd_wp()

From: Peter Xu
Date: Tue Dec 06 2022 - 11:23:00 EST


On Tue, Dec 06, 2022 at 08:46:17AM +0800, kernel test robot wrote:
> vim +316 arch/x86/include/asm/pgtable.h
>
> 313
> 314 static inline pte_t pte_mkuffd_wp(pte_t pte)
> 315 {
> > 316 return pte_wrprotect(pte_set_flags(pte, _PAGE_UFFD_WP));
> 317 }

It's interesting to know the bot will test any patch I attach in an mail
reply, which is very nice...

I'll send a formal patch for this one soon.

--
Peter Xu