From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E09771DF261 for ; Tue, 18 Nov 2025 21:10:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763500242; cv=none; b=FoD18F+erwO/4vePmMPUeBdGqvmQAxRciywnRG0OLyvxCONKmWVkUPSgMtiKgdvAFi/kdP3WggasXWxhVEDap8j208zbiIGNlsPAftYumkVfObwpDc5WU1ng0G9GtnFf43+Fc4bzHW8ejHpLK9uWbhrWjzG0ybtQebGfTKR5EQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763500242; c=relaxed/simple; bh=mQIatXrUesCCYwuwCw6Di94Em27lL6vtxEHYpc5jvdc=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=PLP3GZ9MWH3VGvBCodfRCWML6C7fGkFAoJwkz+vgwLJhXZCDWw/3rl9lrQc+2brYdRFv+G4f3tg162ilLSGUaXiVDVI+YyyDQzwurOnWOFAinnuY/YY3I4NFgM0dmkP6LIQxuURNDQY9d0bQaBhDeyDgk+Es308ogVc/LGHA/n8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=En0rq2b1; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="En0rq2b1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A645AC4CEF5; Tue, 18 Nov 2025 21:10:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1763500240; bh=mQIatXrUesCCYwuwCw6Di94Em27lL6vtxEHYpc5jvdc=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=En0rq2b1mYkournvkMegEGzUljsRV0vd/iUWH3iGQQugye4p8tDYPayEhd0GMVyPO WTxewXvbHf1385cbRKBaMR0ZnAZxhSxf+UdNpWLusOkptK9q4kQHCiU+55khO5K70a J4P93bmS8maZd/tUwzByuxdynwZg4LY4sX/Xj8uGvY6ft46TGFLSU1kLGsi6ddAXQu FnGmxQGibrmXsymqILkfvCA9/jJIVDnTIF6ml7ZtWFwyjS7n7P+v6l4SFhq7xhaZRS BXkZAgmv2obLCxF6FbmaCQuzrmhTIhWuWkOja0vwJREVJU0r75ZGVoNWDJnXezEgEc 8wCDv6SA2ujkg== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 33E70380A949; Tue, 18 Nov 2025 21:10:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: fix KUnit test_kprobes crash when building with Clang From: patchwork-bot+linux-riscv@kernel.org Message-Id: <176350020601.107040.11107481063131257896.git-patchwork-notify@kernel.org> Date: Tue, 18 Nov 2025 21:10:06 +0000 References: <738dd4e2.ff73.19a7cd7b4d5.Coremail.xujiakai2025@iscas.ac.cn> In-Reply-To: <738dd4e2.ff73.19a7cd7b4d5.Coremail.xujiakai2025@iscas.ac.cn> To: Jiakai Xu Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr Hello: This patch was applied to riscv/linux.git (fixes) by Paul Walmsley : On Thu, 13 Nov 2025 18:51:42 +0800 (GMT+08:00) you wrote: > Clang misaligns the test_kprobes_addresses and test_kprobes_functions > arrays, or does not export local labels by default. Both can cause > kmalloc_array() allocation errors and KUnit failures. > > This patch fixes the issue by: > - Adding .section .rodata to explicitly place arrays in the read-only data segment. > - Adding .align 3 to align arrays to 8 bytes. > - Adding .globl to probe labels to ensure symbols are visible. > > [...] Here is the summary with links: - riscv: fix KUnit test_kprobes crash when building with Clang https://git.kernel.org/riscv/c/e2285bd4a467 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html