Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1153977ybg; Thu, 11 Jun 2020 02:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUjNkuvZbfbQYLtaXuLmsW+j6tjZEGb0P7rHrS5xLCgPaRvf2tTNFglUZyV64wPfns5mx3 X-Received: by 2002:a17:906:4310:: with SMTP id j16mr7245418ejm.511.1591867266147; Thu, 11 Jun 2020 02:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591867266; cv=none; d=google.com; s=arc-20160816; b=rN+dVTYl8o4BD0J84GAX3RkqINcr86cB1V0IYCwe5ZvHPwL+HBiNo5JY91cHnhNGY9 oDf0ma2ILGaxtMWYqSNTC63shTpnGNn25kYvUxtfd6vRkP14LojW8Ut/iwW6x80HjjuH mG+Aki39PQkhpfiVuBRwmu7wSF2ZZ+dmWadkxZd/EnwmCSKa7QN4GbX9/Xnb7SEkqli0 ufs/bV0zmuZmfj5kAXnq1UuATE0/26fP+uEsEpliDgdBnxo9PIjq5XCZy3AeAKhnPHC8 oxbwDadmaVGuEsBGx7KkK1h85L287jUvVwx0DgtZdWJupw0SgkR21cIPa9NLan/N0hnb YAiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=B7J6LazIMYv77qBDC5jmO+QDhxU/h68fVJEh+XvPlm0=; b=NPlLd0KcQ2drAfyGAkzSjIjF6UYsDY4ip3GG2hR+ORdWh9uEWh5SKJ1X+z6xyKgvjw jrEYeZVjL3GmPyvSQ6eyicn8AatuG0oBF6RxPMbNQTuVcPf2yRVHadORUtMqMqLr7Lxp hLPA7X75HXVyO5sTnkpc/3GzXP13fB3SaU3M73usay09Bg3XTfeEQCLLmO62MI4vBi6H wQb4qMDlS87T6jRiJMe9d9XuWPlS/6n35UEGr5bDHgvoPQROtzgYc4LVZtjINCt7J5xx 25hbWV/2dhFG2/9acwILELUHTtgF8o4+broJ6et3/jGDTiGQ+ElkgFlzmSD98EOjohEo wKkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=STu8GWgY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si1410423edy.450.2020.06.11.02.20.42; Thu, 11 Jun 2020 02:21:06 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=STu8GWgY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbgFKJSa (ORCPT + 99 others); Thu, 11 Jun 2020 05:18:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58998 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726817AbgFKJS3 (ORCPT ); Thu, 11 Jun 2020 05:18:29 -0400 Received: from zn.tnic (p200300ec2f0bef009c9227b3e94b0042.dip0.t-ipconnect.de [IPv6:2003:ec:2f0b:ef00:9c92:27b3:e94b:42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 532261EC0286; Thu, 11 Jun 2020 11:18:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1591867108; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=B7J6LazIMYv77qBDC5jmO+QDhxU/h68fVJEh+XvPlm0=; b=STu8GWgYHjwZMDroU/A7cu1XftZ1AVlrY27cVfde0WjAQshkoNI3i86mh1fU4rTMoyFzsz hNKBzrAr8tMEU8SIbENBcJJLA83RTKc7MFVVuZC3QvQdMs3ejWubRdE2fR8UEfccLd5RoZ aFdRrzAN7dQ4TcqAgaUl2q7yq7updZ8= Date: Thu, 11 Jun 2020 11:18:22 +0200 From: Borislav Petkov To: Petteri Aimonen Cc: Andy Lutomirski , 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: <20200611091822.GA30352@zn.tnic> References: <20200602101119.GA11634@zn.tnic> <20200602102951.GE17423@lakka.kapsi.fi> <20200602105649.GB11634@zn.tnic> <20200611073607.GH17423@lakka.kapsi.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200611073607.GH17423@lakka.kapsi.fi> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 11, 2020 at 10:36:08AM +0300, Petteri Aimonen wrote: > 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. I'd say you do the simple thing and cleanup after you're done, i.e., remove the dir. When something else starts using it, then it would need to be taught to deal with multiple users. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette