Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6033151yba; Wed, 1 May 2019 05:00:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPF+x/141NxpLoars5vIpt1aKX4oW6LkyNior7mlyyeDULFz2N9oww5wFrM49lAv4PiM3z X-Received: by 2002:a17:902:5a81:: with SMTP id r1mr20862447pli.147.1556712047148; Wed, 01 May 2019 05:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556712047; cv=none; d=google.com; s=arc-20160816; b=aWxtabBMQSYitWzu/yoHs+3TitTjfA0g3SuHBjaUrErf6dTGcj4sMS1NTgmHgGqq4F jmBsTjEbOEdlkEMwtPXZ4AqRJNvbG9UISzFU/wIjh06qNn5tyBrn5KsBwJK91Cp5uVYH a4pinDqBIHLY8oik6vpMaKx4zm9j7UoDuwSFjyYv85D4yFiMvV6s0kJ0wFPUGA1Yi91Y WMr1oh8HUsTcGMXV9tngfYIFiFHuHD4O5df1DGdS432z+sCZBfDAuGvSDIc0ntMyEC2E 5Z30r+y8lohayKQ1E6BSFYwj1uh/Zh09IezoJQRmt4UjBuSGO9fkG0iLTYIdH7FQ4Qzt 3M1A== 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=RxR8FBz6JFCk7RcN2YvGJnhnM71+2dxXMCORvzK5QNk=; b=u3HZl1kMZ29DW7A7ZEh5uhlRc7F71L/gjqkICpqwGD5JNEfKJ1ONIaGLhUsUQHM4b6 XCFhRICTkY1OgRy8wHlu1+RifZ9jJD3xNWO600YiYmpnXIOJWkfFPJ+E+LHj83toaavn 7di2gfBL3hN+TikB7UsCBvPheuYL5jUp8SxY3JgO/rPb8T52wXJWy8aGnopujGxOyrw3 gdFFJgHp8q8ps+GZ7hpEv5M2ymG3aJhRdfYOajkl52qBR1k+hRqHlVL7kWbBfuNxlDCZ l3Y5IvgBvClYqgbrBDd5VA3XAPOF8sNb6oAkwGENdBNhSDrUKl3GoFk5JXm4kP5i6Uik wTjg== 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 u8si17213058pgm.596.2019.05.01.05.00.31; Wed, 01 May 2019 05:00:47 -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; 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 S1726414AbfEAL7e (ORCPT + 99 others); Wed, 1 May 2019 07:59:34 -0400 Received: from bmailout1.hostsharing.net ([83.223.95.100]:55325 "EHLO bmailout1.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbfEAL7d (ORCPT ); Wed, 1 May 2019 07:59:33 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 31CB530000F2A; Wed, 1 May 2019 13:59:31 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id EE4CF233EA5; Wed, 1 May 2019 13:59:30 +0200 (CEST) Date: Wed, 1 May 2019 13:59:30 +0200 From: Lukas Wunner To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Sebastian Andrzej Siewior , Borislav Petkov , Rik van Riel , "H. Peter Anvin" , "Jason A. Donenfeld" , Andy Lutomirski , Ard Biesheuvel , Dave Hansen , Ingo Molnar , Nicolai Stange , Paolo Bonzini , Radim =?iso-8859-1?B?S3I/P23hPz8=?= , Thomas Gleixner , kvm ML , linux-efi , x86-ml Subject: Re: [PATCH 4.19 083/100] x86/fpu: Dont export __kernel_fpu_{begin,end}() Message-ID: <20190501115930.wa7ubea67rmsoqo7@wunner.de> References: <20190430113608.616903219@linuxfoundation.org> <20190430113612.682532449@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190430113612.682532449@linuxfoundation.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 30, 2019 at 01:38:52PM +0200, Greg Kroah-Hartman wrote: > commit 12209993e98c5fa1855c467f22a24e3d5b8be205 upstream. > > There is one user of __kernel_fpu_begin() and before invoking it, > it invokes preempt_disable(). So it could invoke kernel_fpu_begin() > right away. The 32bit version of arch_efi_call_virt_setup() and > arch_efi_call_virt_teardown() does this already. > > The comment above *kernel_fpu*() claims that before invoking > __kernel_fpu_begin() preemption should be disabled and that KVM is a > good example of doing it. Well, KVM doesn't do that since commit > > f775b13eedee2 ("x86,kvm: move qemu/guest FPU switching out to vcpu_run") > > so it is not an example anymore. > > With EFI gone as the last user of __kernel_fpu_{begin|end}(), both can > be made static and not exported anymore. This is just a cleanup and therefore doesn't seem to satisfy the rules for stable patches per Documentation/process/stable-kernel-rules.rst ("It must fix a real bug that bothers people / fix a problem that causes a build error"). Why is it being queued up for stable and why are the rules disregarded here? Thanks, Lukas