Re: [PATCH v2 1/3] mm, swap: ratelimit bad swap entry reports
Nhat Pham <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <CAKEwX=PnuV1RoAV2ghNH8JgQfDGskfRpGdRA_K9zP1C54YLPiA@mail.gmail.com> |
On Thu, Aug 13, 2026 at 3:03 AM Breno Leitao <[email protected]> wrote: > > A corrupt page table hands the same bogus entry to get_swap_device() on > every access to the mapping, and every rejection is logged. One machine > logged 6185620 copies of the same line in a few hours. > > swap_dup_entry_direct() prints the same message from the fork path, once > per call: the WARN_ON_ONCE() guarding it warns once, the pr_err() inside > does not. > > Rate limit all three prints. > > Signed-off-by: Breno Leitao <[email protected]> Reviewed-by: Nhat Pham <[email protected]>