[PATCH v2] arm64: mte: Do not warn if the page is already tagged in copy_highpage()

Catalin Marinas catalin.marinas at arm.com
Thu Oct 23 10:58:06 PDT 2025


On Wed, 22 Oct 2025 11:09:14 +0100, Catalin Marinas wrote:
> The arm64 copy_highpage() assumes that the destination page is newly
> allocated and not MTE-tagged (PG_mte_tagged unset) and warns
> accordingly. However, following commit 060913999d7a ("mm: migrate:
> support poisoned recover from migrate folio"), folio_mc_copy() is called
> before __folio_migrate_mapping(). If the latter fails (-EAGAIN), the
> copy will be done again to the same destination page. Since
> copy_highpage() already set the PG_mte_tagged flag, this second copy
> will warn.
> 
> [...]

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: mte: Do not warn if the page is already tagged in copy_highpage()
      https://git.kernel.org/arm64/c/b98c94eed4a9

-- 
Catalin




More information about the linux-arm-kernel mailing list