summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_sync.c
diff options
context:
space:
mode:
authorTamas Koczka <poprdi@google.com>2022-07-14 13:48:14 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-07-22 03:09:06 +0300
commit9f30de9e0343da05ac621b5817e9b1ce303c6310 (patch)
treea769f99f18a897b77e4b665fdf3e1a2215e00260 /net/bluetooth/hci_sync.c
parent68253f3cd715e819bc4bff2b0e6b21234e259d56 (diff)
downloadlinux-9f30de9e0343da05ac621b5817e9b1ce303c6310.tar.xz
Bluetooth: Collect kcov coverage from hci_rx_work
Annotate hci_rx_work() with kcov_remote_start() and kcov_remote_stop() calls, so remote KCOV coverage is collected while processing the rx_q queue which is the main incoming Bluetooth packet queue. Coverage is associated with the thread which created the packet skb. The collected extra coverage helps kernel fuzzing efforts in finding vulnerabilities. This change only has effect if the kernel is compiled with CONFIG_KCOV, otherwise kcov_ functions don't do anything. Signed-off-by: Tamas Koczka <poprdi@google.com> Tested-by: Aleksandr Nogikh <nogikh@google.com> Reviewed-by: Dmitry Vyukov <dvyukov@google.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth/hci_sync.c')
0 files changed, 0 insertions, 0 deletions