From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754287AbdC2Wp3 convert rfc822-to-8bit (ORCPT ); Wed, 29 Mar 2017 18:45:29 -0400 Received: from terminus.zytor.com ([65.50.211.136]:53313 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752656AbdC2Wp1 (ORCPT ); Wed, 29 Mar 2017 18:45:27 -0400 Date: Wed, 29 Mar 2017 15:28:58 -0700 User-Agent: K-9 Mail for Android In-Reply-To: References: <20170329203908.GA39222@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] x86/fpu: move FPU state into separate cache To: Linus Torvalds , Andy Lutomirski CC: Kees Cook , LKML , Rik van Riel , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Peter Zijlstra , Dave Hansen , Yu-cheng Yu , Masahiro Yamada , Borislav Petkov , Christian Borntraeger , Thomas Garnier , Brian Gerst , He Chen , Mathias Krause , Fenghua Yu , Piotr Luc , Kyle Huey , Len Brown , KVM , "kernel-hardening@lists.openwall.com" From: hpa@zytor.com Message-ID: <94D018AF-07C3-47BE-9C62-4B2923D3E39B@zytor.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 29, 2017 2:41:00 PM PDT, Linus Torvalds wrote: >On Wed, Mar 29, 2017 at 2:35 PM, Andy Lutomirski >wrote: >> >> Randomization also needs to leave thread_info at the beginning. Can >it do that? > >Good point, and good question. No idea if the gcc extension can do, >but yes, it clearly needs a "you can't move this entry". > >I assume it has some such capability already, because it's fairly >common to have that kind of "beginning of structure if fixed" due to >unions of structures anyway. > > Linus An alternative is to wrap the randomized structure inside a nonrandomized wrapper structure. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. From mboxrd@z Thu Jan 1 00:00:00 1970 From: hpa@zytor.com Subject: Re: [PATCH] x86/fpu: move FPU state into separate cache Date: Wed, 29 Mar 2017 15:28:58 -0700 Message-ID: <94D018AF-07C3-47BE-9C62-4B2923D3E39B@zytor.com> References: <20170329203908.GA39222@beast> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Kees Cook , LKML , Rik van Riel , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Peter Zijlstra , Dave Hansen , Yu-cheng Yu , Masahiro Yamada , Borislav Petkov , Christian Borntraeger , Thomas Garnier , Brian Gerst , He Chen , Mathias Krause , Fenghua Yu , Piotr Luc , Andy Lutomirski Return-path: List-Post: List-Help: List-Unsubscribe: List-Subscribe: In-Reply-To: List-Id: kvm.vger.kernel.org On March 29, 2017 2:41:00 PM PDT, Linus Torvalds wrote: >On Wed, Mar 29, 2017 at 2:35 PM, Andy Lutomirski >wrote: >> >> Randomization also needs to leave thread_info at the beginning=2E Can >it do that? > >Good point, and good question=2E No idea if the gcc extension can do, >but yes, it clearly needs a "you can't move this entry"=2E > >I assume it has some such capability already, because it's fairly >common to have that kind of "beginning of structure if fixed" due to >unions of structures anyway=2E > > Linus An alternative is to wrap the randomized structure inside a nonrandomized = wrapper structure=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 29 Mar 2017 15:28:58 -0700 In-Reply-To: References: <20170329203908.GA39222@beast> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: hpa@zytor.com Message-ID: <94D018AF-07C3-47BE-9C62-4B2923D3E39B@zytor.com> Subject: [kernel-hardening] Re: [PATCH] x86/fpu: move FPU state into separate cache To: Linus Torvalds , Andy Lutomirski Cc: Kees Cook , LKML , Rik van Riel , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Peter Zijlstra , Dave Hansen , Yu-cheng Yu , Masahiro Yamada , Borislav Petkov , Christian Borntraeger , Thomas Garnier , Brian Gerst , He Chen , Mathias Krause , Fenghua Yu , Piotr Luc , Kyle Huey , Len Brown , KVM , "kernel-hardening@lists.openwall.com" List-ID: On March 29, 2017 2:41:00 PM PDT, Linus Torvalds wrote: >On Wed, Mar 29, 2017 at 2:35 PM, Andy Lutomirski >wrote: >> >> Randomization also needs to leave thread_info at the beginning=2E Can >it do that? > >Good point, and good question=2E No idea if the gcc extension can do, >but yes, it clearly needs a "you can't move this entry"=2E > >I assume it has some such capability already, because it's fairly >common to have that kind of "beginning of structure if fixed" due to >unions of structures anyway=2E > > Linus An alternative is to wrap the randomized structure inside a nonrandomized = wrapper structure=2E --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E