Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1339735ybg; Thu, 11 Jun 2020 07:23:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBzPbqx2zwFDGnhP7AAHOMptcAfrYByuzVTTbvpfxC9nDgpdmJaSehAJmABEmWIUxEXfsT X-Received: by 2002:a17:906:1116:: with SMTP id h22mr8268982eja.350.1591885381307; Thu, 11 Jun 2020 07:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591885381; cv=none; d=google.com; s=arc-20160816; b=jXxfgqDpZwXduGHcoX0rzmirrPqwFl0t8PdZRHw7BZCZ8W5f+N+aPYmgHaw9THaDqg eyQwlv/t5dH399xWswWyomZ871DlkJ3+12lh07BFijqmok4PG65d8YVLMYAFc3WzBvc2 ESBco8BA6mLqhTpXN7ptAXWD4+6av0j6k01WQ4VfUUHSlwBBktLvHqDETnrFtad/irGA /DguDx8298f9LYTVlVg3R0ufbyhqucKJKCPNau3uxtmyXwS9cIXnF5CqyxTiMrFHKsdt a+Pt4aq2YxbLyhNw9hdyckaCsiw2CDuFRl4chLCvjBDi0wdTFMQBQzTGoZa4Lqt/KIZX iQUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=xBaF+w6LnZVzJq3FVqNA7JT76VY8RlPchNLooih4/Ww=; b=K5ppb43dkZqIj66BVyMba1seUNFsN0GwSDmaTWyyb9JVo1awB8cSrd7nT8IMMpQ6qf j/vO/j+GTbg0sVl/VR8JT9BIvbe1K3dCB9fINOoAtVyFQ8FlF282xr/DDlztEmBKFbW6 MoRDgSUWW8L8soKZPglBQ5rTW9dStYUwkb3FAiU346DYl8hC+GVw5LK1qRUUBACyVOmY z8GTpLap58/i8LSV5Qmal/1h4wceAdAdVOg7E1HJYidzQ2YJ/VpbRh+q6ho6AT3zhpWz aue7yWHJhkKr7PMdDRFn0ELFDXovM8Hbgq0ftJiBQdVOCmbSl5b9vQKS4E6wXTmTkOx8 24Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="tsoc9/qU"; 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 g30si1625069ede.28.2020.06.11.07.22.38; Thu, 11 Jun 2020 07:23:01 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="tsoc9/qU"; 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 S1728226AbgFKOT7 (ORCPT + 99 others); Thu, 11 Jun 2020 10:19:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726497AbgFKOT4 (ORCPT ); Thu, 11 Jun 2020 10:19:56 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12945C08C5C1 for ; Thu, 11 Jun 2020 07:19:56 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id y17so2375160plb.8 for ; Thu, 11 Jun 2020 07:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=xBaF+w6LnZVzJq3FVqNA7JT76VY8RlPchNLooih4/Ww=; b=tsoc9/qU8zBQKtmUoZ6DWf09hKxrSujxH/3HNog5hexqWofv5GkpN6gd7V+FPuwaRK DttX6/hgGOuUcewWly2LE09+/g1ULXkcC2fS6j0/A+4C8pd4bzx37CEhF0rNrc9guytH yPstRNa0kDLHC6NhauC2ET5IbSHyk3MMwwGd77AuQaOndkEpkiAQ3Xi8gKu0o7raRxJW wYkgbJ1MlQNrKdvsYKqriLim/UunGst9o5bY1MGnEz481F4U3OcYXvP3hQbGXgX4iIs+ sSZZNDkRbOGQh3uEzq9pj5pGzusRVucF2EYeWB+F85gElVTQl/so5GU1yHGjq6Vf3Wj9 JFcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=xBaF+w6LnZVzJq3FVqNA7JT76VY8RlPchNLooih4/Ww=; b=RpROUECDxmQOxGRriJ5O5mDof8Wt0Uyav2jUkXBkSh7I7Z5m2uyeytAZrFg37fx66h LAvF2brx4tnzYR5IgLTemkkSzTBr4LUSCAvAiTZBt3jCW66wEPhKRLTV0oswBUoH+w7F PVarP8Kuhpbq0EAWBSzSaJgAtREuIF1g6q84pzIFvNc451MKYSKJGtOzn62SkXllV/2V qq60iU6uaKR56xNO+mi563eYR2e9ukV4uXYKUryCu/Zjj3mA2V7kaXD81PX4425Wa6xl QfIcJ3k//3A+7Sr2ZyqsoyQaeO4C9rS5S8DkE85vG++mObrmGvfHWbkRH5ADR91lxM/Q QDXg== X-Gm-Message-State: AOAM530+tx4banLziWww3GOlt4p9vDtA0PXEaYyjVW6J7dn8CZLlFTR5 zjDsYcfbW872LnxIZqNeDhEeXg== X-Received: by 2002:a17:902:7d89:: with SMTP id a9mr7206240plm.309.1591885195577; Thu, 11 Jun 2020 07:19:55 -0700 (PDT) Received: from ?IPv6:2601:646:c200:1ef2:fca7:1989:2b32:63f0? ([2601:646:c200:1ef2:fca7:1989:2b32:63f0]) by smtp.gmail.com with ESMTPSA id a12sm2616306pfr.44.2020.06.11.07.19.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jun 2020 07:19:54 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] arch/x86: reset MXCSR to default in kernel_fpu_begin() Date: Thu, 11 Jun 2020 07:19:53 -0700 Message-Id: <301D30B5-26F7-454B-8C0C-A5DFC73222CF@amacapital.net> References: <20200611091822.GA30352@zn.tnic> Cc: Petteri Aimonen , Andy Lutomirski , Shuah Khan , Dave Hansen , "H. Peter Anvin" , x86-ml , lkml In-Reply-To: <20200611091822.GA30352@zn.tnic> To: Borislav Petkov X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 11, 2020, at 2:18 AM, Borislav Petkov wrote: >=20 > =EF=BB=BFOn Thu, Jun 11, 2020 at 10:36:08AM +0300, Petteri Aimonen wrote: >> Hi, >>=20 >>> 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. >>=20 >> Seems like this is the consensus for now. >>=20 >> Any opinions on whether the module should remove "selftest_helpers" >> directory on unloading, or not? >>=20 >> 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. >=20 > 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. Seems good to me. Let=E2=80=99s have at least two users before we go nuts wi= th the architecture :) >=20 > Thx. >=20 > --=20 > Regards/Gruss, > Boris. >=20 > https://people.kernel.org/tglx/notes-about-netiquette