From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB48B606A31C for ; Mon, 30 Nov 2026 07:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=bDqUyGOx; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QvGZwroh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=gRy0JgPUTx+Ws0mJwCuBBGY9IIo91KO/AsbXy62eXVk=; b=bDqUyGOxwUtZp+LoszSMC0Wy8V 7JIZh1LJPRVcDaKjuZlFwps0JC18rojmqRfjzDYWRXK7OyPEZBsKQH8CaSM9/fcT4eZWIDclJemfJ V8l0HuDLfur1Yc4pK120IqgNrFmAN/x11iINHPkJpkVXzwd27ILKYg5d5c2QE9lkHn6VqVDZY7A7N 7o7Q3fJmESFwdfb2wIqSINs3SA2029+EJOtb6Lp9LmTYvvwqUD3EIJDs1zvzarfpTfU+Z7+y+LQSo +7eIXz4RoChwLt6y35wBwS4QGDYxrE1dicahbJ+9XjX32G7LropLokPD45wFDuAbIktS09LI4VvWo urR/OUQw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwDU-00000003f2o-3Y1z; Mon, 30 Nov 2026 07:54:28 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xXwDU-00000003f2h-04hL for linux-riscv@lists.infradead.org; Mon, 30 Nov 2026 07:54:28 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 573F761D4F; Mon, 30 Nov 2026 07:54:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED0BC1F00919; Mon, 30 Nov 2026 07:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796025266; bh=i19pD4Nr3OxoqpfVpE97BsXdWmSzzQDKX1Cc0neg6yk=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=QvGZwrohuoOndUE2hdXS2eSqwDD5X+xyi+eCRUS5a4eHkUG6jiuX9A6ikYxsD3Zu0 32rLcik6XKW0/1Xyy5scz53dyTHEQBABDfVt9hpJItY+twzoD2wUvXnLFnJT/nRZQ9 izHUI+XAUaQZ5lITqdgKjmjzycF1VWkEwSWI1jk+sMsosX0rzNbEsPPrSZstPjKCFI mKBV4lqhHgaOu9z3hAq2bFSgqs+Vi7EXTUaWua8TpM4Wn8deGFfa7L437EHodaPG1I xhu9/nNBcvISgVCqJq5CE1SuQoj2VyjRCJMAzp7fDBgRXNmhGvNkW8Krt4E40zKxL2 YhoKdGzoSVXbg== Date: Mon, 30 Nov 2026 09:54:20 +0200 From: Mike Rapoport To: Albert Ou , Palmer Dabbelt , Paul Walmsley Cc: Alexandre Ghiti , Jisheng Zhang , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v2 0/2] riscv: mm: fix set_memory_x() and kernel_page_present() Message-ID: References: <20261117-fixes-riscv-v2-0-5edc9bdc54fd@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20261117-fixes-riscv-v2-0-5edc9bdc54fd@kernel.org> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-8.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 gentle ping :) On Tue, Nov 17, 2026 at 04:00:19PM +0200, Mike Rapoport (Microsoft) wrote: > These are two riscv fixes I found while working on a generic > implementation of the set_memory APIs. > > The first one stops set_memory_x() from making the linear map alias of > module and BPF text executable. > > The second one makes kernel_page_present() report the pages removed from > the linear map as not present. Today it says they are mapped, and > hibernation could copy them without mapping them first. > > --- > Changes in v2: > - read the PMD entry once in kernel_page_present() (Jisheng) > - Link to v1: https://patch.msgid.link/20261112-fixes-riscv-v1-0-1caac19897b5@kernel.org > > --- > Mike Rapoport (Microsoft) (2): > riscv: mm: do not make the linear map alias executable in set_memory_*() > riscv: mm: check the valid bit in kernel_page_present() > > arch/riscv/mm/pageattr.c | 21 ++++++++++++++------- > 1 file changed, 14 insertions(+), 7 deletions(-) > --- > base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4 > change-id: 20261112-fixes-riscv-3e48788f58fe > > -- > Sincerely yours, > Mike. > -- Sincerely yours, Mike. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv