From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 0173F33E348; Fri, 3 Jul 2026 07:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783063578; cv=none; b=Qw3VOlW4lt8qtWj7grt5S+bLDLKjWtTYt60o3JxbUa183+g+jWqCTVf87FrnQmdtooTTUQFlSLANUB/BJa3ge4/d/kfVoUuTlQQ0VHzlJZvof4heYGjHUqhTtaJ2QDdjDATveE1zwYWjkiM8nVuOCqFJv7AR6dFFEVLYlwOzUvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783063578; c=relaxed/simple; bh=82ace4T1QLf1ORYfFcQKnl1kimk7Al4BqNVye0ifHvg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Tv1XgtggE514J0cQQ2de4v+727+EAVwXkx3waIVaGVo7UPk5uZS1SYzfjix0nb3bhZ/W2Z8foZSp5D0ZLgSpCEycuFWHIws47EAcGTM2U2EYW8wo/AU7B17YIlpDRZeCgrtjN1ldcow/YmjrGpRFK6XGHhRJAovqRsTGNq/gE4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=b2bnoQRR; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="b2bnoQRR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66B2C1F000E9; Fri, 3 Jul 2026 07:26:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1783063577; bh=Y09hamLsk2lFCfUJqQ/uF+LdBEsQeHwi17uiwPsXhY4=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=b2bnoQRRhHGw2qL2GPXKNwBmNZ1Y7rzJSGiYIKglcuak7OMfMHlDuKj4j7sU/JEdX yJPVjkVHvTKRSh9cKB93j5B7VhTgwZzQ153m2nqXukhKnfbUFPuTJhyQ8ZCTWNcFrL BDFBb2gQHr1BSbto4+U1UUKZcPqFcE6Qw4mOvYT0= Date: Fri, 3 Jul 2026 09:26:28 +0200 From: Greg Kroah-Hartman To: Vivian Wang Cc: stable@vger.kernel.org, patches@lists.linux.dev, Yanko Kaneti , Paul Walmsley Subject: Re: [PATCH 7.1 097/120] riscv: kfence: Call mark_new_valid_map() for kfence_unprotect() Message-ID: <2026070321-manhunt-sleet-c3fb@gregkh> References: <20260702155112.964534952@linuxfoundation.org> <20260702155114.965608834@linuxfoundation.org> <6c5c0723-66c6-4f9f-8021-2562efc95c6e@iscas.ac.cn> Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c5c0723-66c6-4f9f-8021-2562efc95c6e@iscas.ac.cn> On Fri, Jul 03, 2026 at 01:05:30PM +0800, Vivian Wang wrote: > On 7/3/26 00:21, Greg Kroah-Hartman wrote: > > > 7.1-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Vivian Wang > > > > commit 8d6c8c40e733b3fcaf92fed0a078bba2f6941a3b upstream. > > [...] > > > > --- a/arch/riscv/include/asm/kfence.h > > +++ b/arch/riscv/include/asm/kfence.h > > > > [...] > > > > - if (protect) > > + if (protect) { > > set_pte(pte, __pte(pte_val(ptep_get(pte)) & ~_PAGE_PRESENT)); > > - else > > + } else { > > set_pte(pte, __pte(pte_val(ptep_get(pte)) | _PAGE_PRESENT)); > > + mark_new_valid_map(); > > Please also backport this commit's parent, the introduction of > mark_new_valid_map(): > > 9ee25d0a70ff4494b4e1d266b962d0a574ef318a ("riscv: mm: Extract helper mark_new_valid_map()") > > before this patch. > > IIUC this is needed on 6.12.y, 6.18.y, 7.1.y. Now fixed up, thanks! greg k-h