Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp268633imu; Fri, 7 Dec 2018 00:18:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/VZzUtjLW1XxvN8fQaBl9IEWVWr2WfzBhUdKXV1SVDjXFZQgkJLJJfaao2Y7tnT1xHE40EL X-Received: by 2002:a62:824c:: with SMTP id w73mr1319537pfd.150.1544170694264; Fri, 07 Dec 2018 00:18:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544170694; cv=none; d=google.com; s=arc-20160816; b=KTevJpiz4dSZrKvXtURNcCKeefPgDFIdcMDUAw7ZHOqAmWxnbNnsn67TZ8FfwagH2y Ag6HeC3YF2rlYGDE9VgBkA1LylIjMgRMRlgwIC9lFy54qq799tzD527Z69qVekAeEqtT gTrtnG7AvLfXyHFVUWRHVmIEAUOtjxbE5RXQ0+lxFsxcDf/1KMDYNLf3lp7YXDX5tyeO lrl7v+K+XPAeh9VDdBeXCKeEH88tdKfcQrxmQaKjMkW0pE/fAub2SLbOMnp3DKc58C1p 86+SaIEoY49KULnHn9JPbWse3TNa70FnldX5q4OwX3GYcq+E9zpgoxvH0CcXMBDeIkbJ WKtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=a7mYSp5eD0j+6qCu84AxxoKH0HHz9ZN9wKimj3UY/no=; b=hbU2C6xSFRq7EW4Z0+5VB359zKlPQ9G4RRXnY1aY/PnY/VNuv15xxzjC2c6cqoA1mv J3XEmwlwNU8DgdbAY+NA3OxNa62zO7ZJLzmgDYTh9eaLBIqC6piMIoe1+L/OK5uZ7mjH XQ9PS3IreJBD3dw1ww4+J03PPuIatH2VdUhI+R9L2tQnp8HKbjsWkb7IweZ8ODdeuKrq h3/ATGaTTrJLzGNZPOwQ3XP/0hsMxHWFQgymDISDpXXrn8PU6tAfnqU5vnkMtrou/ggx I0/cPKxb6rszpxwNpUlr05Q8HVF1mtJk7jQ2hsUV3xnVS1/G5migCpztgkAMLeOgghEe p51g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m65si2656951pfg.282.2018.12.07.00.17.57; Fri, 07 Dec 2018 00:18:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725989AbeLGIRV (ORCPT + 99 others); Fri, 7 Dec 2018 03:17:21 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:53819 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbeLGIRU (ORCPT ); Fri, 7 Dec 2018 03:17:20 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1gVBJx-00025W-F9; Fri, 07 Dec 2018 09:17:13 +0100 Date: Fri, 7 Dec 2018 09:17:13 +0100 From: Sebastian Andrzej Siewior To: Borislav Petkov Cc: linux-kernel@vger.kernel.org, x86@kernel.org, Andy Lutomirski , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , kvm@vger.kernel.org, "Jason A. Donenfeld" , Rik van Riel , Dave Hansen Subject: Re: [PATCH 08/29] x86/fpu: Remove fpu->initialized usage in __fpu__restore_sig() Message-ID: <20181207081712.dys7zeh546e2r3wn@linutronix.de> References: <20181128222035.2996-1-bigeasy@linutronix.de> <20181128222035.2996-9-bigeasy@linutronix.de> <20181206200722.GF3986@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181206200722.GF3986@zn.tnic> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-12-06 21:07:22 [+0100], Borislav Petkov wrote: > > @@ -314,41 +312,34 @@ static int __fpu__restore_sig(void __user *buf, void __user *buf_fx, int size) > > * thread's fpu state, reconstruct fxstate from the fsave > > * header. Validate and sanitize the copied state. > > */ > > + union fpregs_state *state; > > + void *tmp; > > struct user_i387_ia32_struct env; > > int err = 0; > > Sort those in reverse xmas order pls. > > Otherwise looks ok. You mean: struct user_i387_ia32_struct env; + union fpregs_state *state; + void *tmp; int err = 0; ? Sebastian