Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1104149ybg; Thu, 11 Jun 2020 00:40:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5UnGr4puWsJxaiqqzmUbYYNjQxn2QA9Sea9uImO2Tgdb5U4eCFGvSRSUmCTEhvw6C/y+4 X-Received: by 2002:a05:6402:3c1:: with SMTP id t1mr5957648edw.350.1591861243005; Thu, 11 Jun 2020 00:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591861242; cv=none; d=google.com; s=arc-20160816; b=FzrkOLoawUQivoN7nwmcPOn1PAEHcc6nHTqlAPWj6wUNh1IjaU3F80WHVrWDpSJLgR gYWLGixFZWxz1ljpSnf4hEG3crW8nfQTRN+Zi5oORd2PA5oPs0VXWoKTd07YYU/LN1YT OuAWRreBpBTnJDBvDeeG3Qr7J6ZZid91sbXljl25+1u9l7RCUU90dZVn9bxbi+ZdZN2x Nxri7d8Mo9QSIWDaERTNBOCyVoafrGND97A44gRMWycVh/ESjS1oaEZocSV4rZYj/1Iq XkzgE6fcaOgVQRyUlPLsI0W2zx1X4XKyOVFMlWYpM6oZ0T2yD6Up9IjWgs3rA4Pa5Y3w TzuQ== 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=b8BP2wcy7UqbYd4OYIUZLVsQlOrkqrxzziC7HaPY+J0=; b=HbaeRTlV6OesBTbCQSS2mmdDZcVsIhcyM2Pc5xBlEsYrWZmJwmNoOUmIzl5aBsr3UE 11RTD/MFSFGKJ9ir9XwF4rVb73i+GXTuRkUsZ4gUz2yoiZs6LnmWBtadChF/NTIj9q3R VYjeVLCkv31DEp5Jhlla2WK9vJ+R2uUuwmtsyzLJuzmZFcqyUFGdDhb9e/lZtntYN/0+ o51GR32PGalSu83UBvwK+23tRKDBVfPEbLdKvc6vQGy3CUupxYWooXwziY9Tx7f7XhKq 1skvSvto23gDg8THi5p5hzhx6jLdxmD3fwYpWAtHhyrbIxCLlsgxnaV2TMGs8vpixZFj nIvw== 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 x15si1414243ejb.393.2020.06.11.00.40.19; Thu, 11 Jun 2020 00:40:42 -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 S1726756AbgFKHgY (ORCPT + 99 others); Thu, 11 Jun 2020 03:36:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbgFKHgX (ORCPT ); Thu, 11 Jun 2020 03:36:23 -0400 Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4103FC08C5C1 for ; Thu, 11 Jun 2020 00:36:23 -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 1jjHku-0004TY-5Y; Thu, 11 Jun 2020 10:36:08 +0300 Received: from jpa by lakka.kapsi.fi with local (Exim 4.92) (envelope-from ) id 1jjHku-0000c4-2E; Thu, 11 Jun 2020 10:36:08 +0300 Date: Thu, 11 Jun 2020 10:36:08 +0300 From: Petteri Aimonen To: Andy Lutomirski Cc: 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: <20200611073607.GH17423@lakka.kapsi.fi> References: <20200602101119.GA11634@zn.tnic> <20200602102951.GE17423@lakka.kapsi.fi> <20200602105649.GB11634@zn.tnic> 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: NEURAL_SPAM(0.00) Symbol: TO_DN_ALL(0.00) Symbol: RCPT_COUNT_SEVEN(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: 20200611073607.GH17423@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, > How about putting the file you frob in > /sys/kernel/debug/selftest_helpers/something_or_other. The idea would > be that /sys/kernel/debug/selftest_helpers would be a general place > for kernel helpers needed to make selftests work. Seems like this is the consensus for now. Any opinions on whether the module should remove "selftest_helpers" directory on unloading, or not? 1) Removing would break if other test modules will use the same dir. 2) Not removing will leave the directory dangling. 3) Remove only if empty is one option, though I'm unsure how to cleanly check if debugfs directory is empty. 4) E.g. /sys/kernel/debug/x86/ is created centrally and a symbol is exported for its dentry. But I'm not sure if it really makes sense to add another exported symbol just for selftest_helpers. -- Petteri