On 10 Nov 2024, at 16:11, Hugh Dickins wrote: > Though even more elusive than before, list_del corruption has still been > seen on THP's deferred split queue. > > The idea in commit e66f3185fa04 was right, but its implementation wrong. > The context omitted an important comment just before the critical test: > "split_folio() removes folio from list on success." In ignoring that > comment, when a THP split succeeded, the code went on to release the > preceding safe folio, preserving instead an irrelevant (formerly head) > folio: which gives no safety because it's not on the list. Fix the logic. > > Fixes: e66f3185fa04 ("mm/thp: fix deferred split queue not partially_mapped") > Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx> > --- > mm/huge_memory.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Thanks. Reviewed-by: Zi Yan <ziy@xxxxxxxxxx> -- Best Regards, Yan, Zi
Attachment:
signature.asc
Description: OpenPGP digital signature