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: <CAMzpN2gTZGpCDghC5488ejCrj_S2La4mKf1X+SrO0p1Mh4t0HQ@mail.gmail.com>
Date:	Thu, 16 Jul 2015 11:57:36 -0400
From:	Brian Gerst <brgerst@...il.com>
To:	Andy Lutomirski <luto@...capital.net>
Cc:	X86 ML <x86@...nel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Ingo Molnar <mingo@...nel.org>,
	"H. Peter Anvin" <hpa@...or.com>,
	Denys Vlasenko <dvlasenk@...hat.com>,
	Linus Torvalds <torvalds@...ux-foundation.org>
Subject: Re: [PATCH 1/7] x86/vm86: Clean up saved_fs/gs

On Thu, Jul 16, 2015 at 11:45 AM, Andy Lutomirski <luto@...capital.net> wrote:
> On Thu, Jul 16, 2015 at 4:46 AM, Brian Gerst <brgerst@...il.com> wrote:
>> There is no need to save FS and non-lazy GS outside the 32-bit regs.  Lazy GS
>> still needs to be saved because it wasn't saved on syscall entry.
>
> I think I'm missing something.  Why can't you just lazy_save_gs into regs32->gs?
>
> --Andy

That is probably a better idea.  The gs field exists in pt_regs but is
unused in lazy mode.  Could also change switch_to() to store GS in
pt_regs instead of thread.gs, which would simplify ptrace a bit.

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