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 3F8DD335BBA; Mon, 18 Aug 2025 13:51:37 +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=1755525097; cv=none; b=a5wjsq4L5TnxZ1/L7kkx7npIQEfKqw5+VbQUUD8cAz/SsjSbt6kA25TzGpWQfyExTACc2+JJ25gdbB/d8ZCoAHkpMIg3Nvne0WAWSw90Pw6vtvYjbYZCyuTevSvZ6Yu1hpohUAqDR9Ymw+tv9AabQ7hMrSnyO1qxMwKcGfHYqPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755525097; c=relaxed/simple; bh=kJMkcRivNiRGu2yy3yYt7VohVLhvhiNQb9/0z75Y/GY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XQZac5fO+Zypu2uXatoayQGXOi1GFqKr4jgmCz3cFsBKSjjIeGmicMDOGYpyBCCPQ3ycqx+2h2u/km2P7OpnnJ06XBjF8Zn+a3vquwsZ49YqfLuBLaZfWSs1KguG7yJXbOXS4FvFmKAz9pkeUb6MWnP57AyXT5NOmv6II9moTTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LChVWWZp; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LChVWWZp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5DC3C4CEEB; Mon, 18 Aug 2025 13:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755525097; bh=kJMkcRivNiRGu2yy3yYt7VohVLhvhiNQb9/0z75Y/GY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LChVWWZpmvFGzzDA/9iMp3+vi55hgH9Qd6zV2Z6e1aW/dxYeK3gvIYNFW9vmMbrWU ELXvx0ZSLbSfu8Xw9ZITy4qh/1q644Om/xeblQNY8jVAMZ4MusZRgoHJLrSUjbHykI Io3lSwlOyGrYaatHvcMU6a9tvXv15cOxZXVr0I5U= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Aaron Kling , Thierry Reding , Sasha Levin Subject: [PATCH 6.16 157/570] ARM: tegra: Use I/O memcpy to write to IRAM Date: Mon, 18 Aug 2025 14:42:24 +0200 Message-ID: <20250818124511.863114580@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250818124505.781598737@linuxfoundation.org> References: <20250818124505.781598737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Aaron Kling [ Upstream commit 398e67e0f5ae04b29bcc9cbf342e339fe9d3f6f1 ] Kasan crashes the kernel trying to check boundaries when using the normal memcpy. Signed-off-by: Aaron Kling Link: https://lore.kernel.org/r/20250522-mach-tegra-kasan-v1-1-419041b8addb@gmail.com Signed-off-by: Thierry Reding Signed-off-by: Sasha Levin --- arch/arm/mach-tegra/reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-tegra/reset.c b/arch/arm/mach-tegra/reset.c index d5c805adf7a8..ea706fac6358 100644 --- a/arch/arm/mach-tegra/reset.c +++ b/arch/arm/mach-tegra/reset.c @@ -63,7 +63,7 @@ static void __init tegra_cpu_reset_handler_enable(void) BUG_ON(is_enabled); BUG_ON(tegra_cpu_reset_handler_size > TEGRA_IRAM_RESET_HANDLER_SIZE); - memcpy(iram_base, (void *)__tegra_cpu_reset_handler_start, + memcpy_toio(iram_base, (void *)__tegra_cpu_reset_handler_start, tegra_cpu_reset_handler_size); err = call_firmware_op(set_cpu_boot_addr, 0, reset_address); -- 2.39.5