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 Content-Length: 747 Lines: 19 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.