Skip to content

Bluetooth: Fix skb handling in net/bluetooth/mgmt.c

Radoslaw Biernacki linux-bluetooth lkml netdev 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v11 patch 5 repliesSuperseded

Changes in v3 from the cover letter

- fixed author email

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2Bluetooth: Fix skb allocation in mgmt_remote_name() & mgmt_device_connected()net/bluetooth/eir.h net/bluetooth/mgmt.c+13 -102 replies
2/2Bluetooth: Improve skb handling in mgmt_device_connected()net/bluetooth/eir.h net/bluetooth/mgmt.c+23 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Bluetooth: Fix skb handling in net/bluetooth/mgmt.c

Here is third version of the fix for skb handling in net/bluetooth/mgmt.c First patch is fixing the skb allocation which theoretically might push skb tail beyond its end.
Second patch simplifies operations on eir while using skb. Patches adds two helper functions to eir.h to align to the goal of eliminating the necessity of intermediary buffers, which can be achieved with additional changes done in this spirit.

v2->v3:
- fixed author email
v1->v2:
- fix mgmt_device_connected()
- add eir_skb_put_data() - function for skb handing with eir

Radoslaw Biernacki (2):
Bluetooth: Fix skb allocation in mgmt_remote_name() &
mgmt_device_connected()
Bluetooth: Improve skb handling in mgmt_device_connected()

 net/bluetooth/eir.h  | 20 ++++++++++++++++++++
 net/bluetooth/mgmt.c | 43 ++++++++++++++++---------------------------
 2 files changed, 36 insertions(+), 27 deletions(-)
Signature · 1 line
2.35.0.rc2.247.g8bbb082509-goog