Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.216.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796230366; b=VfrfkbRukkB3GOK3S8F61piszkHVwiJfns3aNuWLNe5t/k09pIoQ91HBttchPpwSzBmj EFT+XaUp715W+E016kNcLEy95ZxbJ3xQvqCnJIpHZrPoqkqThkSqae67S6btEA1FbfEMe Ln+er6HiNrrqoEymdCwcJIWSUl75X9cmMbbCM6n+g5I5irb7Y4M0S2pmwCaXKPjygeAhj 3aBwqgQTdTotvksmEQrOLxi9Jq4krp8vLQJJn9P/Q75pnUYz4WmHSxpZUqN2niBHpjn/s v6agge7x0OaRaGuJ0FP6TWBIMw27D+FYe6iOWTy5HS92XthFQ5eHdKAr5WuXNWyjrAA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796230366; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=mkigvwMNmDAxbzOMkw3ca5j0X8AbqU7bGPfwm0dRi0k=; b=BaLikBAyf8JBET0AMmrKjs5LnIXO/S5JGeHHxfUZM+NYBIjnimON+cHs9IWt/c7En+Q8 2D/6WzlTDRK6rBmzVweC80Ugk+tippqTEQzqO87wktxvzl+34fsXwqrdsgGc8MZOT/c7Q sqF78UcE3e2O9a/0g5IZGntUYOGOb4RDo1hScXaPufyu4kec7ZWYqT3rqd7LGQ3CPpiI2 U9kIJAsA2iEtvlNexk6hqb4YfvaqTllzXSw/IqJKgl972aJf0nPaFpOlXsjzNGYFGKBst XlwUJSBnG3cgeyYxqPzT4OdBQN5fUwrHDNbMF0rTZObzm5xBGuRp/MMngILRzpl5dAA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b="r0N/86jD"; arc=none smtp.remote-ip=209.85.216.53 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B612606A329 for ; Wed, 2 Dec 2026 16:52:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3B612606A329 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=r0N/86jD Received: by mail-pj1-f53.google.com with SMTP id 98e67ed59e1d1-3b532f8a51eso2747822a91.1 for ; Wed, 02 Dec 2026 08:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796230365; x=1796835165; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=mkigvwMNmDAxbzOMkw3ca5j0X8AbqU7bGPfwm0dRi0k=; b=r0N/86jD17AaDYKJzRY8ptOGKOk9UKC3VOTdkScisjboTQ4HRcwTExX8xPQChQS/iZ ZdEOQfEkvmGPr48qTPeuWpQGSNer8QUBuij4WqkEO14vf8RkxjVwMgSEqVXKWW+2XalP EKDlEU+n63oLvTLM05AIcWLgWD9QPz1XL+uP9vDDPuGkfHjELOH2CkQZV9dR+bk9C4Cq 2obJA87Hj80BDYDqtXPh/Th7abzQ5QxS4Dn5JEOeOfx67kwR/2Mo2nWFIfJmAsWqtSxx VZ3VuZTynRdP++oYr1EjY7ZOEQ93kHMQNX8N77lkmVHMe39PS62gNvtVM45wcmAHPtrJ xrAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796230365; x=1796835165; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=mkigvwMNmDAxbzOMkw3ca5j0X8AbqU7bGPfwm0dRi0k=; b=Njh0Y60JH13H8u6ifV/yI2aiM9wXSicLO7UbuYdo6SCefNALZidwjxM6LSyuwANOOp VSaS/fDdtGuTxgSu6w1OH0ShW8vc3RD0PQoIeUOCNpprQp7LK7etiY3UNRB1st1/6j56 yFkOTFECXDrhhTsK95P5Kj+MNRZd3RVssVKK9LgsEuuAB+au1P3oTKXdAJ5+WF9OC/cF ZMS0VBDU1VOSLhpaXMc2fyLbe31xGYpsNh6MSStebjcH4iJnQ2+C88VqkqzVoOrgHv6h 3jRmClLdlBeKcCJgMrAZyYlmhdIjY1DaBmMTag8NVmsMw5xss85IJ18oHbmeIxf4DOqt xGeQ== X-Forwarded-Encrypted: i=1; AL+hErGrvw3LOgnCMbuMiN11hQ5Unr3RdmFtWgDqvuDoEcZwvn7iMrqlDnIm8J4FgJ1Je9Ho9+S2gv7L4U2SKQ==@vger.kernel.org X-Gm-Message-State: APuU4Z8HkooQkoYtBNZAhyfaXJFD1tAWl8GeNbv2SeHKYWXITldbEnpW AaFHep6FRVMmDXcvmHWMSRMl2V4Ze2SXHTnDgN9JUvA1eDFup5HiGFB4 X-Gm-Gg: AZFdTZc7R/xE90fhAz65IJUT2j2jTuedb1P2JdEXT1cdttR6PIkw6Mve/hygb0ULHT0 mkxtkwzWWzE7jBLZmpk9JZWgUMrm+qowOFJe5uSCvsCdOASo1aSdOBO8zs4ceOFjBEur6v7E0QA VbP51inSaJE9kqm81d6q7HRn5lNEtfm87J8kJO9W5NhcmAmlwfZ6gxFx5U59vHJLAUYcqNho4zV seAiDnuNdKj71Qe+IVAiIIpypExsxX6Iztryh8aJnxDxPNV5glVAqFCbPbJoKsRAOJEjztQXotP rZJZ6OIgyORZnZWMFSwKXDuAy5vZx0C2rfG63y8i3AhO8xnXts44Z2QX7/L7pf+r+XQHrYn/lqF fSn9Mnpgh2w4w7pGerg9yOxg11ooylRl5h9TpZyMsTKmjB+nPGOR59Z0eRiuQo3TdV5gLrZPYC3 W7JZUq+O+09eDz6g4HaudflBObuogXKNKyDYyAhFH4RnxvdOnpfje1rRpDwOnCA5zf8LdMO0ShK Tcd5UVgNtgwkwlfboQkqZs+YzmRMcKzqEv/wlS+3iV42kgtm1oCWEtIr1N9X1RMRjOUNd4zza6O eXLi8VfQoaftT7/FPJ8X9kqwcl3d4AUA4RajPKOe3vBc73C1Ah+Hv7nI/b8Xj87utUBE1Wpqh6Z I4cr61n/8ftFTZQ== X-Received: by 2002:a17:90b:35c3:b0:3b0:9782:8721 with SMTP id 98e67ed59e1d1-3b41c946374mr37607060a91.36.1796230365388; Wed, 02 Dec 2026 08:52:45 -0800 (PST) Received: from hyeonjun-ThinkPad-X13-Gen-1.. ([124.197.199.8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b4b3c71192sm48091051a91.5.2026.12.02.08.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Dec 2026 08:52:44 -0800 (PST) From: Hyeonjun Hong To: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Cc: Mauro Carvalho Chehab , Geert Uytterhoeven , Magnus Damm , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 1/2] media: rcar-isp: Account for the header in the ConfigDMA bounds check Date: Thu, 3 Dec 2026 01:52:05 +0900 Message-Id: <20261202165205.749426-1-hyeonjunhong330@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261202164342.GI3157946@ragnatech.se> References: <20261202164342.GI3157946@ragnatech.se> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Niklas, On 2026-12-02 17:43:42 +0100, Niklas Söderlund wrote: > d00h this should have been / 16, not / 8. Maybe add a define for that > too, RISP_IO_PARAMS_PAIR_SIZE and use that ;-) Sure, I will add RISP_IO_PARAMS_PAIR_SIZE, and a patch that makes risp_core_job_prepare() use RISP_IO_PARAMS_MAX_PAIRS. One thing I would like to double check with you, since you know the hardware and I only have the code to go by. I may well be misreading it, but a pair looks like 8 bytes to me: risp_conf_dma_prepare() stores two u32 per pair, and vsp1_vspx.c transfers "pairs * 2 + 2" 32-bit words. The check in risp_core_job_prepare() is the only place I found that counts 16. Either value fixes the overflow, 16 just gives 1023 pairs instead of 2047, so I am happy to go with whichever you prefer. Thanks for the quick replies, Hyeonjun