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=1796088699; b=3l9lDhkW11CYxPr4hU1B4w9X+d1jpByYWrSd9IHRMjiFHs/f81bykfxFmTWro0lUkHGg QapY+clu5s4N6za3l7dpJZXcJ7h8t8TKwizbYl8o6NXFukfAcFpBOgdQEw6f7KSoZTV6J OOzcj+oeIkYibiZ4MDy+5HBuRN6JKjYwca82vghuUA7rn8YgsbwjYSKo4y3dR4dLIKNhf +LYo0aOCUzC7doynK+fVQExVbT6qJdkConvxzJeEhryLIdAckF41cip1dta1cN4+Dzkpw zJVVJDRAz1xWAThCaoyM6Bt6Hb7QtXFW6iG6TrAqALNJpleKHDrvrl2KqXWtmj38UMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796088699; h=Received:DKIM-Signature:Date:From:To:cc:Subject:In-Reply-To: Message-ID:References:MIME-Version:Content-Type; bh=eThAYvstj0dQkoj9CojpiBe5lQEo/oLOgO2hti/DUjQ=; b=2gFqcnx3BgvjOcspSbKPExp9hMSm78mlb16ewK/5MJl05SVA6/ObTULZo/YhgvYJyMnf X82FkD33WH9D/d2pRm6rxNsTI644tPrE2qD2jVtgpgeHM8s81256n1K6bVWY/tfs0RTSp Ny8zodIWIEhHkg57KSzdGJMCN0Dmi49IaPILunchK6hO7Y7J4EGr6XB8Rvljd/i4hmq0I rU2/sVcPbLWsobfQ/G2HTO1sTkkhu/mJkErHqatc0RFfeb+0iKPq5jBNSWYlyJoMxjfRm C5yh4OK8Kw1vRGsixuVRE18/7/Kf6i5qWdCH8cbTL/ALGNDKmnDrD3FekCAUcxn6jkw== 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=MBnwUtla; 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 89599606A329 for ; Tue, 1 Dec 2026 01:31:39 +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=MBnwUtla Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D9561F00893; Tue, 1 Dec 2026 01:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796088699; bh=eThAYvstj0dQkoj9CojpiBe5lQEo/oLOgO2hti/DUjQ=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=MBnwUtlarUacMGD8ei1onvEFn8QFMiAajpZxfCREH72e2mINdNl/dTMNd91dNldCC s+s/T160JCHjya9ek5U8QFdNIy6bV1nM7INHCqN4HZf+bzTtK05JbaEO9mZse4DIYG crvm0iMsYFUrstJh4HdYmr5+Q+rQQSxWQbVp2J/Cijj5N2yY4j5HnK8xadTc3yK3I7 J8YZq/TC9Ksjpe6JjChZ2WbAs0TvpPnK7E6Hy4LpiaJW2dptnK6LufvQC1vmCXhtVu +FIZ/a2YPJFB1jPErmRnuIUgY/SdMRgz1EmQ0AjJtlG31bOwKaDQUcRo4uqP0ky0O6 bwVQo2/3xAUOw== Date: Mon, 30 Nov 2026 18:31:35 -0700 (MST) From: Paul Walmsley To: Jun Sun cc: linux-riscv@lists.infradead.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-kernel@vger.kernel.org, junyan.lin@spacemit.com Subject: Re: [PATCH] riscv: cpufeature: remove _RO from use_hcontext for KVM=m In-Reply-To: <20260609183250.41892-1-jsun@junsun.net> Message-ID: <51dcf7fc-8121-6d46-5d45-19fe9c15f8e2@kernel.org> References: <20260609183250.41892-1-jsun@junsun.net> 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 On Tue, 9 Jun 2026, Jun Sun wrote: > use_hcontext is in __ro_after_init but only referenced from KVM's > __jump_table. With KVM=m, jump_label_init_ro() never sees it, so > it is never sealed. Module load then tries to write to the RO key > in jump_label_add_module() and oopses. Looks like this isn't against mainline? - Paul