From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 19C2B38E8AD for ; Sun, 19 Jul 2026 18:38:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784486309; cv=none; b=YpG5wSkgTDE81fpnunLhyatJWGGs61T+wyzDSOy5DLwTZIyQFlThsnUKUOaXWCNCOrpvoChylAjc5CfyWDvVMgjhrUuTvFQVVvkj+8cWFiTmr2Y4IRdL6a1SOEbHhWEVFBlZsxjqjadldLomvN9Q4DK/mGI+Nsixqcn/JytbXqo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784486309; c=relaxed/simple; bh=GEUZ/S0oeDSlH1PVNp9p4m5CjSI5JTRIZBjiBwnxYwg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=ffv27IrjLtauvgYMFLnbUtI0RJL6TsWLlWSsaOc1mXKKbz3Mk91TV+5ySQJomyZrZSwDttCNPkBYB3u7+DixD3rysVAwKom4SxE71pc9jePYENDMlWQ434UpXx3x2/ylhnjopQVcx7MIIvoRfTteiJshY/ffgqWlA4GBq2HRRVg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=SuniPVPE; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fB1KGBRj; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SuniPVPE"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fB1KGBRj" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784486300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XQqaVwgUii20BE/G5QlW0NSEzL9GyXjS/Ic5nXbiCgE=; b=SuniPVPEZv5YAGZpSR9VPVD4NKhdNuz4HCfshN+rLVWwvnmtrJSDM9kQOWd4mZ8Bqo6FFs WDlHUB8ifeJoiw+JsYULj84u8QWWUp742FXh/bXtCeDWoeuk9Wjfc00GFQwRX5tM0XfJKE 7ZIDUTdZglWoOEfddRXOsrVrQUmI1jA9VbJhBzaBno94lxEGcmA6ih//dWAFnbHrqcb4k+ a7h9P55pOMjGeAWSjZXBtQbkxC8bvGgOcT6GDvoArfOBCBO3nJwDf8baSv1XDV7PH7kq4D VHSmEFjWwsY/86IuFObGU5YVe6nneCoeGSrT1O+mVooJhGxuXE7nQkjJoZ/HGA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784486300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=XQqaVwgUii20BE/G5QlW0NSEzL9GyXjS/Ic5nXbiCgE=; b=fB1KGBRjYoeb6/Q7Kv3pYOen+VJ+wxpCVQh1A55n2bk9FpfPKiFVdtEFtYJEInNqQqIEL4 qZbtX4qSdpEqzcDg== To: Xiaofeng Yuan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] riscv: mm: make EXECMEM_KPROBES writable without CONFIG_STRICT_MODULE_RWX In-Reply-To: <20260719093024.33351-2-xiaofengmian@163.com> References: <20260719093024.33351-1-xiaofengmian@163.com> <20260719093024.33351-2-xiaofengmian@163.com> Date: Sun, 19 Jul 2026 20:38:19 +0200 Message-ID: <87fr1ebzac.fsf@yellow.woof> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Xiaofeng Yuan writes: > @@ -1457,7 +1457,9 @@ struct execmem_info __init *execmem_arch_setup(void) > [EXECMEM_KPROBES] = { > .start = VMALLOC_START, > .end = VMALLOC_END, > - .pgprot = PAGE_KERNEL_READ_EXEC, > + .pgprot = IS_ENABLED(CONFIG_STRICT_MODULE_RWX) ? > + PAGE_KERNEL_READ_EXEC : > + PAGE_KERNEL_EXEC, The indentation is messed up. It looked fine in v2. Nam