mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "André Almeida" <andrealmeid@igalia.com>
To: jiangfeng@kylinos.cn
Cc: mripard@kernel.org, christian.koenig@amd.com,
	rodrigo.vivi@intel.com, dri-devel@lists.freedesktop.org,
	raag.jadav@intel.com, simona@ffwll.ch,
	maarten.lankhorst@linux.intel.com, linux-kernel@vger.kernel.org,
	tzimmermann@suse.de, airlied@gmail.com
Subject: Re: [PATCH v3] drm: Fix potential overflow issue in event_string array
Date: Wed, 9 Apr 2025 01:03:57 -0300	[thread overview]
Message-ID: <1d7eac7c-e0ab-4208-b003-26b818478709@igalia.com> (raw)
In-Reply-To: <20250409014633.31303-1-jiangfeng@kylinos.cn>

Em 08/04/2025 22:46, jiangfeng@kylinos.cn escreveu:
> From: Feng Jiang <jiangfeng@kylinos.cn>
> 
> When calling scnprintf() to append recovery method to event_string,
> the second argument should be `sizeof(event_string) - len`, otherwise
> there is a potential overflow problem.
> 
> Fixes: b7cf9f4ac1b8 ("drm: Introduce device wedged event")
> Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>

Reviewed-by: André Almeida <andrealmeid@igalia.com>

  reply	other threads:[~2025-04-09  4:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-09  1:46 jiangfeng
2025-04-09  4:03 ` André Almeida [this message]
2025-04-09  6:24 ` Raag Jadav
2025-05-01 12:22   ` Raag Jadav
2025-05-02 13:35     ` Rodrigo Vivi

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=1d7eac7c-e0ab-4208-b003-26b818478709@igalia.com \
    --to=andrealmeid@igalia.com \
    --cc=airlied@gmail.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jiangfeng@kylinos.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=raag.jadav@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /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®