Re: [PATCH memcg] memcg: prohibit unconditional exceeding the limit of dying tasks

From
Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date
2021-09-10 13:05:19
Also in
cgroups, lkml
Reply to
Vasily Averin, 2021-09-10
On 2021/09/10 21:39, Vasily Averin wrote:
The kernel currently allows dying tasks to exceed the memcg limits.
The allocation is expected to be the last one and the occupied memory
will be freed soon.
This is not always true because it can be part of the huge vmalloc
allocation. Allowed once, they will repeat over and over again.
Moreover lifetime of the allocated object can differ from
In addition the lifetime of the dying task.
Can't we add fatal_signal_pending(current) test to vmalloc() loop?
Multiple such allocations running concurrently can not only overuse
the memcg limit, but can lead to a global out of memory and,
in the worst case, cause the host to panic.

Signed-off-by: Vasily Averin <redacted>
  
Thread (34 messages) 34 messages, 4 authors, last reply 2021-10-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help