Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4997021pxb; Thu, 14 Oct 2021 16:43:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcgPwWQkNmDb3T6OlYDJHdUqoQv8eON5ihoL3LMbiXvABWaLksrvHpdwLsHWLCMI2HqY7R X-Received: by 2002:a17:902:be0f:b0:13a:19b6:6870 with SMTP id r15-20020a170902be0f00b0013a19b66870mr7999283pls.64.1634255018733; Thu, 14 Oct 2021 16:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634255018; cv=none; d=google.com; s=arc-20160816; b=c0rRmM5sJFCW9Ztnb+fAQ37yObrAf+ZQLTqN1lHUr5Jqag+M8wwcYepq2Ujxyc5BU0 /dc8osg5Sm54FOrg4AgRb3mIbC9PI9FV+clALdL3DciijQCx4zgTPoG78gtXWPe5KOkC 2d7DxNEdkQDmvSC1nSTafmRc4dKMfcAQ5f3tBhy06QFw7oGHuOQwb9pV7Ly5yQcYzHsT 0thQVON1T8SIRfj50rNNamzu7FwklV4h6xkYZwo6QDVbB5O8VFjh0FlxGtpz3RUblNAR fIrbqoHj3jpH/QknIDYwdAGW0uI+GBFAvU7mu2RT4Bdnp2aJZlX9leS6CRiwHcOxnpk4 clGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=M51tGymwY8d61BgGuFLLGlUslGigzRQ8Pd5X1ftn2RE=; b=XwGAAQTCTfEfo2Y8P5aXIz1bpGM7Ai/Bdauy4C8SdHilSBR1onYzZYryFcoboYHj6E BDWrCvX9FY/a9IYa3WGPabYUDKo+IYvRilMiluq3jBGK4w0kZAelCHhDUffOES5E3q55 fdnE+qywqWnr20dmOKXGCERWQkMkAd/8N+GjpF9GxXUWbI3lQ+I7C5No4vHEIvOQmnVw D7LSRf94LA2zcif0tHI5UoFz0ZNwHyitx7dVT2x/8IKGcdDNgKyr4MxxiZVVHUwwUwyA JnCiyKDA95ok9OSWUQk1zoTKhztokP6e4N8HheZ5bSUvGpSPGwA3jJuvijjk8rtQ5TKX 5nJg== 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 l2si6825111pfc.195.2021.10.14.16.43.25; Thu, 14 Oct 2021 16:43:38 -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 S230229AbhJNSyU (ORCPT + 99 others); Thu, 14 Oct 2021 14:54:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:33526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231549AbhJNSyT (ORCPT ); Thu, 14 Oct 2021 14:54:19 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4AF6761027; Thu, 14 Oct 2021 18:52:13 +0000 (UTC) Date: Thu, 14 Oct 2021 14:52:11 -0400 From: Steven Rostedt To: Kees Cook Cc: Borislav Petkov , Sami Tolvanen , x86@kernel.org, Josh Poimboeuf , Peter Zijlstra , Nathan Chancellor , Nick Desaulniers , Sedat Dilek , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v5 09/15] x86: Use an opaque type for functions not callable from C Message-ID: <20211014145211.573579e6@gandalf.local.home> In-Reply-To: <202110141141.870A67E@keescook> References: <20211013181658.1020262-1-samitolvanen@google.com> <20211013181658.1020262-10-samitolvanen@google.com> <202110140904.41B5183E@keescook> <202110141141.870A67E@keescook> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Oct 2021 11:47:01 -0700 Kees Cook wrote: > On Thu, Oct 14, 2021 at 07:31:26PM +0200, Borislav Petkov wrote: > > On Thu, Oct 14, 2021 at 09:07:57AM -0700, Kees Cook wrote: > > Looking at the changelog, DECLARE_ASM_FUNC_SYMBOL, makes a lot more > > sense to me even if it doesn't specify the aspect that it is not called > > by C but who cares - it is generic enough. > > Around we go. :) Josh[1] and Steven[2] explicitly disagreed with > that name, leading to the current name[3]. Do you want it to be > DECLARE_ASM_FUNC_SYMBOL() over those objections? Just note, that I was fine with the original name, but was against the version Josh suggested ;-) > > I'd really like to finish this shed -- I need to take the bikes in from > the rain. :P Back to black it is! -- Steve