Skip to content

RFC kcov: collect coverage from usb and vhost

Andrey Konovalov kvm linux-usb lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kcov: remote coverage supportDocumentation/dev-tools/kcov.rst include/linux/kcov.h include/linux/sched.h +2 more+524 -353 replies
2/3usb, kcov: collect coverage from hub_eventdrivers/usb/core/hub.c include/linux/kcov.h include/uapi/linux/kcov.h+12 -05 replies
3/3vhost, kcov: collect coverage from vhost_workerdrivers/vhost/vhost.c drivers/vhost/vhost.h+18 -04 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] kcov: collect coverage from usb and vhost

This patchset extends kcov to allow collecting coverage from the USB subsystem and vhost workers. See the first patch description for details about the kcov extension. The other two patches apply this kcov extension to USB and vhost.

These patches have been used to enable coverage-guided USB fuzzing with syzkaller for the last few years, see the details here:

https://github.com/google/syzkaller/blob/master/docs/linux/external_fuzzing_usb.md

Andrey Konovalov (3):
kcov: remote coverage support
usb, kcov: collect coverage from hub_event
vhost, kcov: collect coverage from vhost_worker

 Documentation/dev-tools/kcov.rst |  99 +++++++
 drivers/usb/core/hub.c           |   4 +
 drivers/vhost/vhost.c            |  15 ++
 drivers/vhost/vhost.h            |   3 +
 include/linux/kcov.h             |  10 +
 include/linux/sched.h            |   6 +
 include/uapi/linux/kcov.h        |  18 ++
 kernel/kcov.c                    | 434 ++++++++++++++++++++++++++++---
 8 files changed, 554 insertions(+), 35 deletions(-)
Signature · 1 line
2.23.0.866.gb869b98d4c-goog