Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6239948rwl; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) X-Google-Smtp-Source: AK7set+x55NhlZCM88mVIhLwbGkXvNWgvwReYXp/jH81GkKMlycUh3lYYnAJC73F6R6y+vreuvEU X-Received: by 2002:a17:902:e1c3:b0:1a1:a800:96a7 with SMTP id t3-20020a170902e1c300b001a1a80096a7mr2544676pla.8.1679497794318; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679497794; cv=none; d=google.com; s=arc-20160816; b=1J8J6vbMKLAD0/rKmonoKQx0bM62IzuM14vcGrWs3aDHxIDRn9YK7kjD7/p1+63t7X Ik44YCuTPPsU+0kiIdR07mbv45dtEUBH7snLjkJWww0pCK82haUCshrPy+hhbxisrui6 DlSO6Y7ETj3A06iPNswz469LKtJldlNyBMDPpAbJCJCWrdDBYVrqOSNUcXiCnyjGlyqv c9esLtqhft+iNPUwfFFcia5Zr9ELlM7S+5nn3OU1Cm71Z0foydhcsVAlDIrymzwKDqPA 9LTNRF8wRX6iitsrLjXhTAoUG6Y/3QcnieUCCmsz/i19mdQM+HLaSKXNUKyGENPNONgq ivXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0B9GN+Xs8p4f594QxpDWqsaTBFklL/W1QSOwUnXsrC8=; b=SGysWAObi14Mw+JmbeqDmUxhypAL2wsVC3SYv9SyAtsP6bnllbVIbs0LluJ14D7xvK OeuqP1jHdZubY9pwK8t7MECEPiP2ueJT2PwrF2IGubZTMhVthEMzvU/iM6qAAdrPfEGr pB4WeuJfiowweC7Lg47CQ+QS1s4EFGJUmFrQazETjnW9dhhHGD5KG4HcSC24rKsisaLQ B1Hy14UIaP1josbyeJdy/VAi9pxyGj7tXt32rL2IKfzP8pIzGMt58RibT/d6heTyQ2mJ tzR9IKIlA2yXsOawEedVUtUDyD6vosQmRtrHciegey6wDbSKenq9ZTgghWufifzrbOqA 05Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=AkV2yymc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m13-20020a170902db0d00b0019e6a5cf724si17867328plx.203.2023.03.22.08.09.42; Wed, 22 Mar 2023 08:09:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=AkV2yymc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjCVO7g (ORCPT + 99 others); Wed, 22 Mar 2023 10:59:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjCVO7c (ORCPT ); Wed, 22 Mar 2023 10:59:32 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAAE21BFB for ; Wed, 22 Mar 2023 07:59:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0B9GN+Xs8p4f594QxpDWqsaTBFklL/W1QSOwUnXsrC8=; b=AkV2yymcNjDSYmYTD9UV5r2IkZ arPuiSnGgEqEZnQxHlNwndTaFRqumMaLPUqrBgJx7n47A5oaPASO1qg3HfsEHmKBuk3B9jVvjNYOs ULod1WQ8nNjZBiYfK72G9Sgv7tB//Az8KYV6jOclOYdjmRZH6VHubwxOnqgycIjhOBX4ZHkqgHWb9 toGBkBxCl666oMYNmDHME3AnyXoby9hclcrtGxGRjjp3ZOkHhlf+63kvPySdV+d53LAlhvPjlmmcx ui5L8YxIVc8jSk+eVH+JzoLE8SvZUVcN5pwhKBf8lj2SPw492auHiUm3itE+30ziMa+J0h47chUrl dfRXszcg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1pezvr-004a19-1u; Wed, 22 Mar 2023 14:59:19 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EE8CE30035F; Wed, 22 Mar 2023 15:59:18 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D1D06201FFA49; Wed, 22 Mar 2023 15:59:18 +0100 (CET) Date: Wed, 22 Mar 2023 15:59:18 +0100 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Jason Baron , Steven Rostedt , Ard Biesheuvel , Christophe Leroy , Paolo Bonzini , Sean Christopherson , Sami Tolvanen , Nick Desaulniers , Will McVicker , Kees Cook , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 09/11] static_call: Make NULL static calls consistent Message-ID: <20230322145918.GF2357380@hirez.programming.kicks-ass.net> References: <7638861ae89606b1277ad4235654bba2b880f313.1679456900.git.jpoimboe@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7638861ae89606b1277ad4235654bba2b880f313.1679456900.git.jpoimboe@kernel.org> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 21, 2023 at 09:00:15PM -0700, Josh Poimboeuf wrote: > +void __static_call_nop(void) > +{ > +} > +EXPORT_SYMBOL_GPL(__static_call_nop); Kees, is this a ROP target? The above is basically ENDBR;RET, push something on the stack, jump there and you're in business or so.