All of lore.kernel.org
 help / color / mirror / Atom feed
From: Praneeth Balasubramanian <praneethb2002@gmail.com>
To: sashiko-reviews@lists.linux.dev
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jiri Slaby <jirislaby@kernel.org>,
	linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
	linux-serial@vger.kernel.org
Subject: Re: [PATCH 1/4] tty: hvsi: fix stack overread in hvsi_version_respond()
Date: Sat,  5 Dec 2026 00:20:46 -0800	[thread overview]
Message-ID: <20261205082046.2596854-1-praneethb2002@gmail.com> (raw)
In-Reply-To: <sashiko-outbox-251156@kernel.org>

On Sat, 05 Dec 2026 06:53:13 +0000, sashiko-bot@kernel.org wrote:
> [Severity: Medium]
> Should this be fixed in hvc_put_chars() instead of working around it in
> hvsi_version_respond() alone?

Yes. hvsi_query(), hvsi_set_mctrl(), hvsi_close_protocol(), the
hvsi_lib packets and hvc_poll_put_char() all pass less than 16 bytes.
Please drop this patch. I will send a powerpc patch instead, which copies
count bytes into a zeroed local buffer in hvc_put_chars():
"powerpc/pseries/hvconsole: Do not read past count in hvc_put_chars()".

  reply	other threads:[~2026-12-05  8:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-05  6:35 [PATCH 0/4] tty: fix a stack overread and missing locking in serial drivers Praneeth Balasubramanian
2026-12-05  6:35 ` [PATCH 1/4] tty: hvsi: fix stack overread in hvsi_version_respond() Praneeth Balasubramanian
2026-12-05  6:53   ` sashiko-bot
2026-12-05  8:20     ` Praneeth Balasubramanian [this message]
2026-12-05  6:35 ` [PATCH 2/4] serial: men_z135_uart: do not release an unrequested memory region Praneeth Balasubramanian
2026-12-05  6:35 ` [PATCH 3/4] tty: atmel_serial: take the port lock in console write Praneeth Balasubramanian
2026-12-05  6:59   ` sashiko-bot
2026-12-05  8:20     ` Praneeth Balasubramanian
2026-12-05  6:35 ` [PATCH 4/4] mxser: take termios_rwsem in mxser_set_serial_info() Praneeth Balasubramanian
2026-12-05  6:56   ` sashiko-bot
2026-12-05  6:59 ` [PATCH 0/4] tty: fix a stack overread and missing locking in serial drivers sashiko-bot

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=20261205082046.2596854-1-praneethb2002@gmail.com \
    --to=praneethb2002@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jirislaby@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.