Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1438069lql; Tue, 12 Mar 2024 18:38:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0O1dErHnXBSI4N9Npr4kQ6OtJTbjBKMWwqR3mV9JzYcoKOlovyHWFsX/6bq2Mb8aKKW88JXrKiPcbTLW75Nec6iQBovW+aABODgmtXg== X-Google-Smtp-Source: AGHT+IEsbvRTtkt3A47ln4ZS8YcRLeXQLEhRN62UgyAtxpXCoXIkG6A5xKXtSNXPvh1Xnl1k9+VN X-Received: by 2002:a05:6a20:430b:b0:1a1:4c14:8f73 with SMTP id h11-20020a056a20430b00b001a14c148f73mr6097846pzk.53.1710293923577; Tue, 12 Mar 2024 18:38:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710293923; cv=pass; d=google.com; s=arc-20160816; b=og7oVmn9/2U5UvMvquTLNIWKpUqzIjVKesk71yrh8UUXWcir2hFyD43DGI7no7CDE3 XOtk8LYMe9hYjTVqUYQ5O/HlknFhSEkBYNaEXE9cFz0La6sinIaco5/VbetYWuYgfBCG uPR4fPz1wYSZ+5f7BFv9yDrXH8aAsC62GwGNBvfrS+NShjh4KQWIiLEFNdOsW8t3uT/7 Ez+ssCE4TmP8LNc3NhJFuam3w/+oaXm8LPfSPraR9dw6DYv0McQrtXnjUT6TIVpo+V18 IFgGgrCMa/7XXEJ0F8+08Zocj236UHlItQ34TZ7hRxKPQ8RU7zBN/J0aMOBU6Elv3bBP nMMA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=hq6ZayF5HIGEfSfJFdnv7uS9zlR+5nppIUmOOmY8mBU=; fh=Ys2oVHKp/oFjCpX2iYQbC7U5VJbXf6Ta9akZIrqV1F0=; b=bKK3/aIp41uM6SemVP3wHRWbj2DK6mBrhMehopm+LKX/Dypkc5Ry0YaNYimF93yrUs ukSM5QpYHOyD3UxZu7GoCUUVYZvyiwm9WBQakQ2KSgIV0bpqceEI0ZFtUgZbiXx43ikZ HzPcFz6ujApRXCqIzAsqLg3tP2wOcpGIpia5+4LtIR5dthfR/RHy7O8NYrgzPgq0H1Ly qGXAluY59iaMkPucxG9rUQmJfcqeOd/i+tAFlXxB65MiB3w6d03uDUbOu8F3/za3Ires YE0WAsMBfRbEVwZGIl+ufl3memTdoLpUTjgn+52Jc7na85ZmyhV+97/nTjozop+s4qz2 qGjA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=AmhtsckY; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-101029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id pb18-20020a17090b3c1200b0029b9a16ae9fsi422160pjb.182.2024.03.12.18.38.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 18:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=AmhtsckY; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-101029-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101029-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 294C528505B for ; Wed, 13 Mar 2024 01:38:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C59B5BA2B; Wed, 13 Mar 2024 01:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="AmhtsckY" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 000942F2B; Wed, 13 Mar 2024 01:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710293916; cv=none; b=AVkgRKiE3z1JXyh9FtwCH6Jtank2o/jePQ3rC+jp26j5lkByCu2m5fq3Nx2N8rC/K7SuILATVFNKQS7pIG4cLQVPR8N1RgNjFmW3G2CH6GPgHI7dKMI12M1XJqVKGOQM++a8ERNWL5RxTtgGScxnsZIKFXeSA90QOZUnFjQEaRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710293916; c=relaxed/simple; bh=elyAwsBMhBT+fZx4cbo81a/ihT1pgtXSmCdhSQhxU5c=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=NVW1JQdWSMVPlFZm3c6AM7ZghgkNnheUY18UjrYZNz4Vw/GT+lLo6jW1UBmrLmL1C7jWwEbpsWKroPlfLUUOHgej39naN5x8l9CekF2ZLILx/QxN+JwRLrdyRQgb0yd9Ni6n6OOmNzt5jiih3Kq8yP6z0Bf9Pp3jBTvCLF1l9uI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=AmhtsckY; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To:References; bh=hq6ZayF5HIGEfSfJFdnv7uS9zlR+5nppIUmOOmY8mBU=; b=AmhtsckYWdqbEX3JDk+Uhn6jSo EDz3UVDpRqqOAb/HPGcogJ823lqtFj+dXCt35FiRIFCCrE26YRijxNLAKovcxGhd6CGEYgjtcYy/8 X0PJnH8ogOwXxYNboJF/t6JEcBRooA2rqUWUwZWEmnrgKiwztK8wKRTT+z2LGC4AlOXkYYjVKsjSa z4wNc20F6ICca4+Kgcnm9MYW1R1kf1GME94F0IWQ8ngdk3OHKJqsJS1N+Ix2H5y60q1W9+GBg2Wpc Sr5z3trRCOJKrUplxUhopaz80sYGgIuSEiFYqHyw8NQgGjEMHuCWutRHjdMUtuTgUN8NxiI76GTKd 7bnNP2yA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1rkDZg-00000008SCx-3iG3; Wed, 13 Mar 2024 01:38:32 +0000 Date: Tue, 12 Mar 2024 18:38:32 -0700 From: Luis Chamberlain To: Linus Torvalds , linux-modules@vger.kernel.org Cc: patches@lists.linux.dev, linux-kernel@vger.kernel.org, Christophe Leroy , Randy Dunlap , Marek Szyprowski , Kees Cook , mcgrof@kernel.org Subject: [GIT PULL] Modules changes for v6.9-rc1 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: Luis Chamberlain The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3: Linux 6.8-rc2 (2024-01-28 17:01:12 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/ tags/modules-6.9-rc1 for you to fetch changes up to d1909c0221739356f31c721de4743e7d219a56cc: module: Don't ignore errors from set_memory_XX() (2024-02-16 11:30:43 -0800) ---------------------------------------------------------------- Modules changes for v6.9-rc1 Christophe Leroy did most of the work on this release, first with a few cleanups on CONFIG_STRICT_KERNEL_RWX and ending with error handling for when set_memory_XX() can fail. This is part of a larger effort to clean up all these callers which can fail, modules is just part of it. This has been sitting on linux-next for about a month without issues. ---------------------------------------------------------------- Christophe Leroy (6): module: Use set_memory_rox() module: Change module_enable_{nx/x/ro}() to more explicit names init: Declare rodata_enabled and mark_rodata_ro() at all time modules: Remove #ifdef CONFIG_STRICT_MODULE_RWX around rodata_enabled powerpc: Simplify strict_kernel_rwx_enabled() module: Don't ignore errors from set_memory_XX() Randy Dunlap (1): lib/test_kmod: fix kernel-doc warnings arch/powerpc/include/asm/mmu.h | 9 +----- include/linux/init.h | 4 --- init/main.c | 21 +++++--------- kernel/module/internal.h | 6 ++-- kernel/module/main.c | 20 +++++++++++--- kernel/module/strict_rwx.c | 63 +++++++++++++++++++++++++++--------------- lib/test_kmod.c | 6 +++- 7 files changed, 73 insertions(+), 56 deletions(-)