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: <961aa3350908030811n6467b2d7hf42dfd58e3a438e7@mail.gmail.com>
Date:	Tue, 4 Aug 2009 00:11:24 +0900
From:	Akinobu Mita <akinobu.mita@...il.com>
To:	"H. Peter Anvin" <hpa@...or.com>
Cc:	Ingo Molnar <mingo@...e.hu>, mingo@...hat.com,
	linux-kernel@...r.kernel.org, tglx@...utronix.de,
	linux-tip-commits@...r.kernel.org
Subject: Re: [tip:x86/asm] x86: Introduce GDT_ENTRY_INIT()

2009/8/3 H. Peter Anvin <hpa@...or.com>:
> Ingo Molnar wrote:
>>
>> * tip-bot for Akinobu Mita <akinobu.mita@...il.com> wrote:
>>
>>> Commit-ID:  d520da1173abd1f918b7e690220e14ba0fc56cfc
>>> Gitweb:
>>> http://git.kernel.org/tip/d520da1173abd1f918b7e690220e14ba0fc56cfc
>>> Author:     Akinobu Mita <akinobu.mita@...il.com>
>>> AuthorDate: Sun, 19 Jul 2009 00:12:20 +0900
>>> Committer:  Ingo Molnar <mingo@...e.hu>
>>> CommitDate: Sun, 19 Jul 2009 18:27:53 +0200
>>>
>>> x86: Introduce GDT_ENTRY_INIT()
>>>
>>> GDT_ENTRY_INIT is static initializer of desc_struct.
>>>
>>> We already have similar macro GDT_ENTRY() but it's static
>>> initializer for u64 and it cannot be used for desc_struct.
>>>
>>> Signed-off-by: Akinobu Mita <akinobu.mita@...il.com>
>>> LKML-Reference: <20090718151219.GD11294@...alhost.localdomain>
>>> Signed-off-by: Ingo Molnar <mingo@...e.hu>
>>>
>
> OK, I spotted the following error, which certainly would explain a crash on
> an APM machine:
>
>        /* data */
> -       [GDT_ENTRY_APMBIOS_BASE+2]      = { { { 0x0000ffff, 0x00409200 } }
> },
> +       [GDT_ENTRY_APMBIOS_BASE+2]      = GDT_ENTRY_INIT(0x409a, 0, 0xffff),

Oops, I really should have checked the binary because the compiler should
generate same code with this patch.

> Also, we shouldn't be initializing the A bits to clear unless we actually
> plan to check the A (and D) bits... that's just a waste of CPU cycles.

I'll check it, too.
--
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