nfc: Add KCOV annotations
authorDmitry Vyukov <dvyukov@google.com>
Sun, 30 Oct 2022 15:03:37 +0000 (16:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Nov 2022 11:58:13 +0000 (11:58 +0000)
commit7e8cdc97148c6ba66671e88ad9f7d434f4df3438
tree700f7eb05118ab08ea76fb76dca4a81c6d3072d2
parent82fd151d38d9fda714c5bb2e9e79ecd6bdc72da6
nfc: Add KCOV annotations

Add remote KCOV annotations for NFC processing that is done
in background threads. This enables efficient coverage-guided
fuzzing of the NFC subsystem.

The intention is to add annotations to background threads that
process skb's that were allocated in syscall context
(thus have a KCOV handle associated with the current fuzz test).
This includes nci_recv_frame() that is called by the virtual nci
driver in the syscall context.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Bongsu Jeon <bongsu.jeon@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/nci/core.c
net/nfc/nci/hci.c
net/nfc/rawsock.c