Re: [PATCH 1/4] tty: hvsi: fix stack overread in hvsi_version_respond()

From: Praneeth Balasubramanian

Date: Sat Dec 05 2026 - 03:20:57 EST


On Sat, 05 Dec 2026 06:53:13 +0000, sashiko-bot@xxxxxxxxxx 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()".