From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BFC26C44521 for ; Mon, 20 Jul 2026 07:12:07 +0000 (UTC) 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:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zmTmT/6pTOWRx3dOS5avUOfMoIjYn8j6mUSg4+5c+XA=; b=fV+pvfunRrskG4 rnS2P7w56yBJyCUSJc2pRHculVtUzag0tOgZuied1eezUvdt6zg80E7fbMjG8wqjF0GZB8I/M63R6 6P2zkrK28abOF4D+26f72bLOFKXPQcb4CRAmwbJ654+HkrhWSCISvfmbeN0z5MplkbaXP8dUzYn0N OZMfMUQKufnHIZ7cgzQHxIQjnPe3LT9iNO5CcgTBWymHGALWltGILXYA8g1Q5uTRdLkRwj7FtH3dO ar1Elx8fNkjKBM838mqeGNG15uXCXHobVSL37lp4L8plaexB02/q4NvPqNH8XCiE5hm2x8UIeB532 drXKoAQoBH6dWuRf5ufA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wliAD-000000062A9-36Nu; Mon, 20 Jul 2026 07:11:45 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wliAA-0000000628s-0IBB for linux-riscv@lists.infradead.org; Mon, 20 Jul 2026 07:11:44 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784531499; 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=nYD9zXX3c9HHhl9NONzswyD+7eKrsUrSq8O7MLUXBcQ=; b=ruOFKnIXwLREv2+wY8QekiaexlWPlXyo0QG4Am8n69WjnYyW9qHtWpm5/TZCdj4cyRxfTv SbiIcuiYQhbEr51Jm4hvANqJafFMq6daEM0vTgGIeG7YxfhOMZMRLnhRNqXCrZpxwfJAm9 Nb8X4e6MPAQzUFKynN4JgwRvfmPb0SRrntS5uq4JEdTf3ZMZ3jW60rFw58NYG0o/OMvGWu YCjx+losFM0U3muBz18MSgXodcO6OUtBueJRkpxAp+KDHpTAFTWZy/Hwy0AKvTDWbhjad8 1DPMQS6qjZtWuaECZOwwxLYC7t3KYfsHG+AH2LujbEYGCZ+DOuObiRp8M3lrHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784531499; 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=nYD9zXX3c9HHhl9NONzswyD+7eKrsUrSq8O7MLUXBcQ=; b=QrCZh3ruDNPXVxsBRAnLKLdVGu5gelwzmrLAr/kCkZrMeO53GqI8erkEMgE4B+NtZtN5Gz OxfwrS6xA+k6M5CQ== To: Xiaofeng Yuan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, xiaofengmian@163.com Subject: Re: [PATCH v4 0/2] riscv: fix kprobes on minimal kernel configs In-Reply-To: <20260720032258.5188-1-xiaofengmian@163.com> References: <20260720032258.5188-1-xiaofengmian@163.com> Date: Mon, 20 Jul 2026 09:11:37 +0200 Message-ID: <87h5luf846.fsf@yellow.woof> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260720_001142_269914_2EA12AAB X-CRM114-Status: UNSURE ( 3.82 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Xiaofeng Yuan writes: > When building with an allnoconfig-derived minimal configuration > (without CONFIG_STRICT_MODULE_RWX), kprobes fails because > instruction slot pages from EXECMEM_KPROBES are read-only and > patch_map() bypasses the fixmap writable alias. > > These two patches fix the infrastructure. Reviewed-by: Nam Cao _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv 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 141D1280331 for ; Mon, 20 Jul 2026 07:11:41 +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=1784531503; cv=none; b=Ji9i9G2TtECZkHTwbYIFSvTNBpSrjPBLHW40r+Kfu+aO7EkQL4827PDw54FaC24kRJAqb/ks3BUJYxkRrZinPhbJgVsdKMzT6JkED+ugBPCm+E2Gyyjx/xvcNlOdEONkvSTty8baQZDLJ1OdJY+G1MXU2m6ueXFWJ8dwl/2tiG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784531503; c=relaxed/simple; bh=nYD9zXX3c9HHhl9NONzswyD+7eKrsUrSq8O7MLUXBcQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=qdn014yVSKBktKlTWIDs7ixbbaFcqVNAPY4eVWqbOdsBFA3hYPTT0viM3pO1EUZ2dxK17KXPME2I6SVcGoWOn5h/SfKDNfC3/qZZtdYADI/pTSGF2tvzcFJHHaSu8uTABPMTm9k6Be/YzJmX4YUqksdIG0HoO7PP5QiVsvtsUPM= 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=ruOFKnIX; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QrCZh3ru; 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="ruOFKnIX"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QrCZh3ru" From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1784531499; 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=nYD9zXX3c9HHhl9NONzswyD+7eKrsUrSq8O7MLUXBcQ=; b=ruOFKnIXwLREv2+wY8QekiaexlWPlXyo0QG4Am8n69WjnYyW9qHtWpm5/TZCdj4cyRxfTv SbiIcuiYQhbEr51Jm4hvANqJafFMq6daEM0vTgGIeG7YxfhOMZMRLnhRNqXCrZpxwfJAm9 Nb8X4e6MPAQzUFKynN4JgwRvfmPb0SRrntS5uq4JEdTf3ZMZ3jW60rFw58NYG0o/OMvGWu YCjx+losFM0U3muBz18MSgXodcO6OUtBueJRkpxAp+KDHpTAFTWZy/Hwy0AKvTDWbhjad8 1DPMQS6qjZtWuaECZOwwxLYC7t3KYfsHG+AH2LujbEYGCZ+DOuObiRp8M3lrHg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1784531499; 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=nYD9zXX3c9HHhl9NONzswyD+7eKrsUrSq8O7MLUXBcQ=; b=QrCZh3ruDNPXVxsBRAnLKLdVGu5gelwzmrLAr/kCkZrMeO53GqI8erkEMgE4B+NtZtN5Gz OxfwrS6xA+k6M5CQ== To: Xiaofeng Yuan , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Alexandre Ghiti , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, xiaofengmian@163.com Subject: Re: [PATCH v4 0/2] riscv: fix kprobes on minimal kernel configs In-Reply-To: <20260720032258.5188-1-xiaofengmian@163.com> References: <20260720032258.5188-1-xiaofengmian@163.com> Date: Mon, 20 Jul 2026 09:11:37 +0200 Message-ID: <87h5luf846.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: > When building with an allnoconfig-derived minimal configuration > (without CONFIG_STRICT_MODULE_RWX), kprobes fails because > instruction slot pages from EXECMEM_KPROBES are read-only and > patch_map() bypasses the fixmap writable alias. > > These two patches fix the infrastructure. Reviewed-by: Nam Cao