From: patchwork-bot+bluetooth@kernel.org
To: Ying Hsu <yinghsu@chromium.org>
Cc: linux-bluetooth@vger.kernel.org,
chromeos-bluetooth-upstreaming@chromium.org,
johan.hedberg@gmail.com, luiz.dentz@gmail.com,
marcel@holtmann.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Bluetooth: Fix hci_link_tx_to RCU lock usage
Date: Tue, 05 Sep 2023 18:01:53 +0000 [thread overview]
Message-ID: <169393691352.22693.18079475480346597244.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20230904141155.1688673-1-yinghsu@chromium.org>
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Mon, 4 Sep 2023 14:11:51 +0000 you wrote:
> Syzbot found a bug "BUG: sleeping function called from invalid context
> at kernel/locking/mutex.c:580". It is because hci_link_tx_to holds an
> RCU read lock and calls hci_disconnect which would hold a mutex lock
> since the commit a13f316e90fd ("Bluetooth: hci_conn: Consolidate code
> for aborting connections"). Here's an example call trace:
>
> __dump_stack lib/dump_stack.c:88 [inline]
> dump_stack_lvl+0xfc/0x174 lib/dump_stack.c:106
> ___might_sleep+0x4a9/0x4d3 kernel/sched/core.c:9663
> __mutex_lock_common kernel/locking/mutex.c:576 [inline]
> __mutex_lock+0xc7/0x6e7 kernel/locking/mutex.c:732
> hci_cmd_sync_queue+0x3a/0x287 net/bluetooth/hci_sync.c:388
> hci_abort_conn+0x2cd/0x2e4 net/bluetooth/hci_conn.c:1812
> hci_disconnect+0x207/0x237 net/bluetooth/hci_conn.c:244
> hci_link_tx_to net/bluetooth/hci_core.c:3254 [inline]
> __check_timeout net/bluetooth/hci_core.c:3419 [inline]
> __check_timeout+0x310/0x361 net/bluetooth/hci_core.c:3399
> hci_sched_le net/bluetooth/hci_core.c:3602 [inline]
> hci_tx_work+0xe8f/0x12d0 net/bluetooth/hci_core.c:3652
> process_one_work+0x75c/0xba1 kernel/workqueue.c:2310
> worker_thread+0x5b2/0x73a kernel/workqueue.c:2457
> kthread+0x2f7/0x30b kernel/kthread.c:319
> ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
>
> [...]
Here is the summary with links:
- Bluetooth: Fix hci_link_tx_to RCU lock usage
https://git.kernel.org/bluetooth/bluetooth-next/c/d606d5f4024d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2023-09-05 20:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-04 14:11 Ying Hsu
2023-09-05 18:01 ` patchwork-bot+bluetooth [this message]
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=169393691352.22693.18079475480346597244.git-patchwork-notify@kernel.org \
--to=patchwork-bot+bluetooth@kernel.org \
--cc=chromeos-bluetooth-upstreaming@chromium.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=yinghsu@chromium.org \
/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
Powered by JetHome