mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeff Chen <chunfan.chen@gmail.com>
To: Heyang Tan <thy15333007817@163.com>
Cc: francesco@dolcini.it, johannes@sipsolutions.net,
	linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] wifi: nxpwifi: bound debug info output
Date: Mon, 21 Sep 2026 16:59:37 +0800	[thread overview]
Message-ID: <arDx+VzL2IVXeZPx@nxpwireless-Inspiron-14-Plus-7440> (raw)
In-Reply-To: <20260919044439.1042-1-thy15333007817@163.com>

On Sat, Sep 19, 2026 at 12:44:39 PM +0800, Heyang Tan wrote:
> nxpwifi_debug_read() provides a PAGE_SIZE buffer to
> nxpwifi_debug_info_to_buffer(), which formats debug state with
> unbounded sprintf() calls. The same helper is also used for the firmware
> dump.
> 
> Pass the output size to the helper and use scnprintf() while formatting.
> Clamp the debug table counts and window size to the backing array lengths
> before accessing them.
> 

Reviewed-by: Jeff Chen <jeff.chen_1@nxp.com>

      reply	other threads:[~2026-09-21  8:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-19  4:02 [PATCH v3 0/2] wifi: nxpwifi: bound debugfs output Heyang Tan
2026-09-19  4:02 ` [PATCH v3 1/2] wifi: nxpwifi: bound histogram " Heyang Tan
2026-09-21  8:08   ` Jeff Chen
2026-09-19  4:44 ` [PATCH v3 2/2] wifi: nxpwifi: bound debug info output Heyang Tan
2026-09-21  8:59   ` Jeff Chen [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=arDx+VzL2IVXeZPx@nxpwireless-Inspiron-14-Plus-7440 \
    --to=chunfan.chen@gmail.com \
    --cc=francesco@dolcini.it \
    --cc=johannes@sipsolutions.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=thy15333007817@163.com \
    /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®