mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Benjamin Tissoires <bentiss@kernel.org>
Cc: Jiri Kosina <jikos@kernel.org>,
	linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH 3/3] HID: core: do not bypass hid_hw_raw_request
Date: Wed, 9 Jul 2025 11:23:18 -0400	[thread overview]
Message-ID: <dfaf82da-c389-4758-ac2c-102fc418ed41@rowland.harvard.edu> (raw)
In-Reply-To: <20250709-report-size-null-v1-3-194912215cbc@kernel.org>

On Wed, Jul 09, 2025 at 04:51:48PM +0200, Benjamin Tissoires wrote:
> hid_hw_raw_request() is actually useful to ensure the provided buffer
> and length are valid. Directly calling in the low level transport driver
> function bypassed those checks and allowed invalid paramto be used.

Don't worry too much about the sanity checks.  If they had been in 
place, we wouldn't have learned about the bugs in __hid_request()!

Alan Stern

      reply	other threads:[~2025-07-09 15:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09 14:51 [PATCH 0/3] HID: core: fix __hid_request when no report ID is used Benjamin Tissoires
2025-07-09 14:51 ` [PATCH 1/3] HID: core: ensure the allocated report buffer can contain the reserved report ID Benjamin Tissoires
2025-07-09 14:51 ` [PATCH 2/3] HID: core: ensure __hid_request reserves the report ID as the first byte Benjamin Tissoires
2025-07-09 14:51 ` [PATCH 3/3] HID: core: do not bypass hid_hw_raw_request Benjamin Tissoires
2025-07-09 15:23   ` Alan Stern [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=dfaf82da-c389-4758-ac2c-102fc418ed41@rowland.harvard.edu \
    --to=stern@rowland.harvard.edu \
    --cc=bentiss@kernel.org \
    --cc=jikos@kernel.org \
    --cc=linux-input@vger.kernel.org \
    --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®