lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpW0c=REGz0kG1BqwMWm2UHXVi3PfX8BTdgiRV46uO-Cpw@mail.gmail.com>
Date:	Wed, 10 Sep 2014 16:20:56 -0700
From:	Cong Wang <xiyou.wangcong@...il.com>
To:	"Rafael J. Wysocki" <rjw@...ysocki.net>
Cc:	Tejun Heo <tj@...nel.org>, LKML <linux-kernel@...r.kernel.org>,
	David Rientjes <rientjes@...gle.com>,
	Michal Hocko <mhocko@...e.cz>,
	Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [Patch v4 1/2] freezer: check OOM kill while being frozen

On Wed, Sep 10, 2014 at 4:38 PM, Rafael J. Wysocki <rjw@...ysocki.net> wrote:
> On Wednesday, September 10, 2014 01:30:25 PM Cong Wang wrote:
>> I am wondering if the folllowing check makes any sense with regarding
>> to rule out PM freeze:
>>
>>         if ((!pm_nosig_freezing && !pm_freezing) &&
>>             cgroup_freezing(current) && test_thread_flag(TIF_MEMDIE))
>>                 return true;
>>
>> PM will not freeze the process again if it is already frozen by cgroup,
>> so here we just make sure that it will not thaw if PM freeze is in progress.
>>
>> Am I missing anything?
>
> And where exactly would you like to put this check?  Into __refrigerator()?

Yes, still in should_thaw_current() which is called in __refrigerator().
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ