Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp227119ybg; Tue, 2 Jun 2020 22:24:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHxe7FbiQ6vhhZlccKjaFFcFbEdDnIpIJ/H3znWKmg6ZgVSIv5+E0fPEpBeDmIbnTKkJth X-Received: by 2002:a50:b0c3:: with SMTP id j61mr11634753edd.349.1591161862988; Tue, 02 Jun 2020 22:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591161862; cv=none; d=google.com; s=arc-20160816; b=bxIljaGMNVxePJGlTctqeLjYCZ8ucX72vqRr4qdknaaVMb8aLukM9UfkStNs8Mhr3H V7PgMvykd94AsHIRB0VGCOJvcFuT7Hn1H/JnTFbWP40httHHBpnB/pc3FkjL3YKcA+Pp Z0+Lrt1hmeopxmvDSP3BfjEa5uwcGW4N8n5I2YQxadri/tegLM6hLKIpuG3YMu5dgoKL WhhRcTc0sqFyqaGH3x+ig3WHLWJfnJ/CyACtCneGDP3NIMhxCUn3YRw4BW0CpgwIyzx+ C7jVWvoWnCsnThpOsjt0knSNLBGvqaQY8xZeQkK2hl+blykOxGnMGiEJFARwGwsdi+YZ Bkhg== 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=omTQNMmdrb/Ws9VCgTGzWZQBDdUZEDKfsS61cXeJ17w=; b=NX9MvlLmWlgKkpza/5lEv6OQXqGVbnqKYy6kIuM+el2XBN+PP6waaT0BRBnyjpbjOG SCZYeEHHJjEYanW1Pfd2CEhJM+NkkzJHPA3evxUXO3XgKOf4+fbbZA8Cv6FNFQndOro/ xcLVHjvrWPQDYnBY+E0UTGoc9jj2wvdsXV35U0NgLEfdyuWYh1uN1zpGpcOSedn1gShR pxubAqyGOgbrg2AvgTJjtw1kIGEpYe/2MIgu/o+Bt7yueknG1GalfkT6ScEPAGiV9VAg aKEqrCa1msrdILL0vMa92eWfG024ixJ11TjfZA/H9fFrb4ro5CyVeBjwc+uCXo7K150Y JghQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si525555edy.272.2020.06.02.22.23.59; Tue, 02 Jun 2020 22:24:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725868AbgFCFUE (ORCPT + 99 others); Wed, 3 Jun 2020 01:20:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgFCFUE (ORCPT ); Wed, 3 Jun 2020 01:20:04 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB7E6C05BD43 for ; Tue, 2 Jun 2020 22:20:03 -0700 (PDT) Received: from kapsi.fi ([2001:67c:1be8::11] helo=lakka.kapsi.fi) by mail.kapsi.fi with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jgLoY-0003XD-TX; Wed, 03 Jun 2020 08:19:47 +0300 Received: from jpa by lakka.kapsi.fi with local (Exim 4.92) (envelope-from ) id 1jgLoY-000616-Qw; Wed, 03 Jun 2020 08:19:46 +0300 Date: Wed, 3 Jun 2020 08:19:46 +0300 From: Petteri Aimonen To: Shuah Khan Cc: Andy Lutomirski , Andy Lutomirski , Borislav Petkov , Shuah Khan , Dave Hansen , "H. Peter Anvin" , x86-ml , lkml Subject: Re: [PATCH] arch/x86: reset MXCSR to default in kernel_fpu_begin() Message-ID: <20200603051946.GF17423@lakka.kapsi.fi> References: <8b1f0bfa-79b0-74e4-0241-8b2a94491807@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspam-Score: 1.2 (+) X-Rspam-Report: Action: no action Symbol: RCVD_TLS_LAST(0.00) Symbol: ARC_NA(0.00) Symbol: FROM_HAS_DN(0.00) Symbol: TO_MATCH_ENVRCPT_ALL(0.00) Symbol: MIME_GOOD(-0.10) Symbol: DMARC_NA(0.00) Symbol: AUTH_NA(1.00) Symbol: TO_DN_ALL(0.00) Symbol: RCPT_COUNT_SEVEN(0.00) Symbol: NEURAL_HAM(-0.00) Symbol: R_SPF_NA(0.00) Symbol: FORGED_SENDER(0.30) Symbol: R_DKIM_NA(0.00) Symbol: MIME_TRACE(0.00) Symbol: ASN(0.00) Symbol: FROM_NEQ_ENVFROM(0.00) Symbol: RCVD_COUNT_TWO(0.00) Message-ID: 20200603051946.GF17423@lakka.kapsi.fi X-Rspam-Bar: + X-SA-Exim-Connect-IP: 2001:67c:1be8::11 X-SA-Exim-Mail-From: jpa@lakka.kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Is it correct to assume the stuff checked differs from test to test > and done in user-space. > > > undo_evil_state(); > > Is it correct to assume undoing evil differs from test to test > and done in user-space, provide it can be done from userspace. Yes, currently the test works like: do_test_setup(); read_from_debugfs_file(); check_results(); and the middle step stays the same. But of course in general case there could be argument passing etc, even though the test for this issue doesn't need them. Myself I don't see the problem with just adding a file under debugfs and bind to its read. -- Petteri