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: <20070706171159.GB8174@one.firstfloor.org>
Date:	Fri, 6 Jul 2007 19:11:59 +0200
From:	Andi Kleen <andi@...stfloor.org>
To:	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc:	Andi Kleen <andi@...stfloor.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [RFC] Thread Migration Preemption

On Fri, Jul 06, 2007 at 10:41:44AM -0400, Mathieu Desnoyers wrote:
> I haven't thought about making it the default for kernel space
> preemption, but yes, it would make sense.

Now it's too late -- getcpu() has infected the kernel everywhere.
It would have made sense a few years ago.


> ... getcpu()...

Hmm ok, although i suspect it's rare to assume that. But understood
you don't want to audit all getcpu users because of this.

> using a short instead of an int on modern x86 will cause pipeline stalls
> due to partial register use.

Sorry, that's totally bogus. Primarily because the access would be directly
on memory and there is no partial register tracking there.

Besides pipeline stall is not the correct description on what would
happen if you used a register, the worst you get is a single false dependency
but no pipeline flush.

Besides the latest x86 cpus (C2, K8) don't have much trouble with these
false dependencies in general.

> usage, since it is followed by an unsigned long; gcc structure alignment


> will put padding instead of the integer, which does not buy us anything

on i386 unsigned long is 4 bytes.

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