Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp455188imi; Fri, 22 Jul 2022 02:45:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmSsINjLnK8CvubEaIHAeE3mD293sJyMAuMFibH366+1sK4QBYVd6X9iyQ2eQ8CvjvdH8W X-Received: by 2002:a05:6a00:1948:b0:525:45e3:2eb7 with SMTP id s8-20020a056a00194800b0052545e32eb7mr2622074pfk.77.1658483133218; Fri, 22 Jul 2022 02:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658483133; cv=none; d=google.com; s=arc-20160816; b=wp6Wdb5w/MQIjrYAG3ArI+5+HmZdxl1JuU9Pafi9G83NAEjQhZ6wZ47AoARZLK6rO3 c1tEDWUUpoE7mpFJpbEI/j7npLL+gjEjotPsqDLLzcsi+Qu1KqpgCJOybiGJr4Hp064K n9QSgEWhCr5Zbnw6qehMAP4AEJKQGt0is4rBO6zBT98L2rTD9razYdZIdePwgAZ3CHhk gsA/VBh4CGO4wiiXcHIjTNhaqks1o1jlhQJIguedtpTPH2lP15ThOlqf9KnZY/j0zO7Z jyfbR8krX15BHzPzR/JbKVxGhftMzZ2JmTKcLoRhg3XYl4zyluCv/vfq58fTIpMF+zTF u4Sg== 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=PwFJ7Krz0ff6zq8CcG5QIKjSkMxX8X1K/FSoPp/jrNk=; b=hL2P9+sEvIfjpYe8vyVzHM+daRhzMpW6p1Ms6oL5qQYBPIIKvWEc0CIFTaxscDYEOC y4ObYJGa8JfKGYyzrnd7+nRZ6Rd9UNmCIjjwpMH0btBZER3KsBa0qbH9i6HVnNMyGpP9 XlaemJ1N/RAtJG1Qw3txMVxEUXyJ++FqIlLUGQjPNZWR8O7aGyU5df19dGBDz1CsDG3d wLwIuQyge1hvzeqBsa2DqfytGP9cOPG6PHRHDdv+jAmCTyl+KR/Yo3bqWYR4+C+2aKSK Bu369cuqHAnykZNn2HduhYbZusSaZ9xVLhKEBaDNr2e2uGZ+qdQniZq3HYI8rJNmXCyQ GrvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=duT3QWxK; 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 k124-20020a633d82000000b0041a3b20ba0esi5302907pga.383.2022.07.22.02.45.18; Fri, 22 Jul 2022 02:45:33 -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=duT3QWxK; 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 S235574AbiGVJPu (ORCPT + 99 others); Fri, 22 Jul 2022 05:15:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235561AbiGVJPB (ORCPT ); Fri, 22 Jul 2022 05:15:01 -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 062F187F69; Fri, 22 Jul 2022 02:11:24 -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 B98ADB827C5; Fri, 22 Jul 2022 09:11:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ECDE0C341D4; Fri, 22 Jul 2022 09:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658481081; bh=SlSNdJthu1grEABHnFAa0zvb7khFkpF2P35TuMMy4lw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=duT3QWxKFUHPXsixASdpofhXENHuCc0t/gYSr6Q5fRLy7AlmlguxMuNgr2A9/Ybzt 09zrw38knubLDziR1/bqVAjhhk1oSosvf/BZ4oYb/b5QQKzscyhn047075Ux3B5cxh YOk71mjMvVFd4WmU8AmztQS4ZCHwifCo54BeFrSw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Borislav Petkov Subject: [PATCH 5.18 70/70] um: Add missing apply_returns() Date: Fri, 22 Jul 2022 11:08:05 +0200 Message-Id: <20220722090654.957035544@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220722090650.665513668@linuxfoundation.org> References: <20220722090650.665513668@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 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 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 564d998106397394b6aad260f219b882b3347e62 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: Borislav Petkov Link: https://lore.kernel.org/r/Ys%2Ft45l%2FgarIrD0u@worktop.programming.kicks-ass.net 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 @@ -432,6 +432,10 @@ void apply_retpolines(s32 *start, s32 *e { } +void apply_returns(s32 *start, s32 *end) +{ +} + void apply_alternatives(struct alt_instr *start, struct alt_instr *end) { }