Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3412647rwa; Tue, 23 Aug 2022 04:28:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR7wATH7pZlg7Jq0mnuTGoafc/kSFzxKKg44NngIC8CVVD4UANPZ/jfBu+0owAkHN91HfNAZ X-Received: by 2002:a17:906:93e1:b0:73d:9725:2aa4 with SMTP id yl1-20020a17090693e100b0073d97252aa4mr2798319ejb.727.1661254131985; Tue, 23 Aug 2022 04:28:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254131; cv=none; d=google.com; s=arc-20160816; b=t57sUTod34oQ6Ndgv50TpxtXDbmHoXYgrJas70MCzT0dE0k0YL7zbJ3VbL9p1JqCQJ jYuiNidI1nCTy8Mdmw0jCKZ6GtNAPxhdDH814hKIlXyBr4UIjXMeOYDHG2DlErDBSL4J NJ/KZay+QfMJtj5MTVnf6TT4wKKMXpsxFNu2SI8jhIqkzP9LoTM07Pai3qQxKqARj2cU x6/hQ2UiaKV37hOPFCoqCAMF0NdDy0gAHJz+UT+bQFRKmIyjiUAFB/9QRqCO7rpnmxZ7 MkOQI0966senIs/0+Pc1JV6JRSBdy+J9atA1SrEIt2INWYLVkFt7z7wJ4HWigqIb9sL6 8Y1w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gs/6LWJHeANRM4D/PrSdH4qqY6j5CEosHGoFm4HEG3w=; b=d+hj/fKwirDr3G3dawNnRvo009fqJ2dTBXmwC629ke9w8rsUVHQq8IjSU/SKEzgq1s cC5PK0WrSx3Gz5NGSc7TKdiC5vORuckQaUUYtmUOWimBY0ZH5tQpdTRorYvAgZNuh7pc 7jhrQnhm23eWbGGhLScWy08T1OW8iXO5WlgZda73GLCaVfwGAgu0eK9g7Hd2FjlZ+rzR +A51VP63FAe6l16pxu400I+0OOBS8vQ0r5HuRtttzFlCIkIKNm7IAkzmhgV2n/wClYly ZX+EtNE5FoiG8McGOTeNqYHo0KIDC5QsaBSXeKU24g9WU8ZnXhK1FykQy0RB5Mvqhgss 0Ztw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Tx36S5Ni; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb34-20020a1709077ea200b0073d80c9dc85si4658493ejc.459.2022.08.23.04.28.25; Tue, 23 Aug 2022 04:28:51 -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=@linuxfoundation.org header.s=korg header.b=Tx36S5Ni; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242145AbiHWJxb (ORCPT + 99 others); Tue, 23 Aug 2022 05:53:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352100AbiHWJvR (ORCPT ); Tue, 23 Aug 2022 05:51:17 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF0BC9E2E9; Tue, 23 Aug 2022 01:45:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1665BB81C3E; Tue, 23 Aug 2022 08:44:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D995C433C1; Tue, 23 Aug 2022 08:44:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244295; bh=7Rn4cdXpRAM5OklFmWT4YS51CyztgZROwx8ZSo8Jkk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Tx36S5NiuVZvdZ/d0nqdZOzDm7z3gh1MuOjw+Kq60Jwb6mR9L61Hj7WvHTi1tupIr B5dAM4Ck314pKZ4wZN1MetV4ww0oHfgqU0zmwi3kNz4adI03Dlc+yZ9yo4pP6X5RDP zAAsYQPMzKjJKUINnjpOsA1H6u8z9h/nFdyfd3Ww= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Richard Weinberger Subject: [PATCH 5.15 069/244] um: Add missing apply_returns() Date: Tue, 23 Aug 2022 10:23:48 +0200 Message-Id: <20220823080101.377073102@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Peter Zijlstra commit 637285e7f8d6da70a70c64e7895cb0672357a1f7 upstream. Implement apply_returns() stub for UM, just like all the other patching routines. Fixes: 15e67227c49a ("x86: Undo return-thunk damage") Reported-by: Randy Dunlap Signed-off-by: Richard Weinberger Signed-off-by: Greg Kroah-Hartman --- arch/um/kernel/um_arch.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/um/kernel/um_arch.c +++ b/arch/um/kernel/um_arch.c @@ -437,6 +437,10 @@ void apply_returns(s32 *start, s32 *end) { } +void apply_returns(s32 *start, s32 *end) +{ +} + void apply_alternatives(struct alt_instr *start, struct alt_instr *end) { }