[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <952b7626-9504-4bdd-b57c-8ad2465815ee@redhat.com>
Date: Tue, 14 Jan 2025 10:35:46 +0100
From: David Hildenbrand <david@...hat.com>
To: mawupeng <mawupeng1@...wei.com>, akpm@...ux-foundation.org,
osalvador@...e.de, nao.horiguchi@...il.com, linmiaohe@...wei.com,
mhocko@...e.com
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] mm: memory_hotplug: add TTU_HWPOISON for poisoned
folio during migrate
> We have faced a different race here as follow:
>
> CPU#0 cpu #1
> offline_pages
> do_migrate_range
> memory_failure
> TestSetPageHWPoison
> // folio is mark poison here
> unmap_poisoned_folio // should kill task here
> ...
> hwpoison_user_mappings
Interesting; TestSetPageHWPoison is called before we grab the folio
lock, so even grabbing that around unmap_poisoned_folio() cannot
completely help.
--
Cheers,
David / dhildenb
Powered by blists - more mailing lists