Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp6430imm; Thu, 11 Oct 2018 14:21:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV61Tizh/bTFZBqNNWSpQJW9960jiXchreuveMSa3bUCXvSQEwOJ8TM77jxEhAxj+ZVC3hl+0 X-Received: by 2002:a63:d30c:: with SMTP id b12-v6mr2904227pgg.61.1539292867447; Thu, 11 Oct 2018 14:21:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539292867; cv=none; d=google.com; s=arc-20160816; b=R8zoYrotAUP6pplxiXf3kytv53nld+Y1PZ8u+PTfaCTCioIESeX8SjSGk1W6ofuNpw lmXvugnwh1oSLLT0SuVaK5dfv1LGwCUg0nORYmF9UDNzw2JYs+dPtaG+3mVxNBFhgUWV +V879M7rECCK4nUqKx3UWg6zLRHHFWRWKSnT8cfZve1080PwrqQBMpTH7K8b7q61L+F8 ioJABkhh5KNibqOsGTmb9k2EyU5Gxq9g+xneyYc48AW8YXBTpfw1Gx1seLoccdK+Cx1o cMgVfS0Qcb3gXsR3zYTSH0hHR70je+pPOhzxwZZp3xOZWwqwv5nSW1F70Qe8sUsRZ42P mfbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=S4aT7Pk9RmPacOn1S0z3NTsyekdJZqK1fMtDNonuVxE=; b=rrZALTrjbBeNNrC91xelE6+in0KgpZTBhuBIh7mPVhiSD4IadxK0vVYCuDEtrWubfN Sg4axYQy2SY6U17DEzZIDy5Z7ptB3aKaO0nxVpI7J46OsE393f8xHlmkLAj2+szv+MZk GunGGiwARyao5/G7A1m8V0O6PlDv8B5XcxLNC7eWyNhsnNyy+kjjDmJYS8gpIjwfoMkv 7/5BrMD3M7je/ThfIC+uz4DVeDW2jK2+TB1GnCFMk7+rzoVa4983yJf6DPIP9vzT3GfF /gWTspsFbtRrlMpQvf4vwW5sobinR2RLfC0mq4yCNANpT9l6HasxfxFx0g/ejyzxI5FP lYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bn9JxS+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si31116596pfu.143.2018.10.11.14.20.46; Thu, 11 Oct 2018 14:21:07 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=bn9JxS+v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727194AbeJLEsD (ORCPT + 99 others); Fri, 12 Oct 2018 00:48:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:47766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbeJLEsC (ORCPT ); Fri, 12 Oct 2018 00:48:02 -0400 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CCBB82087D for ; Thu, 11 Oct 2018 21:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539292738; bh=vzl9VntTyBrDRJTcWY5nq5kb+ei2A16HRd8uPb5bOQk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bn9JxS+vH0nHuysVnLTNP1NShosStTIX9WYsU+7aLEKIgGm1imhCHydBYSYc28tof 5CAUPG4twIaMnB16/K4/4suKhI+pMqe+QRtYFokAwyTfyK6lgak0Ids6sd6WbyClAB +GuB6ne6ULtT4OStjN7yr/f5/7S2Mq4Jh3QxP3UA= Received: by mail-wr1-f49.google.com with SMTP id x12-v6so11201950wru.8 for ; Thu, 11 Oct 2018 14:18:57 -0700 (PDT) X-Gm-Message-State: ABuFfohOg4Sl5UaEGMNmJttqsPWyvYnzvYChoiEh6t7AJEKdcpRLeogx qOApDrzPdmN/JbA4vCvMzgdN2JGOlr4vJ/wIlaloqw== X-Received: by 2002:adf:9792:: with SMTP id s18-v6mr3135084wrb.283.1539292736267; Thu, 11 Oct 2018 14:18:56 -0700 (PDT) MIME-Version: 1.0 References: <20181004140547.13014-1-bigeasy@linutronix.de> <20181004140547.13014-9-bigeasy@linutronix.de> In-Reply-To: From: Andy Lutomirski Date: Thu, 11 Oct 2018 14:18:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/11] x86/fpu: Always store the registers in copy_fpstate_to_sigframe() To: christophe.de.dinechin@gmail.com Cc: Sebastian Andrzej Siewior , LKML , X86 ML , Andrew Lutomirski , Paolo Bonzini , Radim Krcmar , kvm list , "Jason A. Donenfeld" , Rik van Riel , Dave Hansen Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 11, 2018 at 10:50 AM Christophe de Dinechin wrote: > > > Sebastian Andrzej Siewior writes: > > > From: Rik van Riel > > > > copy_fpstate_to_sigframe() has two callers and both invoke the function only if > > fpu->initialized is set. > > One of the callers is in a different file. > Not sure if that warrants some kind of check that > fpu->initialized is set? I still kind of think that fpu->initialized should be removed entirely as part of this series. Keeping unnecessary complication around in the FPU code increaseds the scope for interesting bugs and makes understanding the code considerably harder.