[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E53EB6BA-06CE-48B4-96A5-745D0F2D3646@holtmann.org>
Date: Mon, 14 Mar 2022 16:34:22 +0100
From: Marcel Holtmann <marcel@...tmann.org>
To: Pavel Skripkin <paskripkin@...il.com>
Cc: Johan Hedberg <johan.hedberg@...il.com>,
Luiz Augusto von Dentz <luiz.dentz@...il.com>,
Hilda Wu <hildawu@...ltek.com>,
Archie Pusaka <apusaka@...omium.org>,
BlueZ <linux-bluetooth@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
syzbot+b9bd12fbed3485a3e51f@...kaller.appspotmail.com
Subject: Re: [PATCH] Bluetooth: hci_uart: add missing NULL check in h5_enqueue
Hi Pavel,
> Syzbot hit general protection fault in __pm_runtime_resume(). The problem
> was in missing NULL check.
>
> hu->serdev can be NULL and we should not blindly pass &serdev->dev
> somewhere, since it will cause GPF.
>
> Reported-by: syzbot+b9bd12fbed3485a3e51f@...kaller.appspotmail.com
> Fixes: d9dd833cf6d2 ("Bluetooth: hci_h5: Add runtime suspend")
> Signed-off-by: Pavel Skripkin <paskripkin@...il.com>
> ---
> drivers/bluetooth/hci_h5.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
patch has been applied to bluetooth-next tree.
However if someone would finally step up and write a standalone serdev only driver for 3-Wire UART support, this would not be a problem in the first place. We are just applying on bandaid after another.
Regards
Marcel
Powered by blists - more mailing lists