usb-core-kcov-collect-coverage-from-usb-complete-callback.patch removed from -mm tree
The patch titled
Subject: usb: core: kcov: collect coverage from usb complete callback
has been removed from the -mm tree. Its filename was
usb-core-kcov-collect-coverage-from-usb-complete-callback.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: usb: core: kcov: collect coverage from usb complete callback
This patch adds kcov_remote_start/stop() callbacks around the urb complete() callback that is executed in softirq context when dummy_hcd is in use. As the result, kcov can be used to collect coverage from those callbacks, which is used to facilitate coverage-guided fuzzing with syzkaller.
---
drivers/usb/core/hcd.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/usb/core/hcd.c renamed from drivers/usb/core/hcd.c~usb-core-kcov-collect-coverage-from-usb-complete-callback +3 -0
@@ -31,6 +31,7 @@#include <linux/types.h> #include <linux/genalloc.h> #include <linux/io.h> +#include <linux/kcov.h> #include <linux/phy/phy.h> #include <linux/usb.h>
@@ -1645,7 +1646,9 @@ static void __usb_hcd_giveback_urb(struc/* pass ownership to the completion handler */ urb->status = status; +kcov_remote_start_usb ((u64 )urb->dev->bus->busnum); urb->complete (urb); +kcov_remote_stop ();usb_anchor_resume_wakeups (anchor);atomic_dec (&urb->use_count);
_
Patches currently in -mm which might be from [email protected] are