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] [day] [month] [year] [list]
Message-ID: <49BE7C57.6060100@goop.org>
Date:	Mon, 16 Mar 2009 09:20:39 -0700
From:	Jeremy Fitzhardinge <jeremy@...p.org>
To:	Avi Kivity <avi@...hat.com>
CC:	Sergio Luis <eeeesti@...il.com>, Ingo Molnar <mingo@...e.hu>,
	"Rafael J. Wysocki" <rjw@...k.pl>, Pavel Machek <pavel@...e.cz>,
	Linux-kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: x86: asm doubt

Avi Kivity wrote:
> Jeremy Fitzhardinge wrote:
>> In 32-bit mode, moving to a segment register can fault if the 
>> underlying GDT/LDT entry is invalid.  In 64-bit mode, segment 
>> registers are mostly decorative and have no function, and moving 
>> arbitrary values into them doesn't fault, making the exception 
>> catching unnecessary.
>
> 64-bit mode will in fact fault if an access is made outside the 
> GDT/LDT, or of the descriptor is invalid.

Oh, I didn't think it bothered.  I guess I'm conflating that with the 
fact that it doesn't apply any of the segment properties to memory 
accesses.  Anyway, in that case the 64-bit code should definitely be 
using the standard segment accessors.

    J

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