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 3555B223708; Thu, 9 Jan 2025 16:16:32 +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=1736439393; cv=none; b=NLmw9zxAlsNHl83MCKxieCbi8Dy/0lUPWO8maeE75MqOPlXKyrFsr1eOKYbI1BfBhiMnIbEWCM1mDcA3PNuYwH6LRlCJJ8NMFPN9pnd1BygS4WeT2Ld0nbLP72hqchZ7EvIXpbqaPLF7QIJyF/8eyE69o/d9krDKAmcVrLvkhZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736439393; c=relaxed/simple; bh=N0K2fUUZiT5S8AtXybWvlF4A8ZPgxRZ683066WaK6DE=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=nXLevTs8PeiemRBl+BVgG48bKUrQtQycBto5Lu6Pnvmw+IEAaSyQ+34dwEdleLJMLCce0Uxla8IHPGpgaWC6h5jK2A7fZrWLAZZinZB6yyW76AtUUW4mAPvaua3L+u27SFZu56nsvSep67JQ5MQdKFt77fumtW9nEEW+BClNP2I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iELjAewS; 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="iELjAewS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BEC82C4CED3; Thu, 9 Jan 2025 16:16:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736439392; bh=N0K2fUUZiT5S8AtXybWvlF4A8ZPgxRZ683066WaK6DE=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=iELjAewSOPbolsIKurxjQ7zRsA+N2qPHi7gSaBeLyJJiQvWkh0I9MHKd3j4WVqo/s JS+Ly0+ZxsWgmFU/ag79zzCdF6Dbg8HC3QCtIXQ/ljm9B/Vs19ZJ/eO1XhNHDJ5TCa GlVIhhyp3q3S33wpZ6Z6pvjNbPGd1h9WwfdJfL6g+l0CrQGFl2cfZRcGd+hf4QUBwg TFF1hGy9ZGhe4aROuuG4I2voPOa2Erj5hB8aora04Yjwv11khkD3TeIN4HsopniXJJ BRP9iSoj9vYkyJwrRNgfwJkf6M/zUEjRzzt77upUFKGm/CO/jQSNBy644zTQn/gwhK hkSxRD7kEpwiQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id ADC6D380A97D; Thu, 9 Jan 2025 16:16:55 +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: kprobes: Fix incorrect address calculation From: patchwork-bot+linux-riscv@kernel.org Message-Id: <173643941449.1375203.9833257781109413385.git-patchwork-notify@kernel.org> Date: Thu, 09 Jan 2025 16:16:54 +0000 References: <20241119111056.2554419-1-namcao@linutronix.de> In-Reply-To: <20241119111056.2554419-1-namcao@linutronix.de> To: Nam Cao Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, samuel.holland@sifive.com, bjorn@rivosinc.com, linux-kernel@vger.kernel.org, john.ogness@linutronix.de, stable@vger.kernel.org Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 19 Nov 2024 12:10:56 +0100 you wrote: > p->ainsn.api.insn is a pointer to u32, therefore arithmetic operations are > multiplied by four. This is clearly undesirable for this case. > > Cast it to (void *) first before any calculation. > > Below is a sample before/after. The dumped memory is two kprobe slots, the > first slot has > > [...] Here is the summary with links: - riscv: kprobes: Fix incorrect address calculation https://git.kernel.org/riscv/c/13134cc94914 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html