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: <20080422132614.GC7311@elte.hu>
Date:	Tue, 22 Apr 2008 15:26:14 +0200
From:	Ingo Molnar <mingo@...e.hu>
To:	Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
Cc:	akpm@...l.org, "H. Peter Anvin" <hpa@...or.com>,
	Jeremy Fitzhardinge <jeremy@...p.org>,
	Steven Rostedt <rostedt@...dmis.org>,
	"Frank Ch. Eigler" <fche@...hat.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix x86_64 page fault scheduler race


* Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca> wrote:

> You are right in that x86_64 does not seems to play as safely as 
> x86_32 on this matter; it uses current->mm. Probably it shouldn't 
> assume "current" is valid. Actually, I don't see where x86_64 disables 
> interrupts around __switch_to, so this would seem to be a race 
> condition. Or have I missed something ?

the scheduler disables interrupts around __switch_to(). (x86 does not 
set __ARCH_WANT_INTERRUPTS_ON_CTXSW)

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