Re: [PATCH v3 6/7] mm/page_ext: inline unchecked page extension lookup

From: Mike Rapoport

Date: Thu Nov 19 2026 - 02:57:15 EST


On Thu, Nov 19, 2026 at 02:58:11PM +0800, Muchun Song wrote:
> The KMSAN runtime needs an unchecked page extension lookup that can be
> inlined into its uninstrumented compilation unit while page_ext.c remains
> instrumented.
>
> Provide an inline lookup for this use case while keeping the existing RCU
> checks for other callers.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>
> Reviewed-by: Chris Down <chris@xxxxxxxxxxxxxx>
> Tested-by: Chris Down <chris@xxxxxxxxxxxxxx>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>

> ---
> v3:
> - Collect Reviewed-by and Tested-by from Chris Down
>
> v2:
> - Add a preparatory patch that inlines the unchecked lookup (suggested
> by Chris Down)
> - Use a PFN interface to avoid architecture header-order dependencies
> ---
> include/linux/page_ext.h | 46 ++++++++++++++++++++++++++++++
> mm/page_ext.c | 60 +++-------------------------------------
> 2 files changed, 50 insertions(+), 56 deletions(-)

--
Sincerely yours,
Mike.