From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.4 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78B5EECE58D for ; Thu, 17 Oct 2019 17:44:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54EB621D7A for ; Thu, 17 Oct 2019 17:44:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="txWXUG/b" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394474AbfJQRoV (ORCPT ); Thu, 17 Oct 2019 13:44:21 -0400 Received: from mail-vs1-f74.google.com ([209.85.217.74]:42912 "EHLO mail-vs1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727379AbfJQRoU (ORCPT ); Thu, 17 Oct 2019 13:44:20 -0400 Received: by mail-vs1-f74.google.com with SMTP id p6so709251vsq.9 for ; Thu, 17 Oct 2019 10:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=AepTsz+A74jxm03gyi80tnEG5pdCAiVEmB2VKmmYbAA=; b=txWXUG/bKJH+xYvRuY3lNWGbs0Fu/K7TeNieEqEzkwCbQ951DttsTLGCzkXdVPy3KY Km2w/kOt807GP8B2mwZNT/1sE4XCnhEOgDKdD2r4LCXjfxdltkSQyRv4CGCTq1VoGRr2 91CJUZ7DeaO+yiJF+glAdddLlpQJvF72+eqedoBsFNo0bVaZHL++3E9pDK/04d2YWGe+ np7G/lXqW7cVF7AenbULxn1+Hg8fqiLGg2q6O/L99nPop1TMN0R0LzXBRRMq6hiBGMPQ t+QwWnw5oWFay2e0WWPMTYmTGfrtu7hXElVim/VjermRHIFXL96frNDlAwKVbaRGZzxv pUGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=AepTsz+A74jxm03gyi80tnEG5pdCAiVEmB2VKmmYbAA=; b=YhWj2AWu6K50cSWtytVbMH+1QptKBHNS/Nf0Pv6ujD6yK1nNdBX5DocDtoHFQh2cYS w5O4wVkMIxkqnADf4+smxu53yzEz2nEPsXukSz+T8NzzPQsGleaHfeS/Ra9UmdlSGhcQ TrNKAwRiTtUxiCqLt6Uew+PM15sHzZPqW4hvq3OpVQz2EMHcol5ykmtr1MldQCC8g73s YYzvQoqOl/koB9I1C0xuOAycVgVnIyPFNH6dNDZIk1qdMX3HZTSMQktuOxV7XnE2xm7Z m+U1B2FFTP2fg3bTHy+e5lVZphJooofH/Z09xgiHFv29OajmUhXWmuUf/fF4qchcOCdG ofDQ== X-Gm-Message-State: APjAAAXnjC5ffVfJX65Vjr+QVFreii+QuefegDtdpehDKKgRZzqOim7s b4BcByxyo5gWeOjKGnHCQ1NY1U1UaswWcdxL X-Google-Smtp-Source: APXvYqw6C55wAy116NWvppt7eDZT+fCR1ORnXW7Efx/dADnmZz5XHGPkhTIDMeFVShexmVeAGLoCcWUsVfibJxkz X-Received: by 2002:a9f:200a:: with SMTP id 10mr2884411uam.42.1571334259331; Thu, 17 Oct 2019 10:44:19 -0700 (PDT) Date: Thu, 17 Oct 2019 19:44:12 +0200 Message-Id: Mime-Version: 1.0 X-Mailer: git-send-email 2.23.0.866.gb869b98d4c-goog Subject: [PATCH RFC 0/3] kcov: collect coverage from usb and vhost From: Andrey Konovalov To: linux-usb@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Vyukov , Greg Kroah-Hartman , Alan Stern , "Michael S . Tsirkin" , Jason Wang Cc: Andrew Morton , Arnd Bergmann , Steven Rostedt , David Windsor , Elena Reshetova , Anders Roxell , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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(-) -- 2.23.0.866.gb869b98d4c-goog