Re: [PATCH] Bluetooth: virtio_bt: clamp rx length before skb_put

From: Luiz Augusto von Dentz

Date: Tue Apr 21 2026 - 11:52:52 EST


Hi Michael,

On Tue, Apr 21, 2026 at 11:19 AM Michael Bommarito
<michael.bommarito@xxxxxxxxx> wrote:
>
> On Mon, Apr 20, 2026 at 3:17 PM Luiz Augusto von Dentz
> <luiz.dentz@xxxxxxxxx> wrote:
> > All seem like valid comments to me, first one is odd to me thought,
> > never would have though that skb_tailroom wouldn't be enough to check
> > if using `skb_put` is safe.
>
> Thanks, those were definitely gnarly. Went back in with
> cscope/libclang and found another spot to guard too.
>
> Let me know if you want me to re-organize/separate these into a
> patchset instead of one bigger patch.

Yeah, let's have it split into different patches, otherwise the commit
message gets convoluted trying to explain the what and why of each
change.


--
Luiz Augusto von Dentz