Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6454837imu; Mon, 21 Jan 2019 09:10:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN4JqCWCi9Z4FBCyHh/Y9VEbCOnYEYWXR9c3R1OGcxlfYgQyb7VSDYd79ih7plSh3YOz9vu2 X-Received: by 2002:a62:2b8b:: with SMTP id r133mr30397769pfr.246.1548090606494; Mon, 21 Jan 2019 09:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548090606; cv=none; d=google.com; s=arc-20160816; b=CM3RvaPGq6V/x6b6L8R1WNTXgejnoMNri6ngtgAlxoIRtVQ6dyZORtBVZXOfrOp4Cw I6zkvsG2533wkuvnd1rQvCrI0lLpHvfNeW9GRPFWmKbTQwWFuCRX1bLw1vuhKpQi6+Sr 5dmRkge+Vc67/L55ITUpTRJBOETmsLVCTFQn75Grwuj5togB67d7z1wTLiXx6/FaSjOj y1f7HAfDl1J9VB16+KBY/AzmNPIn81RpqAp0G8FC32db6GJaDPD7EcNn9KfkhHBiGkvf QB55ETxvkdsOZnKmK9JsZt8NKJ27JdQVFk8XXW9dNxHo3kO1Yx09hOP0yPku/sauiP26 Rgkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=U8aPMHD0c4Aq45zYfYHrTV1uy0fML3I0lPRBU/aXXpI=; b=LmTuDKwbd/FD00FZGIL2TUYeaV1aTv9t8KFjgwrA0GsZDYhDrex/a5o7tryjpm8FZc B/q0+uuAzdfz9A1yCofL1+c/n6DUhX6P5wDpd9vxI3t7VkGKlEZtiUrlyCykp/KyuqC4 5JqBcUPga7CxEmKonPiNQqGJBSllOGheYK9efoLnrJtUL37145MUrqS48ZMJ/qp1QKSV fdzGEUtm3jDKiYTl5nW1Qa0E2735JCLGcZchp428WXY/obfRd81QkXD7ZYO4v6acSz3g 35Tgc3zPgTU3ZH7sILnka82OfiwIwQsKTwHVzWCee5P2uB2Ax7XsVjcOAXJKGAdij5Dk u/mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lXg3G8iQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si12829931pla.218.2019.01.21.09.09.50; Mon, 21 Jan 2019 09:10:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lXg3G8iQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727752AbfAURHQ (ORCPT + 99 others); Mon, 21 Jan 2019 12:07:16 -0500 Received: from mail-it1-f196.google.com ([209.85.166.196]:52692 "EHLO mail-it1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725879AbfAURHQ (ORCPT ); Mon, 21 Jan 2019 12:07:16 -0500 Received: by mail-it1-f196.google.com with SMTP id g76so17334909itg.2 for ; Mon, 21 Jan 2019 09:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=U8aPMHD0c4Aq45zYfYHrTV1uy0fML3I0lPRBU/aXXpI=; b=lXg3G8iQuO/uw8xZDYSVDER5KvIC8M7szDSpulta3ZhDOrs+LVHCq5euRj8aToRJa6 vomWdUXO4RwDlhA284ywdwSq5MXdZJ4/XFXaB575bM+Bedbkrgo/E+KL9nwBUpjGfT++ j2zh3Ry03T79U9FpX8pT5Az34r0fq8dyuNBO65C8NUO9AkoM6vREj8W59foYo6qpN+12 1LVQguS7uFxYNsCjAHX3oAKimx3UZO8894CEJqF/vfctcVNIpaNc35az16YbqzrrLF6P Pff1AcJQm2BkMLF+SXsDoIr81ltJsb2zyjjG2Lcc1OuwKgPSCJXUwNHlCyiQU8GYRF50 y99w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U8aPMHD0c4Aq45zYfYHrTV1uy0fML3I0lPRBU/aXXpI=; b=V71w1i2Va8ME0D2TYYnZcwtIQZyD7kxbuqu4qX/8qjFDhHBEuyb5gTD9q3zhLDeFkg 8+5GLAdV/M1v4FvW992vE+PU/CiKpXiBzWDXq8SW+IQDJREABrLLd4DGH9o72QZBfu2K vtqDvraNafoEE4KuR4hpjbPou/FKGcVIjW4Bd24Q4PIblfIZTaaBpXPUG2y/8zeFbznS isbzwAjbdXkQDMRNATW8q+0KYIozaKjNrvtrOJVsLRMPBKGSa8SbDPkF0AhIBwiRwhBe HKtEMC/u+8TfagXdpPbnGthLBfan2FFVJr61mbhj836plMOd2qaLyIVhN0sC3S9SA7hT 9wxA== X-Gm-Message-State: AJcUukf5USAz4YuqY8YoiJUTPABuQL//fvpmDedz+e+ekUHWx03kLEMA CfTHJPSoCqmwbz6X7Q5qQs+iJn1KaGdxU9dQOYHxCg== X-Received: by 2002:a24:f14d:: with SMTP id q13mr147181iti.166.1548090434968; Mon, 21 Jan 2019 09:07:14 -0800 (PST) MIME-Version: 1.0 References: <1547634429-772-1-git-send-email-elena.reshetova@intel.com> <20190121123836.GC47506@lakrids.cambridge.arm.com> <2236FBA76BA1254E88B949DDB74E612BA4B89908@IRSMSX102.ger.corp.intel.com> In-Reply-To: <2236FBA76BA1254E88B949DDB74E612BA4B89908@IRSMSX102.ger.corp.intel.com> From: Dmitry Vyukov Date: Mon, 21 Jan 2019 18:07:03 +0100 Message-ID: Subject: Re: [PATCH] kcov: convert kcov.refcount to refcount_t To: "Reshetova, Elena" Cc: Mark Rutland , Andrew Morton , Andrey Ryabinin , Anders Roxell , LKML , Kees Cook , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 3:07 PM Reshetova, Elena wrote: > > > Just to check, has this been tested with CONFIG_REFCOUNT_FULL and > > > something poking kcov? > > > > > > Given lib/refcount.c is instrumented, the refcount_*() calls will > > > recurse back into the kcov code. It looks like that's fine, given these > > > are only manipulated in setup/teardown paths, but it would be nice to be > > > sure. > > > > A simple program using KCOV is available here: > > https://elixir.bootlin.com/linux/v5.0-rc3/source/Documentation/dev- > > tools/kcov.rst#L42 > > or here (it's like strace but collects and prints KCOV coverage): > > https://github.com/google/syzkaller/blob/master/tools/kcovtrace/kcovtrace.c > > > > No, this one hasn't gone via any particular testing apart > the tests that zero day runs automatically (like boot tests, etc.) since normally > it is hard for me to know how exactly to test a particular component in a meaningful > way. > > But I can try to test with the above example now, if it helps! We really need automated tests but I wan't able to figure out how to write/run kernel tests. Sorry about that. Need to try again. I've filed https://bugzilla.kernel.org/show_bug.cgi?id=202363 for this.