Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1524912ybx; Thu, 31 Oct 2019 11:53:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRy51kmymf2EWfm6PVGx+5xD4Yaq8UkO6PzSJO7q+HVW41m5QmyJXZx1h1qBDd5T2ZPnoy X-Received: by 2002:a17:906:1da1:: with SMTP id u1mr5873652ejh.275.1572547996848; Thu, 31 Oct 2019 11:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572547996; cv=none; d=google.com; s=arc-20160816; b=ALAR5qAsNYMQVBBMbezf7Y97vud58/84Q5j5AqHz+EcTepZZZSxQddUiYFfJ+2ZtTu vQ20q+fVl3EqMgdeZQNKEgWjwyPhWFgN556EZKeZud+zYLnxVG9wZPN7jxvcDH+g88w+ r24oOg3CknMtAPIS9VmLbAXxH8ZfZyvuqPzhuanJ7QrtF5gd4cL+BaTuItWvgDKVnS8L 2jOAQleQDlSH/9Ve3jcn0qN5XqI7l/kilqogO4qlSjY52BTTvArVyU+ht9P99t9TmfZy UNZ0ZuGBQB0yqFuQuneYGMxKvmzDIAYf1xcD+qyKZ4yXP1jYO+nttlmxY7StfTSnq9BQ ngxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=XLz57lIGfqKC3M6vFm45BqnBpRbJgKKmWPNYd03gHyA=; b=gnOKZUoJJH5m1gz9fTTSFUoXBhwdXb7TLg0GP8l+LpsJdMjZ7aKLyOFaLn8lmRw/QA DCVV+96i5p2Bfo6vQOmsuyPP8LePIh8VTuLVcZIb5fM9OfWwFsf48kM8fVk/L5oCOIAr 5ihTebOyaTskHA6rC0P/+ZJel8+adu3QWcRQc71u4v8IlLN5xyD4JqWeApbpJWQ3PnA+ +HNj5VF8MAPSXBB8eFwJn7j2lNqc53vXG0HHVRZA474WkbBM9pbTM3S2CbxkaBukc/Be 2b6NEuy9UUxwbWzedff0qB1YHumZeA6ageW9VrXDZ09Na9WbxLnMeTA7PxB841rLEh+1 UHXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=U2TKDuN0; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si4354998eda.258.2019.10.31.11.52.53; Thu, 31 Oct 2019 11:53:16 -0700 (PDT) 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=@chromium.org header.s=google header.b=U2TKDuN0; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729351AbfJaSvB (ORCPT + 99 others); Thu, 31 Oct 2019 14:51:01 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46910 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729212AbfJaSvA (ORCPT ); Thu, 31 Oct 2019 14:51:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id f19so4601953pgn.13 for ; Thu, 31 Oct 2019 11:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XLz57lIGfqKC3M6vFm45BqnBpRbJgKKmWPNYd03gHyA=; b=U2TKDuN0RJmVAnuvG7Px5NI6yW31xNfitR+DvSRcuEo5LiNb1Uc0TjnEQoBYpL89In PMO11+PznOEDVzggBnrEOQBNo+Of9EO+hD1mPT70iqm/4Jos47wL6/oQvFtLUA3rGY0v ZkbaqfaS9F6hE8KYe0TrXClhTCqM2mdOESFW0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=XLz57lIGfqKC3M6vFm45BqnBpRbJgKKmWPNYd03gHyA=; b=KO7Q6XELE/wtvLpe4xyg2pHgFkBFoNFLOtwA+/iyiBl+E1rqRq5aJQilC9erWoXN9d XVv88uo0T9UBUUXwEF30O1tQA2cA4smkKYat1u9T7JT3mLIMPP4meUt6QyzrAbdfaAA/ j9BOhYB7xLXg65XgBmBDQ+iLTGckc3mhMWnbr0ScLFh8jx48YarsQTnfxf79XNyXkPem jkQQUaTVyTfejWlWt9De4m6xUzOX5TP09tqplwnyUJwXijHDwEMDvUtMzPQyVurUJ1Yc Um6acgwXdfpIQiPMbHNkaNw68KI1ccz3K8xFNiZT+OkUrYgU56CcBRugr0Sc76LKgVWG Vg+g== X-Gm-Message-State: APjAAAVwjsuv2FHLTPW+G/lB31owKOFlvmDUVZ7f4cxIYpQzcT/RXBem +jVjn6yNpk3bfieDkwtNcnOvzg== X-Received: by 2002:a17:90a:b942:: with SMTP id f2mr9189734pjw.83.1572547860187; Thu, 31 Oct 2019 11:51:00 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a6sm5009461pja.30.2019.10.31.11.50.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 11:50:59 -0700 (PDT) Date: Thu, 31 Oct 2019 11:50:58 -0700 From: Kees Cook To: David Gow Cc: shuah@kernel.org, brendanhiggins@google.com, akpm@linux-foundation.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, dan.carpenter@oracle.com Subject: Re: [PATCH linux-kselftest/test v6] lib/list-test: add a test for the 'list' doubly linked list Message-ID: <201910311147.FA6A822@keescook> References: <20191024224631.118656-1-davidgow@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024224631.118656-1-davidgow@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 03:46:31PM -0700, David Gow wrote: > diff --git a/MAINTAINERS b/MAINTAINERS > index 7ef985e01457..f3d0c6e42b97 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -9504,6 +9504,13 @@ F: Documentation/misc-devices/lis3lv02d.rst > F: drivers/misc/lis3lv02d/ > F: drivers/platform/x86/hp_accel.c > > +LIST KUNIT TEST > +M: David Gow > +L: linux-kselftest@vger.kernel.org > +L: kunit-dev@googlegroups.com > +S: Maintained > +F: lib/list-test.c Should KUnit be the first name here? Then all KUnit tests appear in the same location in the MAINTAINERS file, or should it be like it is here, so that KUnit tests are close to the same-named area? > + > LIVE PATCHING > M: Josh Poimboeuf > M: Jiri Kosina > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index a3017a5dadcd..6c1be6181e38 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1961,6 +1961,24 @@ config SYSCTL_KUNIT_TEST > > If unsure, say N. > > +config LIST_KUNIT_TEST Similarly for the Kconfig name. (Also aren't KUNIT and TEST redundant?) config KUNIT_LIST ? config LIST_KUNIT > --- a/lib/Makefile > +++ b/lib/Makefile > @@ -292,3 +292,6 @@ obj-$(CONFIG_GENERIC_LIB_MULDI3) += muldi3.o > obj-$(CONFIG_GENERIC_LIB_CMPDI2) += cmpdi2.o > obj-$(CONFIG_GENERIC_LIB_UCMPDI2) += ucmpdi2.o > obj-$(CONFIG_OBJAGG) += objagg.o > + > +# KUnit tests > +obj-$(CONFIG_LIST_KUNIT_TEST) += list-test.o And again, list-kunit.o? Other things have -test (or more commonly _test) suffixes. (So maybe list_kunit.o?) But as I said last time, I'll live with whatever, I'd just like a documented best-practice with a reasonable rationale. :) -- Kees Cook