diff options
author | Zheng Wang <zyytlz.wz@163.com> | 2023-03-09 16:07:39 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-23 13:09:38 -0700 |
commit | 1e9ac114c4428fdb7ff4635b45d4f46017e8916f (patch) | |
tree | 24786f57e784961107ac608807a0c7ecbb942af4 /tools/testing/selftests/bpf/progs/uninit_stack.c | |
parent | 9aa9d9473f1550d1936c31259720b3f1f4690576 (diff) |
Bluetooth: btsdio: fix use after free bug in btsdio_remove due to unfinished work
In btsdio_probe, &data->work was bound with btsdio_work.In
btsdio_send_frame, it was started by schedule_work.
If we call btsdio_remove with an unfinished job, there may
be a race condition and cause UAF bug on hdev.
Fixes: ddbaf13e3609 ("[Bluetooth] Add generic driver for Bluetooth SDIO devices")
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/uninit_stack.c')
0 files changed, 0 insertions, 0 deletions