Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6961031imu; Thu, 31 Jan 2019 02:35:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN5GNumIonQRsiJLwPs8ScyiSJ4hI3AC0QXP9qPF1lZ3svcw093PlqR5sqg0pq4HwGyUhPbb X-Received: by 2002:a62:55c4:: with SMTP id j187mr34091385pfb.129.1548930926257; Thu, 31 Jan 2019 02:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548930926; cv=none; d=google.com; s=arc-20160816; b=kzojLf0wC+3gNLNFCROusIrVI7/v0xhqMLIrmhwaiywzyQ1dI7cpVI+PN+LwWNZtGq G/xx7gZ052/2yKtJOu3o1wEdfu7MpPC/FJ84Fs7pkHtO+0EBRUTTycNzEyWy8jV7vJ5v c9+kKmCq2sru3hfCZsozsAu9OLuh2JdG5WjRHPPaOQw4AT2tNmIEE+iwNyMpTxuTEOfR f/TtBk3n3Di/iC8yNBXynM9SrnUsldIohCayT5g+G6JFZv/6NCohCCpGWVR7FFK9Vx1d 6IqJFqd203Z+Gmf7NHmzF8WbFSPC1+WVftNKbGd0BUTmVyaYkno2Ktt4LPASPzmV4wgu TZSA== 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=R5OCV2eb5TSImT0OCdqMh36XZu7SuJl/MJd5OK0pMpw=; b=kHpy0qZHLuvy7KANIOZtEOTnaASYVePKfLUixiQwnwrJqcRTGyJoWqaOxbvAWg0+Vm 4GN3ooVRAYq/m/Ykd3vdgGYXV8iifYsrj/fT2eG22nW7sxv1yBeOH7QM2AUkNgngTMe0 IE5EvKX47iAGTYuIfY0opQsetJshKGF2+NKJdy/bIxRM9z7hNrEQMp0UQl6p4GXwWEUK ikyuWh36hqKpPzK7xMuIX6NGznr8s0SLANNO87rMd7BzBHkwWBHTA+IEp9ZQ+vAbqQYr D1rmV3HcgmpFsHKOeTdSXNAJODaGrpHOxxSPJO4No9sag3SUxgn2cbCBSeGXFrBNtbRf pRxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=R2ww8ncy; 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 j6si4063532pfc.57.2019.01.31.02.35.10; Thu, 31 Jan 2019 02:35:26 -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=R2ww8ncy; 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 S1731764AbfAaKdh (ORCPT + 99 others); Thu, 31 Jan 2019 05:33:37 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:35889 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfAaKdh (ORCPT ); Thu, 31 Jan 2019 05:33:37 -0500 Received: by mail-it1-f194.google.com with SMTP id c9so3296503itj.1 for ; Thu, 31 Jan 2019 02:33:36 -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=R5OCV2eb5TSImT0OCdqMh36XZu7SuJl/MJd5OK0pMpw=; b=R2ww8ncyawJIWFf8Q5ydNy6tXXRHcFWBVkR7BPPiuTMYYZ6hZnE8t+oNIWkXzKslao QK2QA+nlrVf/48Ace5I+FbgGCB0y0xFkRjhflY22ydOgpTH95t42Isk05+8m85l4Qu85 08+SaInSgNm4zQsoZOoWlCEGNnKCfcI1i/GstDVo0Q9wkqzJLKEYTBDfgGu/rcXaCA5N au79HEP2JQlS105xIjXjDD17uUYGrZs25oNtEdlvZZguiq1LXr6Te4FD9tp0GrAoMdxb RocOc/LL8cBOuxaQp6W9VUWAxSgOfcI8vz9EQLysTO8eVIR6HqA5DyDBn0OMSlQttMPr ly7w== 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=R5OCV2eb5TSImT0OCdqMh36XZu7SuJl/MJd5OK0pMpw=; b=hsFYMlf/iCo9fVccOjWWNws1YOJQ51VHlaNHVse2kTd075xPRwLWA4tQ5F4yOEoI/F 3NcgzZalknmojcjqaM6Y/Ms2MwgKJSreTk50Xx4Cj5v36t9SLstBrACOp9VHnZo5YkzT FWrl26h+JHT+ryDZVlFdZcOKg97mLJz4k5bBaviyK+ctnvQM3Nqka5rsDHDCWXCEDx0P 7LQRtuK7MwJ1fdggcJx/JnOn1vzUkHZNxWCxtG2M6t2sk36ZiesE8znv1Ax+F2BoUVOT wf2ncgJM18XbwH15Iq9SEmIey4YNdkvg4guJme6DbKtEBIGE7QE20Vow43K6L2fyiUU7 lr0A== X-Gm-Message-State: AJcUukdsNH+upqmeMjDMFl988Lkpp8+fmkYascHLLT/jZEUHVFsT4m8w Itw7kBxjVTp7Xtc5htbmLVE7pKi0MHjnJPDMUaq/dg== X-Received: by 2002:a24:6511:: with SMTP id u17mr18444334itb.12.1548930815368; Thu, 31 Jan 2019 02:33:35 -0800 (PST) MIME-Version: 1.0 References: <1547634429-772-1-git-send-email-elena.reshetova@intel.com> <20190121123836.GC47506@lakrids.cambridge.arm.com> <2236FBA76BA1254E88B949DDB74E612BA4B9BBF9@IRSMSX102.ger.corp.intel.com> <2236FBA76BA1254E88B949DDB74E612BA4B9BC4B@IRSMSX102.ger.corp.intel.com> In-Reply-To: <2236FBA76BA1254E88B949DDB74E612BA4B9BC4B@IRSMSX102.ger.corp.intel.com> From: Dmitry Vyukov Date: Thu, 31 Jan 2019 11:33:24 +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 , Linux-MM 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 Thu, Jan 31, 2019 at 11:09 AM Reshetova, Elena wrote: > > > On Thu, Jan 31, 2019 at 11:04 AM 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 > > > > > > > > > > Ok, so I finally got to compile kcov in and try the first test program > > > and it works fine as far as I can see: runs, prints results, and no WARNs anywhere > > > visible with regards to refcount_t. > > > > > > I did my test on 4.20 with CONFIG_REFCOUNT_FULL=y > > > since I have serious issues getting 5.0 running as it is even from > > > the stable branch, but unless kcov underwent some serious changes since > > December, > > > it should not affect. > > > > There were no changes that should affect this part. > > > > Reviewed-by: Dmitry Vyukov > > > Thank you! Will you be able to take this change forward as for > other normal kcov changes? Andrew, please take this patch to mm tree. +linux-mm mailing list for proper mm patch tracking I am not a maintainer, all other KCOV patches went through mm tree.