Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3432464ybz; Mon, 20 Apr 2020 02:38:27 -0700 (PDT) X-Google-Smtp-Source: APiQypI8js1zswxggE7gRYbJGmUFGt6ZWM9hb6BO7+QUqX7PrRN5kSCqPTP6cJrU71fBrUisi5QC X-Received: by 2002:a50:b003:: with SMTP id i3mr13435166edd.303.1587375507356; Mon, 20 Apr 2020 02:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587375507; cv=none; d=google.com; s=arc-20160816; b=DqD9OLqrcSrcsDzBplgoFzdJxuHlp4TsPAH4r953AnI4UaT4n2OCOPYki0JbKKcIQN Mo/DYH/d+FPIwTcEvFeB/ktBZS8lvsDEaaX8jsOjb1XAsgZXqwo4QkAqEird8yRWs46U Zj8mLDLBGyiqKnxftXTqPAQA6/zpm1dtJoUTDEH5h/+qwshyqiFdHFnFqxie8kq+XIag Sas+9VUsy5LcnyR8wopbadxP65kxmSUpxZ2jYMaqxAz/JWx3Tk2qSHmsouD/dHTEmUCw ucvXrS85QH5DyJtx0edS9UxDozKkoz0mw990UcxlfjyCZ6yj4y0MhnBN/ufnCPISeap0 1qSA== 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:dkim-signature; bh=gRCV9pIoNs6Pdb6DavXoSPnf6a7A5tWe7Fj6CiBqtRs=; b=AOSc2FN+dnFzYWKKTuG1SF/hsg9SgAfohVC/PGiBeQLPBbTiQ6k0uF1iMutTWEGjU7 JOM0QofHb9IICl2YqUS3Jly/p81Z9FSeitqxgjXyePA+9FIUS0/HiO8zPON5LlkShOUq TwLGU4qVyXnnOiJ+9NnQwl9KNxqNYObKFFWoEzAAQolfOyJDikr0ee3NmwJX2nCm1kn7 8a/e+Nzy9CZv3m3+2ykoo72qxNHjlCZ0kJwiHP+CLjQCo6CjjaAj1/GcOeYLYzHyOBhl Ba0Vv4YYb6bzeQFNMJfO6lc71KOl23c9fX2E/tMhBgt6kB0LMYiKQms299uz40I4cICI 1KVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=NT086U7G; 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 e16si203647ejk.0.2020.04.20.02.38.04; Mon, 20 Apr 2020 02:38:27 -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=NT086U7G; 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 S1726049AbgDTJee (ORCPT + 99 others); Mon, 20 Apr 2020 05:34:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725773AbgDTJee (ORCPT ); Mon, 20 Apr 2020 05:34:34 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE8CC061A0C for ; Mon, 20 Apr 2020 02:34:34 -0700 (PDT) Received: from zn.tnic (p200300EC2F08140068F64889F873250A.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:1400:68f6:4889:f873:250a]) (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 E18621EC0985; Mon, 20 Apr 2020 11:34:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1587375273; 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=gRCV9pIoNs6Pdb6DavXoSPnf6a7A5tWe7Fj6CiBqtRs=; b=NT086U7GZ6/1irXHWSH9vA5q1XN0h3sJGWtkm8Arq2mUBMeViEUvTui5BZ2iwr+LUyejg8 43ncHyy4rRB1gYQH4JErC3RGnQtj+kShqfK1KJE127X7Ecx2lLMldg3JQNrw+fj/xirScB lsnFMNsYcVXJAW2k5OSPLhnprlmOnqs= Date: Mon, 20 Apr 2020 11:34:34 +0200 From: Borislav Petkov To: Christoph Hellwig Cc: Thomas Gleixner , LKML , x86@kernel.org, Kees Cook , Paolo Bonzini , Thomas Lendacky , Juergen Gross , Boris Ostrovsky Subject: Re: [patch 02/15] x86/cpu: Uninline CR4 accessors Message-ID: <20200420093434.GB3147@zn.tnic> References: <20200419203137.214111265@linutronix.de> <20200419203335.856333226@linutronix.de> <20200420090102.GB24518@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200420090102.GB24518@infradead.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 20, 2020 at 02:01:02AM -0700, Christoph Hellwig wrote: > While this is better than what we had before we really need to have > a discussion on lkdtm - it needs a lot of crap that otherwise wouldn't > be exported, and I'm really worried about people enabling it and thus > adding exports even if they are conditional. Thought the same too, while looking at that. It is fine and dandy that it injects all kinds of crap into a running kernel but not at the price of exporting such internal interfaces. > Can we force the code to be built in require a boot option for it to > be activated? Yes please. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette