Thread (5 messages) 5 messages, 3 authors, 2021-12-22

Re: [PATCH -next] mm/hwpoison: clear MF_COUNT_INCREASED before retrying get_any_page()

From: Oscar Salvador <osalvador@suse.de>
Date: 2021-12-21 09:37:35
Also in: lkml

On Tue, Dec 21, 2021 at 03:49:08PM +0800, Liu Shixin wrote:
Hulk Robot reported a panic in put_page_testzero() when testing madvise()
with MADV_SOFT_OFFLINE. The BUG() is triggered when retrying get_any_page().
This is because we keep MF_COUNT_INCREASED flag in second try but the refcnt
is not increased.
[...]
Fixes: b94e02822deb ("mm,hwpoison: try to narrow window race for free pages")
Reported-by: Hulk Robot <redacted>
Signed-off-by: Liu Shixin <redacted>
Reviewed-by: Oscar Salvador <osalvador@suse.de>


-- 
Oscar Salvador
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help