Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2905848iog; Mon, 27 Jun 2022 05:30:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vgW41hL1vXKqHqoTwaW3Qb/yOX9DPRnrVFCJgvcinCnSNhqeXCCrH74wfdVqzIRT3X1trc X-Received: by 2002:a05:6402:298e:b0:435:61b0:41a with SMTP id eq14-20020a056402298e00b0043561b0041amr16157507edb.278.1656333019672; Mon, 27 Jun 2022 05:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333019; cv=none; d=google.com; s=arc-20160816; b=ysulw/cWMz5zss6bVVr39WwrwP53pDV8WUOyRBnuQyG5v5+792lTw+C8+ixXCUTI6j itZwCZCHqSCTMVVlcsNWUC2IWtMUpySZDZta278L9uWcUmnEK0D1RyQ+kn72+Hqmb+ta b6QY7Za9gYVqDojLiabzs5YjG9Wip2+7pPvqrXUViGbLl0CW1y3Q0KbFENHzqoX1julV NGGuaVG4ssXdf1S8Pvbm8IAqdFTLKhznXyOyicRmDhVF5jZW6BAP+qnDtduh2neq5vDm M4O+QtcwMCxkk0mTQ5TiEvWF5IGj2f1Ja86JXhWRYR7Vqc/cCJx6J5KdeSuHM+Bv/CE+ 25RQ== 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=HZH7uwSvh/c8lDiYUxNOwmXKdYL145Tfha6DUWY6+Y8=; b=EdW81hViqAS0vuBkx6VNo/FJ52h/s6wVDeDey/BbEfbvUJUzaXyYJ0TRUpZcK/0lcy M5ln4wV1dm6Cu1RpUCa0StzJd9cwsFLaxKD/mhjJ/8MgG+rUOWTdFMkQPveZ1JpwX5Nm nSYHOndUEmAKE+AwwqPWtxJeUA59DrJJ2zhRPp3zpeJtQultSQ7B73XcuJUmz+c2YedH BW1t4kOlDQ6ovJ/b1YV/8Rm1cBtox9vcwmccfoGwFG1C/VsivF8NOZ8Ppd5iQQy2IlnC mrDN0zCxR6jWvZVFuIM1ZcKs149hTEpnLkJRcp6vtTce6ipHrBlLcN4w3KxL0N6F5LFi QHtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IYFvC56Q; 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 dp15-20020a170906c14f00b006feb4cd0e23si11949257ejc.368.2022.06.27.05.29.54; Mon, 27 Jun 2022 05:30:19 -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=IYFvC56Q; 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 S235403AbiF0L3t (ORCPT + 99 others); Mon, 27 Jun 2022 07:29:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235393AbiF0L26 (ORCPT ); Mon, 27 Jun 2022 07:28:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 210379FC2; Mon, 27 Jun 2022 04:27:48 -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 dfw.source.kernel.org (Postfix) with ESMTPS id B2B78612D8; Mon, 27 Jun 2022 11:27:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8B8FC3411D; Mon, 27 Jun 2022 11:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329267; bh=Y8/7DRUh+lZjPlYwIbH/DiRIh4q8KDZY8gKG2Qs2WwE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IYFvC56QmaCMLR83nNlH7Q45VfEg3xJriO48rfzp1jYjlYoOnN32JF044unVnsGJv XLgAeYq+GT+ysAY1rOvN3anR+MDEJ9BHbITpw1TKhZ/OfsHnyQ4eq1570uMDoley20 eM03fwRZsX2DKuThv6yYJU3qGMtzK2yWVRAQ10ZY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Helge Deller , John David Anglin Subject: [PATCH 5.10 088/102] parisc: Enable ARCH_HAS_STRICT_MODULE_RWX Date: Mon, 27 Jun 2022 13:21:39 +0200 Message-Id: <20220627111936.075691997@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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.5 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: Helge Deller commit 0a1355db36718178becd2bfe728a023933d73123 upstream. Fix a boot crash on a c8000 machine as reported by Dave. Basically it changes patch_map() to return an alias mapping to the to-be-patched code in order to prevent writing to write-protected memory. Signed-off-by: Helge Deller Suggested-by: John David Anglin Cc: stable@vger.kernel.org # v5.2+ Link: https://lore.kernel.org/all/e8ec39e8-25f8-e6b4-b7ed-4cb23efc756e@bell.net/ Signed-off-by: Greg Kroah-Hartman --- arch/parisc/Kconfig | 1 + 1 file changed, 1 insertion(+) --- a/arch/parisc/Kconfig +++ b/arch/parisc/Kconfig @@ -11,6 +11,7 @@ config PARISC select ARCH_WANT_FRAME_POINTERS select ARCH_HAS_ELF_RANDOMIZE select ARCH_HAS_STRICT_KERNEL_RWX + select ARCH_HAS_STRICT_MODULE_RWX select ARCH_HAS_UBSAN_SANITIZE_ALL select ARCH_NO_SG_CHAIN select ARCH_SUPPORTS_MEMORY_FAILURE