linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION] madvise(MADV_REMOVE) corrupts pages in THP-backed MAP_SHARED memfd (bisected to 7460b470a131)
@ 2026-02-26 20:34 Bas van Dijk
  2026-02-26 20:49 ` Zi Yan
  0 siblings, 1 reply; 4+ messages in thread
From: Bas van Dijk @ 2026-02-26 20:34 UTC (permalink / raw)
  To: Zi Yan, Andrew Morton, Matthew Wilcox (Oracle)
  Cc: regressions, linux-mm, linux-fsdevel, Eero Kelly, Andrew Battat,
	Adam Bratschi-Kaye

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

#regzbot introduced: 7460b470a131f985a70302a322617121efdd7caa

Hey folks,

We discovered madvise(MADV_REMOVE) on a 4KiB range within a
huge-page-backed MAP_SHARED memfd region corrupts nearby pages.

Using the reproducible test in
https://github.com/dfinity/thp-madv-remove-test this was bisected to the
first bad commit:

commit 7460b470a131f985a70302a322617121efdd7caa
Author: Zi Yan <ziy@nvidia.com>
Date:   Fri Mar 7 12:40:00 2025 -0500

    mm/truncate: use folio_split() in truncate operation

v7.0-rc1 still has the regression.

The repo mentioned above explains how to reproduce the regression and
contains the necessary logs of failed runs on 7460b470a131 and v7.0-rc1, as
well as a successful run on its parent 4b94c18d1519.

Best regards,

Bas van Dijk
DFINITY Foundation

[-- Attachment #2: Type: text/html, Size: 1151 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-02-26 21:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-26 20:34 [REGRESSION] madvise(MADV_REMOVE) corrupts pages in THP-backed MAP_SHARED memfd (bisected to 7460b470a131) Bas van Dijk
2026-02-26 20:49 ` Zi Yan
2026-02-26 21:06   ` Zi Yan
2026-02-26 21:16     ` [External Sender] " Bas van Dijk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox