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

From: Michael Bommarito

Date: Tue Apr 21 2026 - 11:19:36 EST


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.