Re: [PATCH v2] mm: process_mrelease: introduce PROCESS_MRELEASE_REAP_KILL flag
From: Suren Baghdasaryan
Date: Thu Apr 30 2026 - 13:26:21 EST
On Thu, Apr 30, 2026 at 9:34 AM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Thu, 30 Apr 2026 17:32:40 +0200 Michal Hocko <mhocko@xxxxxxxx> wrote:
>
> > On Thu 30-04-26 07:43:05, Andrew Morton wrote:
> > > On Wed, 29 Apr 2026 14:13:59 -0700 Minchan Kim <minchan@xxxxxxxxxx> wrote:
> > >
> > > > Currently, process_mrelease() requires userspace to send a SIGKILL signal
> > > > prior to invocation. This separation introduces a scheduling race window
> > > > where the victim task may receive the signal and enter the exit path
> > > > before the reaper can invoke process_mrelease().
> > >
> > > Does process_mrelease() have a manpage? My googling was a fail.
> >
> > It does. Very well hidden in 884a7e5964e06
>
>
> Well, that didn't appear to make it into the manpages project and it
> doesn't describe the expected usage: need to kill the process first.
> But I guess all the needed info is in
> tools/testing/selftests/mm/mrelease_test.c.
>
> https://lwn.net/Articles/864184/ is useful.
I'll try to carve out some time to post a proper manpage for it.
Thanks for pointing this out!