Re: [PATCH 1/3] mm, swap: ratelimit bad swap entry reports in get_swap_device()
Breno Leitao <[email protected]>
| Newsgroups | org.kvack.linux-mm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 11, 2026 at 05:48:52PM +0100, Pedro Falcato wrote: > > Couldn't some of the stuff you drop here (different entries) be similarly valuable? > > I think we generally do a terribly lousy job reporting these kinds of > failures. Would be awesome to log this elsewhere, or possibly send > something like a SIGBUS to the faulting process, for instance. That's precisely what the follow-up patch in this series handles. Patch "[PATCH 3/3] mm: fail the fault on a malformed swap entry instead of retrying it" propagates VM_FAULT_SIGBUS all the way up, so the application gets SIGBUS'd instead of retrying (and re-printing this message).