[lkml]   [2018]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 0/2] mm->owner to mm->memcg fixes
Michal Hocko <> writes:

> On Wed 23-05-18 14:46:43, Eric W. Biederman wrote:
> [...]
>> As two processes sharing an mm is useless and highly unlikely there is
>> no need to handle this case well, it just needs to be handled well
>> enough to prevent an indefinite loop. So when css_tryget_online fails
>> just treat the mm as belong to the root memory cgroup.
> Does that mean that a malicious user can construct such a task and
> runaway from its limits?

Unfortunately if the memory cgroup is delegated than yes that can
happen. So removing the loop in get_mem_cgroup_from_mm won't work.


 \ /
  Last update: 2018-05-31 19:45    [W:0.116 / U:4.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site