Skip to content

Bluetooth: HCI: Use skb_pull to parse events

Luiz Augusto von Dentz linux-bluetooth 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 10 repliesIn review
  2. v110 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Bluetooth: HCI: Use skb_pull to parse BR/EDR eventsinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+229 -478 replies
2/10Bluetooth: HCI: Use skb_pull to parse Command Complete eventnet/bluetooth/hci_event.c+581 -1850 replies
3/10Bluetooth: HCI: Use skb_pull to parse Number of Complete Packets eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+12 -101 reply
4/10Bluetooth: HCI: Use skb_pull to parse Inquiry Result eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+19 -51 reply
5/10Bluetooth: HCI: Use skb_pull to parse Inquiry Result with RSSI eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+33 -190 replies
6/10Bluetooth: HCI: Use skb_pull to parse Extended Inquiry Result eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+20 -50 replies
7/10Bluetooth: HCI: Use skb_pull to parse LE Metaeventsnet/bluetooth/hci_event.c+64 -110 replies
8/10Bluetooth: HCI: Use skb_pull to parse LE Advertising Report eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+32 -120 replies
9/10Bluetooth: HCI: Use skb_pull to parse LE Extended Advertising Report eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+36 -170 replies
10/10Bluetooth: HCI: Use skb_pull to parse LE Direct Advertising Report eventinclude/net/bluetooth/hci.h net/bluetooth/hci_event.c+25 -80 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/10] Bluetooth: HCI: Use skb_pull to parse events

From: Luiz Augusto von Dentz <[email protected]>

This set ensures events received have the minimum required length using skb_pull to advance on packet, it also rework some of events to take advantage flex_array_size for events that can have variable size.

This should fix issues found by szybot like:

[syzbot] KMSAN: uninit-value in hci_event_packet

v2: Fixes issues found by CI

Luiz Augusto von Dentz (10):
Bluetooth: HCI: Use skb_pull to parse BR/EDR events
Bluetooth: HCI: Use skb_pull to parse Command Complete event
Bluetooth: HCI: Use skb_pull to parse Number of Complete Packets event
Bluetooth: HCI: Use skb_pull to parse Inquiry Result event
Bluetooth: HCI: Use skb_pull to parse Inquiry Result with RSSI event
Bluetooth: HCI: Use skb_pull to parse Extended Inquiry Result event
Bluetooth: HCI: Use skb_pull to parse LE Metaevents
Bluetooth: HCI: Use skb_pull to parse LE Advertising Report event
Bluetooth: HCI: Use skb_pull to parse LE Extended Advertising Report
event
Bluetooth: HCI: Use skb_pull to parse LE Direct Advertising Report
event

 include/net/bluetooth/hci.h |   59 +-
 net/bluetooth/hci_event.c   | 1311 +++++++++++++++++++++++++++--------
 2 files changed, 1051 insertions(+), 319 deletions(-)
Signature · 1 line
2.30.2