* [PATCH 4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt
@ 2024-07-05 10:01 Wentao Guan
2024-07-05 10:15 ` [4.19] " bluez.test.bot
2024-07-08 12:38 ` [PATCH 4.19] " Greg KH
0 siblings, 2 replies; 3+ messages in thread
From: Wentao Guan @ 2024-07-05 10:01 UTC (permalink / raw)
To: stable; +Cc: linux-bluetooth, guanwentao, Jaganath Kanakkassery
From: Jaganath Kanakkassery <jaganath.k.os@gmail.com>
Please apply the upstream commit:
commit cd9151b618da ("Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt")
Solved kernel BT Err "Bluetooth: Unknown advertising packet type: 0x100"
-------------------------------------------------------------------------
In ext_adv_report_event rssi comes before data (not after data as
in legacy adv_report_evt) so "+ 1" is not required in the ptr arithmatic
to point to next report.
Cc: stable@vger.kernel.org # 4.19-
Signed-off-by: Jaganath Kanakkassery <jaganath.kanakkassery@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
---
net/bluetooth/hci_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 3e7badb3ac2d..4f972c9e9dbe 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -5402,7 +5402,7 @@ static void hci_le_ext_adv_report_evt(struct hci_dev *hdev, struct sk_buff *skb)
ev->data, ev->length);
}
- ptr += sizeof(*ev) + ev->length + 1;
+ ptr += sizeof(*ev) + ev->length;
}
hci_dev_unlock(hdev);
--
2.20.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt
2024-07-05 10:01 [PATCH 4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt Wentao Guan
@ 2024-07-05 10:15 ` bluez.test.bot
2024-07-08 12:38 ` [PATCH 4.19] " Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-07-05 10:15 UTC (permalink / raw)
To: linux-bluetooth, guanwentao
[-- Attachment #1: Type: text/plain, Size: 553 bytes --]
This is an automated email and please do not reply to this email.
Dear Submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.
----- Output -----
error: patch failed: net/bluetooth/hci_event.c:5402
error: net/bluetooth/hci_event.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch
Please resolve the issue and submit the patches again.
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt
2024-07-05 10:01 [PATCH 4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt Wentao Guan
2024-07-05 10:15 ` [4.19] " bluez.test.bot
@ 2024-07-08 12:38 ` Greg KH
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2024-07-08 12:38 UTC (permalink / raw)
To: Wentao Guan; +Cc: stable, linux-bluetooth, Jaganath Kanakkassery
On Fri, Jul 05, 2024 at 06:01:06PM +0800, Wentao Guan wrote:
> From: Jaganath Kanakkassery <jaganath.k.os@gmail.com>
>
> Please apply the upstream commit:
> commit cd9151b618da ("Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt")
>
> Solved kernel BT Err "Bluetooth: Unknown advertising packet type: 0x100"
Now queued up, thanks!
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-08 12:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05 10:01 [PATCH 4.19] Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt Wentao Guan
2024-07-05 10:15 ` [4.19] " bluez.test.bot
2024-07-08 12:38 ` [PATCH 4.19] " Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox