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: <alpine.LFD.1.10.0807142104250.3017@woody.linux-foundation.org>
Date:	Mon, 14 Jul 2008 21:12:38 -0700 (PDT)
From:	Linus Torvalds <torvalds@...ux-foundation.org>
To:	Max Krasnyansky <maxk@...lcomm.com>
cc:	Dmitry Adamushko <dmitry.adamushko@...il.com>,
	Vegard Nossum <vegard.nossum@...il.com>,
	Paul Menage <menage@...gle.com>, Paul Jackson <pj@....com>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>, miaox@...fujitsu.com,
	rostedt@...dmis.org, Thomas Gleixner <tglx@...utronix.de>,
	Ingo Molnar <mingo@...e.hu>,
	Linux Kernel <linux-kernel@...r.kernel.org>
Subject: Re: current linux-2.6.git: cpusets completely broken



On Mon, 14 Jul 2008, Max Krasnyansky wrote:
> 
> Did you guys an updated patch ? Dmitry pointed out several things that Linus
> missed in his original version. I guess I can go through the thread and
> reconstruct that but if you have a patch I can try let me know.

I didn't update it, and right now I'm just merging too much (and 
discussing the merges) to have time.

The patch really needs to have some scheduler person look at the use fo 
cpu_active_map - I was kind of hoping that Ingo would.

The other thing I wish somebody would at least double-check (and 
preferably just remove) is the !CPU_HOTPLUG special case. For that case, I 
literally did

	#define cpu_active_map cpu_online_map

and just depended on the fact that the few cases that touched 
cpu_online_map even when CPU_HOTPLUG was disabled would do

	if (cpu_online(cpu))
		set_cpu(cpu, cpu_active_map);

(or something - I ended up discaring the patch as I was doing the whole 
2.6.26 release, so I don't even have it in front of me right now, just in 
my email archives and in my memory).

And quite frankly, I don't think that was a good idea. It was exactly the 
sort of "subtle cleverness" that I myself argue against. So I think that 
aliasing of cpu_active/online_map was a mistake - it was kind of cute, but 
there's really no good reason to do it. It's not like that one CPU map 
wastes any memory, and the special-case simply isn't worth it.

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