[Devel] [PATCH rh7 1/2] oom: Do not mark victim a task without mm

2022-11-23 Thread Konstantin Khorenko
Currently it's possible to mark a task as a victim even in case it has already cleared its ->mm. This might lead (and leads) to a situation when oom_unlock() believes the OOM context will be released by the "victim" do_exit() -> exit_oom_victim(), but our "victim" already passed the point of calli

Re: [Devel] [PATCH rh7 1/2] oom: Do not mark victim a task without mm

2022-11-26 Thread nb
On 23.11.22 г. 20:53 ч., Konstantin Khorenko wrote: Currently it's possible to mark a task as a victim even in case it has already cleared its ->mm. This might lead (and leads) to a situation when oom_unlock() believes the OOM context will be released by the "victim" do_exit() -> exit_oom_vict

Re: [Devel] [PATCH rh7 1/2] oom: Do not mark victim a task without mm

2022-11-28 Thread Konstantin Khorenko
-- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 26.11.2022 23:15, nb wrote: On 23.11.22 г. 20:53 ч., Konstantin Khorenko wrote: Currently it's possible to mark a task as a victim even in case it has already cleared its ->mm. This might lead (and leads) to a situation