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]
Date:	Fri, 4 May 2012 13:49:08 -0700
From:	Nishanth Aravamudan <nacc@...ux.vnet.ibm.com>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	"Srivatsa S. Bhat" <srivatsa.bhat@...ux.vnet.ibm.com>,
	mingo@...nel.org, pjt@...gle.com, paul@...lmenage.org,
	akpm@...ux-foundation.org, rjw@...k.pl, nacc@...ibm.com,
	paulmck@...ux.vnet.ibm.com, tglx@...utronix.de,
	seto.hidetoshi@...fujitsu.com, rob@...dley.net, tj@...nel.org,
	mschmidt@...hat.com, berrange@...hat.com,
	nikunj@...ux.vnet.ibm.com, vatsa@...ux.vnet.ibm.com,
	linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
	linux-pm@...r.kernel.org
Subject: Re: [PATCH v2 0/7] CPU hotplug, cpusets: Fix issues with cpusets
 handling upon CPU hotplug

On 04.05.2012 [22:28:01 +0200], Peter Zijlstra wrote:
> On Fri, 2012-05-04 at 22:14 +0200, Peter Zijlstra wrote:
> > > Also, we need to fix this problem at the CPU Hotplug level itself, and
> > > not just for the suspend/resume case. Because, we have had numerous bug
> > > reports and people complaining about this issue, in various scenarios,
> > > including those that didn't involve suspend/resume.
> > 
> > NO, absolutely not and I will NAK any and all such nonsense. WTF is a
> > cpuset worth if you can run on random other cpus? 
> 
> Sorting your cpuset 'problem' isn't nowhere near enough to make hotplug
> 'safe'. unplug also destroys task_struct::cpus_allowed.
> 
> Try it:
> 
>  # schedtool -a 2 $$
>  # grep Cpus_allowed /proc/self/status
>  Cpus_allowed:   000004
>  # echo 0 > /sys/devices/system/cpu/cpu2/online
>  # grep Cpus_allowed /proc/self/status
>  Cpus_allowed:   ffffff
> 
> 
> See, hotplug is destructive, it has to be, there's no saying the cpu
> will every come back.

I think it's ok for hotplug to be destructive. But I guess I'm not
entirely sure why cpusets can't retain user-inputted
configuration/policy information even while destroying things currently?
And re-instating that policy if possible in the future?

> So mucking about trying to make cpusets non-destructive is pointless.
> 
> The real bug is people using hotplug (for all kinds of stupid stuff) and
> expecting anything different.

Probably true :)

-Nish

-- 
Nishanth Aravamudan <nacc@...ibm.com>
IBM Linux Technology Center

--
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