lkml.org 
[lkml]   [2014]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [Patch v4 1/2] freezer: check OOM kill while being frozen
Date
On Tuesday, September 09, 2014 07:50:12 AM Tejun Heo wrote:
> Hello,
>
> On Tue, Sep 09, 2014 at 12:48:28AM +0200, Rafael J. Wysocki wrote:
> > Well, not exactly from anywhere. Just from where try_to_freeze() is called
> > I suppose?
>
> Yeap, anywhere try_to_freeze() may be called.
>
> > Which means that if this is a user space task, it won't to a lot before dying,
> > will it?
>
> Userland tasks aren't likely to a lot of damages before dying but then
> again there's no guarantee. As it currently stands, try_to_freeze()
> can be anywhere.

Well, in that case the TIF_MEMDIE test alone is not sufficient in my opinion,
because we can't guarantee that the task will not do something it was frozen
to prevent it from doing.

I'm not sure about the cgroups freezing case, however.

Rafael



\
 
 \ /
  Last update: 2014-09-09 01:21    [W:0.090 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site