From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796025267; b=ooptaZ1h2jJXG57owQffmIfmq9RhBE7zqZYassyblCgTfvm2T+yNtstrxnXZmbTQ2muD ITkis5pBkmu+23ay8LuGfOMITwhJizN4gkfj2bxFkStmENXWtGTUa2Q5Rp5Qe5wyUM7Pb AeVlomRC+iaAuVit6zi33SHcyPeuxOPjqw/7kVtMVbWC75IcPQhwJbSytsVvS1CTqjVS6 NUsLuXQBwS3ssGM85Zzhm/r3SWQbnNR7So/Wn3tPQ4w21r6/B48Z0qhp4Hdfs1pjLP2rf oOIhymjJpzI6SVqopf/LNw7dJuiBzndq/KyCSMKDRHBBXs0qQf8R8ND0TLm3Q56JX2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796025267; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=i19pD4Nr3OxoqpfVpE97BsXdWmSzzQDKX1Cc0neg6yk=; b=XmOvpaYLQv31QomATrr3vkL4SMlXgbxX61DQTSivBX+8hGhF6lSVvYXr68fyGnX/KHAw OLdmgbGrh1SWczEQzdyrf7la6RvptrVEAClD9obOFUVjjeL+1H+Jur/ldCdaXvWnnhSLK cZIwupzbiJAsh5UBanNqy5DLBEBH1WMkuF3pihOeDcRn2f12zWCIsGnXaNDYmxf2VlyVX +9xkIhw8090cffzt3lh9HbC/d5Lwz22mUwo8E2eOZkSe1glPOsTdiqdED3uERl+Z/5ZxW 5CeskaJS3iUN63alVaBU8+cphSIl0NE8ILXcy2YTdRP5ak/0Nj4oPzblsTX90iw+0rQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QvGZwroh; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 78DBB606A31C for ; Mon, 30 Nov 2026 07:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QvGZwroh 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261117-fixes-riscv-v2-0-5edc9bdc54fd@kernel.org> 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.