From: Marcel Holtmann <marcel@holtmann.org>
To: Pavel Skripkin <paskripkin@gmail.com>
Cc: Johan Hedberg <johan.hedberg@gmail.com>,
Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Hilda Wu <hildawu@realtek.com>,
Archie Pusaka <apusaka@chromium.org>,
BlueZ <linux-bluetooth@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
syzbot+b9bd12fbed3485a3e51f@syzkaller.appspotmail.com
Subject: Re: [PATCH] Bluetooth: hci_uart: add missing NULL check in h5_enqueue
Date: Mon, 14 Mar 2022 16:34:22 +0100 [thread overview]
Message-ID: <E53EB6BA-06CE-48B4-96A5-745D0F2D3646@holtmann.org> (raw)
In-Reply-To: <20220313174936.1299-1-paskripkin@gmail.com>
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@syzkaller.appspotmail.com
> Fixes: d9dd833cf6d2 ("Bluetooth: hci_h5: Add runtime suspend")
> Signed-off-by: Pavel Skripkin <paskripkin@gmail.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
next prev parent reply other threads:[~2022-03-14 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-13 17:49 Pavel Skripkin
2022-03-14 15:34 ` Marcel Holtmann [this message]
2022-03-14 15:40 ` patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E53EB6BA-06CE-48B4-96A5-745D0F2D3646@holtmann.org \
--to=marcel@holtmann.org \
--cc=apusaka@chromium.org \
--cc=hildawu@realtek.com \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=paskripkin@gmail.com \
--cc=syzbot+b9bd12fbed3485a3e51f@syzkaller.appspotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®