Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1990559lfo; Sat, 28 May 2022 12:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTFjWjTjB0EhpVq1G/KepHzVORxi4xCjbCD/DlgU4y2Z9r2+AMTaa1gTJxY5BXHVdzfgd/ X-Received: by 2002:a17:90a:6f41:b0:1e2:89af:5bfc with SMTP id d59-20020a17090a6f4100b001e289af5bfcmr7858530pjk.217.1653767734292; Sat, 28 May 2022 12:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653767734; cv=none; d=google.com; s=arc-20160816; b=cc9pXJ0ca+wgfY//0s+SYGj3Eb0eIKyHmOHWnIiCPD0CWRiKjRCF+bF+GEo/0yDIKp diUgZoiU/db++TiJ/YkHiC8L1qKrVNtrGhiUWxACl/nr5zgRpveQ5brmPjK43HWdT3JD ZUU0cZ5OiYaacJiBq0+ATOFZMqMDou6aF4F0YTDLI6WizJIhIz6wGpYWwu1BKoj6QkA6 SdV667m3ycgZghp4vdkUS4QDu07JkPqxU+ES7hp1/clnyVa6Wnl2rWb3D3xJpeA+GbdX pN/pvYcx82fl1L7ZpjuhvcHEDMRhbTONd1DsI7f/8NJhcalzslwPmELxmHQQKPNQpa8+ YUuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:references :in-reply-to:mime-version:dkim-signature; bh=8C6I5Q0ZOUAwk3pFTbjZ83irwPDvFOCUcomxT5QCekE=; b=GmPn+1ybFZ+Sz1c8xUJntim4Al1z74m9rk30cBUNqA9vxXWA9qpLp/ZN1V6wxXyooK b+BZSSnJVgVjG9EjtA84JJfzNZnWYI4EMFexstLhGoKcMyXbw4OzJ9ZMDts27noVeDr4 2qlDQScvw4sNb5sZrzUOCjlSjMcxK35CvgyQEDoNcWBqKYJV5LSpyaJ3Zz4+dFBuTYQU INkECWEYaAmmfPar4peuzmHfQlKrVCGfLayrYIXQLoD+mQlHIUf6Mpzc+M64mUsWaevf BWDivVtkz+DuqS3KSZSu9gzI547g6cpx71YCK0ZgQHSqZBerhN3wnWp84kFkwWTuie7x NudQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=N97LzN21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 36-20020a631364000000b0039d2ffc2de2si10720453pgt.789.2022.05.28.12.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=N97LzN21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 355898CCE2; Sat, 28 May 2022 12:15:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345076AbiEYUg0 (ORCPT + 99 others); Wed, 25 May 2022 16:36:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237203AbiEYUgY (ORCPT ); Wed, 25 May 2022 16:36:24 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CA0F18B31 for ; Wed, 25 May 2022 13:36:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 174046186E for ; Wed, 25 May 2022 20:36:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47A54C34117 for ; Wed, 25 May 2022 20:36:19 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="N97LzN21" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1653510977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8C6I5Q0ZOUAwk3pFTbjZ83irwPDvFOCUcomxT5QCekE=; b=N97LzN21ROmlBC6fmLyx0f5isH9GdcwF2m3Dsd2Gl47CSVDq/bBSdKzlKppei9d8+77iId fpcAinDWwtIr2RNaIbUHv4if06ta5K/3OwAHYM3OhES8Oolk7SOmm7VGfpDGKHYIqPxGM2 f1eEkVsl0s9dt5KFVtuIjCVLm/Db3qM= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id c3c0ee9c (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Wed, 25 May 2022 20:36:16 +0000 (UTC) Received: by mail-yb1-f172.google.com with SMTP id x2so37887858ybi.8 for ; Wed, 25 May 2022 13:36:16 -0700 (PDT) X-Gm-Message-State: AOAM5305c74SEdd0JbrqbAEf9XvC0vL5Nez66k/R8F/y6d25UI1JdKfA KraziTU80VQb5BQ1NOmW4Ff5fI6OyxZBbgGNXDg= X-Received: by 2002:a25:8d92:0:b0:656:a73e:a7f with SMTP id o18-20020a258d92000000b00656a73e0a7fmr1574878ybl.382.1653510975867; Wed, 25 May 2022 13:36:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:7110:6403:b0:17b:2ce3:1329 with HTTP; Wed, 25 May 2022 13:36:15 -0700 (PDT) In-Reply-To: References: <20220501192740.203963477@linutronix.de> <87fsl7j8bh.ffs@tglx> From: "Jason A. Donenfeld" Date: Wed, 25 May 2022 22:36:15 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch 0/3] x86/fpu: Prevent FPU state corruption To: LKML , x86@kernel.org, Filipe Manana , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey folks, An update on the VirtualBox thing (not that anybody here actually cares, but at least I've been nerd sniped): It looks like they've got a patch out now for it: https://www.virtualbox.org/attachment/ticket/20914/vbox-linux-5.18.patch It seems like they call kernel_fpu_begin() before loading guest fpu regs, but then immediately re-enable preemption. Yikes. So if another kernel task preempts that one and uses the fpu... And it makes me wonder the extent of this breakage prior (maybe not just hardirq? unsure.). Also, it apparently is only enabled for 5.18, so that doesn't help with old kernels. Oh well. All that development happens behind closed doors so probably not worth losing sleep over. Anyway, from a kernel perspective, there's now no urgency for us to do anything about this. VirtualBox won't compile for 5.18 without that patch, and given that Oracle fixed it, it doesn't appear to be our bug. Case closed. So if we go ahead with removing hardirq fpu support, it won't be due to this but for other motivations. Jason