Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp379751iob; Wed, 18 May 2022 04:21:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSkInFVv3zsEzjmxNv0W7aGmc1GaNf754PqLLjkXHPX5qZhocs+fGZ1fNCwS/3h+R2MnbX X-Received: by 2002:a63:f204:0:b0:3c6:a549:567c with SMTP id v4-20020a63f204000000b003c6a549567cmr22911789pgh.618.1652872869895; Wed, 18 May 2022 04:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652872869; cv=none; d=google.com; s=arc-20160816; b=U0ytZv+88QwvZ5e4b2+LjQpxxVohU3N6gbIMqrzsqhTYt+Bo4N7Sc3GSuWRk9UDllY IXZ9r52jXLQFRpjtb78ZrONrkLGPFJmbPlFeNtc2UHIE/CkGYWorCKXxEnLjyRzKOHft Xte5Ijq43TaVecSwEtR71bIWu8gvotNWXEOH+aDQby3SduQYQ/OIkm108wDPsnAtykEA KA7Kgvg4rcxIFJfEZQTLo9rrF82aERzBCkMX0iu3j7abu2bTHMaiVdDMLP+vJsVOSSgT aHX6Y+HJZ1abgQGxV8o6eWKDsTfUfn88EpwOIKfDzlBxEUF5fvxlKAZlNc6wB3FFCvYZ Y6aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uZZ48KnZhImT4lBQVSMqwvSLcrQ295suUff1DgEP/tQ=; b=odI0VPNaT82/0JZxbn0Sln+Go0uyrKA8GgUakrxHQzodFlX+WK6og4TojTcIGsQARs sqUMqNH2lHwLAk+rXTJC5hdIToXVKaU24l8qmyXV1IKZ3Ey5gbBas3zpIeIk7toRxBUn eDp557CqgpcdNfIy5lXb1Dkkaq8W1rqHKUE6Py21FO1HOLTBrooHkHu1HQiFFdWEBYvm 2ufcrcHsAJbkwhqQhf+alIF3oHpdW48MbrUGMwAPO7ukOyJK0v1YKYEEFrB56HxIOYgw rY5+XFy83PGUGmcBuZjYcHCY7IzB/a5OfoKDZzSoFd4A4+FDp/5ig1zlJJqNo/X4/4ok X5KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=BihFco4j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id h17-20020a056a001a5100b0050e0d6d4019si3027433pfv.32.2022.05.18.04.21.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 04:21:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=BihFco4j; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 8B7211737F0; Wed, 18 May 2022 04:19:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235528AbiERLTH (ORCPT + 99 others); Wed, 18 May 2022 07:19:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235485AbiERLTF (ORCPT ); Wed, 18 May 2022 07:19:05 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39EE1737E2 for ; Wed, 18 May 2022 04:19:04 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6C0F1B81F02 for ; Wed, 18 May 2022 11:19:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77ACFC385A5; Wed, 18 May 2022 11:19:01 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="BihFco4j" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1652872740; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=uZZ48KnZhImT4lBQVSMqwvSLcrQ295suUff1DgEP/tQ=; b=BihFco4jaqUO8BEP/IyPOuz2gj2pHqAsnvqNHFLsfLrsldPYOdxDOujn23SSe+D+eusreD roWFPY5rOu64m2T77uW+1SQVpq01WAVTc/I0Oc2c8Sm1b7KaChmfxbZAnDmcbWCMerPs7N EpapQQEIn26zL4Qr6aqYNT9qWBaChuo= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 1eeb3965 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 18 May 2022 11:18:59 +0000 (UTC) Date: Wed, 18 May 2022 13:18:58 +0200 From: "Jason A. Donenfeld" To: Thomas Gleixner , Vadim Galitsin Cc: LKML , x86@kernel.org, Filipe Manana Subject: Re: [patch 0/3] x86/fpu: Prevent FPU state corruption Message-ID: References: <20220501192740.203963477@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Wed, May 18, 2022 at 01:14:40PM +0200, Jason A. Donenfeld wrote: > I wrote a tiny reproducer that should be pretty reliable for testing > this, attached below. I think this proves my working theory. Run this in > a VirtualBox VM, and then move your mouse around or hit the keyboard, or > do something that triggers the add_{input,disk}_randomness() path from a > hardirq handler. On my laptop, for example, the trackpoint goes via > hardirq, but the touchpad does not. As soon as I move the trackpoint > around, the below program prints "XSAVE is borked!". I should also add that the VM should have as many CPUs as the host, to better the chances that the irq arrives on the same CPU that the guest VM is running on.