lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5503c74a64684cdeb7fae6225319fb3c@realtek.com>
Date: Tue, 1 Oct 2024 07:44:09 +0000
From: Hilda Wu <hildawu@...ltek.com>
To: Paul Menzel <pmenzel@...gen.mpg.de>
CC: "marcel@...tmann.org" <marcel@...tmann.org>,
        "luiz.dentz@...il.com"
	<luiz.dentz@...il.com>,
        "linux-bluetooth@...r.kernel.org"
	<linux-bluetooth@...r.kernel.org>,
        "linux-kernel@...r.kernel.org"
	<linux-kernel@...r.kernel.org>,
        "alex_lu@...lsil.com.cn"
	<alex_lu@...lsil.com.cn>,
        Max Chou <max.chou@...ltek.com>, KidmanLee
	<kidman@...ltek.com>,
        "howardchung@...gle.com" <howardchung@...gle.com>,
        "apusaka@...omium.org" <apusaka@...omium.org>,
        "yinghsu@...omium.org"
	<yinghsu@...omium.org>,
        "johnlai@...gle.com" <johnlai@...gle.com>
Subject: RE: [PATCH] Bluetooth: btrtl: Shorten HCI_OP_RESET timeout

Hi Paul,

Thank you for your opinion.
I just modified the commit message summary and sent v2.
Please check the following comment.
Thanks again.

Regards,
Hilda

-----Original Message-----
From: Paul Menzel <pmenzel@...gen.mpg.de> 
Sent: Friday, September 27, 2024 2:48 PM
To: Hilda Wu <hildawu@...ltek.com>
Cc: marcel@...tmann.org; luiz.dentz@...il.com; linux-bluetooth@...r.kernel.org; linux-kernel@...r.kernel.org; alex_lu@...lsil.com.cn; Max Chou <max.chou@...ltek.com>; KidmanLee <kidman@...ltek.com>; howardchung@...gle.com; apusaka@...omium.org; yinghsu@...omium.org; johnlai@...gle.com
Subject: Re: [PATCH] Bluetooth: btrtl: Shorten HCI_OP_RESET timeout


External mail.



Dear Hilda,


Thank you for your patch.

Am 27.09.24 um 08:41 schrieb Hilda Wu:
> Shorten the timeout for the HCI Reset on shutdown.

Why? It’d be great if you elaborated, and documented how to reproduce the problem.

Actually, this patch is not for fix something happen, but a prevention.
Let upper layer stack reduce the expected waiting time, for preventing stack daemon be blocked by the socket close if this could happen.

What is the old and new timeout value? For the git commit message summary, maybe use:

Add changes.

Bluetooth: btrtl: Decrease HCI_OP_RESET timeout from x ms to y ms

Add changes.

> Signed-off-by: Hilda Wu <hildawu@...ltek.com>
> ---
>   drivers/bluetooth/btrtl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c 
> index 2d95b3ea046d..7128a8a0ba25 100644
> --- a/drivers/bluetooth/btrtl.c
> +++ b/drivers/bluetooth/btrtl.c
> @@ -1371,7 +1371,7 @@ int btrtl_shutdown_realtek(struct hci_dev *hdev)
>       /* According to the vendor driver, BT must be reset on close to avoid
>        * firmware crash.
>        */
> -     skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, HCI_INIT_TIMEOUT);
> +     skb = __hci_cmd_sync(hdev, HCI_OP_RESET, 0, NULL, 
> + HCI_CMD_TIMEOUT);
>       if (IS_ERR(skb)) {
>               ret = PTR_ERR(skb);
>               bt_dev_err(hdev, "HCI reset during shutdown failed");


Kind regards,

Paul

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ