Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp354009pxb; Wed, 18 Nov 2020 06:20:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyct0pEP4y9o7ZmakYqE1XLTlafRKD0cLrxOEapH1zEzs51B+LZ4ErjCDMdReoxwnl1Fthi X-Received: by 2002:a17:906:7c95:: with SMTP id w21mr1520347ejo.304.1605709248386; Wed, 18 Nov 2020 06:20:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605709248; cv=none; d=google.com; s=arc-20160816; b=TQ2fQya5dFZ4FLHROKmfMTXwjqqvVSUf++8ABDWewjTxRi7sDEbdyQgyaYnTiOdqb/ NqwSg485DxrHuN+A7p2MHA9VJw8i6FRliZPxv6lNrWrj18Ulo+3BgF14mW1kNq4T63Kz cmW97CX34paH4bP4DEnEFUa07aYl5/kGnjjmnrqA686+bVD7yUrI9wFUn74m/OUQWmJC JHWuP1Z0rXBI2pICSWikZmir4r4TjU4ZHdo0Ti+sIsGCmCsgMuSEMcbkw+vQ8ztiSP5x 7Qr9CkbEEznXO6UOC3TFmm+3RS4+3XqxSTAHtyiCXhEKLVaq5Ja5iRrq/HrwuWZQ731y YEIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date :references:subject:cc:to:from; bh=YayStpj3xNomivusKKyNHrzuP5KHkpJPq1ETdZ3YgIg=; b=SAe3Bh/8BO0/V+XRjucvlJBsS+5FLQIzk8v5CLCFZ9IJzXh2RPpy/8huOJugMvxs/j Gw5SxH5/mlz4ORVj7GkV9IUI/FmnSu2sDLyeJDlVgwLQ169bHXj0e1vuunRrsUnjgx4s EI7GuJPVE6ciRtKV3xytE9axA/lW1vufxo6Xydv3B21zzrJF38Ru86heVo4zvaZ8gOZa btphLqx+RD4/K6uS0IvFBFRAWZNey8TI80WkJVmUVJVfr+4fxH5nFlJge48Xs1MaHyF/ sBLJlnhirraDu2mk4qTURHakzsHWdhFa02P8oq38DMoJ/rHPEmgKo8yyd+hz5FipU4bW 81fg== 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 1si15078850ejy.385.2020.11.18.06.20.24; Wed, 18 Nov 2020 06:20:48 -0800 (PST) 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 S1726557AbgKROSj (ORCPT + 99 others); Wed, 18 Nov 2020 09:18:39 -0500 Received: from albireo.enyo.de ([37.24.231.21]:38150 "EHLO albireo.enyo.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgKROSi (ORCPT ); Wed, 18 Nov 2020 09:18:38 -0500 Received: from [172.17.203.2] (helo=deneb.enyo.de) by albireo.enyo.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1kfOI1-0001Cf-LF; Wed, 18 Nov 2020 14:18:29 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.92) (envelope-from ) id 1kfOI1-0002RJ-54; Wed, 18 Nov 2020 15:18:29 +0100 From: Florian Weimer To: Peter Zijlstra Cc: Steven Rostedt , Mathieu Desnoyers , linux-kernel , Matt Mullins , Ingo Molnar , Alexei Starovoitov , Daniel Borkmann , Dmitry Vyukov , Martin KaFai Lau , Song Liu , Yonghong Song , Andrii Nakryiko , John Fastabend , KP Singh , netdev , bpf , Kees Cook , Josh Poimboeuf , linux-toolchains@vger.kernel.org Subject: Re: violating function pointer signature References: <20201116175107.02db396d@gandalf.local.home> <47463878.48157.1605640510560.JavaMail.zimbra@efficios.com> <20201117142145.43194f1a@gandalf.local.home> <375636043.48251.1605642440621.JavaMail.zimbra@efficios.com> <20201117153451.3015c5c9@gandalf.local.home> <20201118132136.GJ3121378@hirez.programming.kicks-ass.net> <87h7pmwyta.fsf@mid.deneb.enyo.de> <20201118141226.GV3121392@hirez.programming.kicks-ass.net> Date: Wed, 18 Nov 2020 15:18:29 +0100 In-Reply-To: <20201118141226.GV3121392@hirez.programming.kicks-ass.net> (Peter Zijlstra's message of "Wed, 18 Nov 2020 15:12:26 +0100") Message-ID: <874klmwxxm.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra: >> The default Linux calling conventions are all of the cdecl family, >> where the caller pops the argument off the stack. You didn't quote >> enough to context to tell whether other calling conventions matter in >> your case. > > This is strictly in-kernel, and I think we're all cdecl, of which the > important part is caller-cleanup. The function compiles to: > > RET > > so whatever the arguments are is irrelevant. Yes, then the stub is ABI-compatible, as far as I know.