linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 00/10] Bluetooth: HCI: Use skb_pull to parse events
@ 2021-04-19 17:12 Luiz Augusto von Dentz
  2021-04-19 17:12 ` [PATCH v2 01/10] Bluetooth: HCI: Use skb_pull to parse BR/EDR events Luiz Augusto von Dentz
                   ` (9 more replies)
  0 siblings, 10 replies; 21+ messages in thread
From: Luiz Augusto von Dentz @ 2021-04-19 17:12 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-04-27 18:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 17:12 [PATCH v2 00/10] Bluetooth: HCI: Use skb_pull to parse events Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 01/10] Bluetooth: HCI: Use skb_pull to parse BR/EDR events Luiz Augusto von Dentz
2021-04-19 17:46   ` Bluetooth: HCI: Use skb_pull to parse events bluez.test.bot
2021-04-23 12:26   ` [PATCH v2 01/10] Bluetooth: HCI: Use skb_pull to parse BR/EDR events Marcel Holtmann
2021-04-26 21:50     ` Luiz Augusto von Dentz
2021-04-27  6:07       ` Marcel Holtmann
2021-04-27 17:57         ` Luiz Augusto von Dentz
2021-04-27 18:37           ` Marcel Holtmann
2021-04-27 18:50             ` Luiz Augusto von Dentz
2021-04-27 18:59               ` Marcel Holtmann
2021-04-19 17:12 ` [PATCH v2 02/10] Bluetooth: HCI: Use skb_pull to parse Command Complete event Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 03/10] Bluetooth: HCI: Use skb_pull to parse Number of Complete Packets event Luiz Augusto von Dentz
2021-04-23 12:28   ` Marcel Holtmann
2021-04-19 17:12 ` [PATCH v2 04/10] Bluetooth: HCI: Use skb_pull to parse Inquiry Result event Luiz Augusto von Dentz
2021-04-23 12:28   ` Marcel Holtmann
2021-04-19 17:12 ` [PATCH v2 05/10] Bluetooth: HCI: Use skb_pull to parse Inquiry Result with RSSI event Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 06/10] Bluetooth: HCI: Use skb_pull to parse Extended Inquiry Result event Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 07/10] Bluetooth: HCI: Use skb_pull to parse LE Metaevents Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 08/10] Bluetooth: HCI: Use skb_pull to parse LE Advertising Report event Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 09/10] Bluetooth: HCI: Use skb_pull to parse LE Extended " Luiz Augusto von Dentz
2021-04-19 17:12 ` [PATCH v2 10/10] Bluetooth: HCI: Use skb_pull to parse LE Direct " Luiz Augusto von Dentz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).