Re: [PATCH] rfkill: Fix use-after-free in rfkill_resume()

2020-11-10 Thread Claire Chang
On Wed, Nov 11, 2020 at 1:35 AM Johannes Berg wrote: > > On Tue, 2020-11-10 at 16:49 +0800, Claire Chang wrote: > > If a device is getting removed or reprobed during resume, use-after-free > > might happen. For example, h5_btrtl_resume()[drivers/bluetooth/hci_h5.c] > > sc

[PATCH] rfkill: Fix use-after-free in rfkill_resume()

2020-11-10 Thread Claire Chang
before rfkill_resume() starts or the rfkill device won't be unregistered before rfkill_resume() returns. Fixes: 8589086f4efd ("Bluetooth: hci_h5: Turn off RTL8723BS on suspend, reprobe on resume") Signed-off-by: Claire Chang --- net/rfkill/core.c | 3 +++ 1 file changed, 3 insertions

Re: [PATCH v2] Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

2020-10-06 Thread Claire Chang
_create_bredr so the force_bredr_smp entry will only be created when HCI_SETUP and HCI_CONFIG are not set. Thanks, Claire On Tue, Sep 29, 2020 at 4:03 PM Claire Chang wrote: > > Avoid multiple attempts to create the debugfs entry, force_bredr_smp, > by moving it from the SMP registration

[PATCH v2] Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

2020-09-29 Thread Claire Chang
Avoid multiple attempts to create the debugfs entry, force_bredr_smp, by moving it from the SMP registration to the BR/EDR controller init section. hci_debugfs_create_bredr is only called when HCI_SETUP and HCI_CONFIG is not set. Signed-off-by: Claire Chang --- v2: correct a typo in commit

[PATCH] Bluetooth: Move force_bredr_smp debugfs into hci_debugfs_create_bredr

2020-09-15 Thread Claire Chang
Avoid multiple attempts to create the debugfs entery, force_bredr_smp, by moving it from the SMP registration to the BR/EDR controller init section. hci_debugfs_create_bredr is only called when HCI_SETUP and HCI_CONFIG is not set. Signed-off-by: Claire Chang --- net/bluetooth/hci_debugfs.c | 50