mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Fang Xieyan" <fangxy@xiaopeng.com>
To: "Doug Anderson" <dianders@chromium.org>
Cc: "jason.wessel" <jason.wessel@windriver.com>,
	"danielt" <danielt@kernel.org>,
	"kgdb-bugreport" <kgdb-bugreport@lists.sourceforge.net>,
	"linux-kernel" <linux-kernel@vger.kernel.org>,
	"stable" <stable@vger.kernel.org>
Subject: Re: [PATCH v2] kgdb: Fix buffer overflow in the 'M' and 'X' packet handlers
Date: Wed, 23 Sep 2026 18:48:04 +0800	[thread overview]
Message-ID: <f19bdb30-c2db-4c03-a887-e31e1a13101e.fangxy@xiaopeng.com> (raw)
In-Reply-To: <f9f9770d-f3de-4d49-b5b8-7d79dcb2d758.fangxy@xiaopeng.com>

Hi Doug,

One correction to my previous reply: after checking the packet
parsing more closely, I don't think an explicit `ptr > buf_end`
check is needed.

I'll keep the v3 implementation without this redundant check.

Thanks

      reply	other threads:[~2026-09-23 10:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 15:49 Fang Xieyan
2026-09-22 23:42 ` Doug Anderson
2026-09-23  9:11   ` Fang Xieyan
2026-09-23 10:48     ` Fang Xieyan [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=f19bdb30-c2db-4c03-a887-e31e1a13101e.fangxy@xiaopeng.com \
    --to=fangxy@xiaopeng.com \
    --cc=danielt@kernel.org \
    --cc=dianders@chromium.org \
    --cc=jason.wessel@windriver.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stable@vger.kernel.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®