mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Helge Deller <deller@gmx.de>
To: Danila Chernetsov <listdansp@mail.ru>
Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org
Subject: Re: [PATCH] video: fbdev: kyro: Validate overlay viewport coordinates
Date: Sat, 25 Jul 2026 17:26:30 +0200	[thread overview]
Message-ID: <8c1106df-e055-4369-b9bd-a78251d27f17@gmx.de> (raw)
In-Reply-To: <20260724004245.86764-1-listdansp@mail.ru>

On 7/24/26 02:42, Danila Chernetsov wrote:
> The overlay viewport end coordinates are computed from the viewport
> origin and dimensions using 32-bit unsigned arithmetic. Large input
> values can cause these calculations to wrap around before the resulting
> coordinates are passed to SetOverlayViewPort().
> 
> SetOverlayViewPort() packs the viewport coordinates into 16-bit
> register fields. The X coordinates are additionally adjusted by +2
> and +1 before being written. Validate the coordinate calculations
> for 32-bit wraparound and ensure that the adjusted coordinates fit
> within their 16-bit register fields before calling
> SetOverlayViewPort().
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Signed-off-by: Danila Chernetsov <listdansp@mail.ru>
> ---
>   drivers/video/fbdev/kyro/fbdev.c | 24 +++++++++++++++++++++++-
>   1 file changed, 23 insertions(+), 1 deletion(-)
applied.

Thanks!
Helge

      reply	other threads:[~2026-07-25 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-24  0:42 Danila Chernetsov
2026-07-25 15:26 ` Helge Deller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c1106df-e055-4369-b9bd-a78251d27f17@gmx.de \
    --to=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=listdansp@mail.ru \
    --cc=lvc-project@linuxtesting.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®