Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp134325ybt; Thu, 18 Jun 2020 20:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHQwBmmnZerCcMDOwAZiFiQMXN4k1jZOPpFqhBFPk5i9ihk3FdF275QxwELOs6DDH9qe9A X-Received: by 2002:a05:6402:144f:: with SMTP id d15mr1316772edx.114.1592538390935; Thu, 18 Jun 2020 20:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592538390; cv=none; d=google.com; s=arc-20160816; b=P4T8iZhMvWvZt+8nj+63hz4u3IQTylmbVQHxEJAT/uDy7TvWsXhTKebEGgJyrb4Ax+ oBw77fAmZ0255nQBv5XzMOH/mvh7uZJJV4fQJCUtN7CWdXzGsT8WFwqzuuXHuRRX+TYr diO9cWrPzdriq0i6wnkOWcnW3LYpU0Ymcx8Q0dYBt5wGn0xG0rjjOf/qpNSYuQEvsAu+ zY40w8BefLsk72wHIZS+bzA4vsvHmu3a9J04+LE9DUvEGV/dtc/m729GE8Y2o+GAIv+j r6I7S1GzLF+laEG0EN1Pgn7RiWC3349FIdQbBiKSrqss/17ihMTWigQE5G8bjbtyRst1 MmXg== 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=Ylj+KbsOX76QNrUjj2VobkcpDWhDyawSP5wEBfqItRA=; b=sB0A7C8e1MeIMESyzLfyBF3lOPyrkhtsrFGc/DYrm07qL6i/uMdpkzDP0D36+ScpV4 N1ZH71Z4Wvnu56chw95zBn8fb/ECgrOYcd4jOso5NZDvJH00tZAoH7xQ7zFfEoshk990 ikLHdUZl/lSEJ4biWsW5mjP52ESBAyqY66VZlcz1/e5Lhp+yD28q2kIGlgzgfg4UIsdv +rwmimm7G5Da27dsnwRCBFiPgrB1nxNjb1MC/6mEn1rCPGQqqiexIWhWJWe/L1O3OR2W BbodLmxbZiR8YczxtPIwlnXdmYyH5avHrOdKsJ80GVmLs8x+0W5FiXlMiF9TfR9bv2Wn pj4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wos3wqRN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y2si3330049edv.25.2020.06.18.20.46.08; Thu, 18 Jun 2020 20:46:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Wos3wqRN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730122AbgFSDmE (ORCPT + 99 others); Thu, 18 Jun 2020 23:42:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726278AbgFSDmE (ORCPT ); Thu, 18 Jun 2020 23:42:04 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03ADAC06174E for ; Thu, 18 Jun 2020 20:42:04 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id v11so3898293pgb.6 for ; Thu, 18 Jun 2020 20:42:03 -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=Ylj+KbsOX76QNrUjj2VobkcpDWhDyawSP5wEBfqItRA=; b=Wos3wqRNr6giopwl7Ps797+D/UE+C34msegI+7bk+NOANm7xwlQgbmdMHILTzP/+Qh QxvdwZuO/nNW22FpNV799fSHpqJZvRbyVtXrOw+w56g23CVlW6VslBCgebkVcP9KQXX0 i9JOA5DvM0E8m0JiwcLCXtTMI7/JNofOh+/rE= 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=Ylj+KbsOX76QNrUjj2VobkcpDWhDyawSP5wEBfqItRA=; b=rA0B5aVhLJm41dxpwmPbT1xMOi7GckLfbIh3+/NDcFfqdmlHMMF4fnZAtku/kl/eEJ kMYnvCB3gbjhl65rTk4DJyjKhkcbI0MFg+Qlj/qQ8dJoeGDfZ7/uRinAdWlx80KfKarT wGpXT2QIhFx5zCjpzO03ZudOjYHiMOD57jtEhBx+rgQX33Cyh+C4z53LFHmPjcinyMPe FDIJhLGS3+9k0zYhHqYZicA6sQw5qcS3TOVQiVWiBMiy89800ZwXOuJe8bJgq+7gpgxg JI6OwwuQSUZXR2DEeBpqd/Onwo4N+dUta1vjzeuE2oXu5+1OMbAW52YxnbQLlZgy9oe2 Cflw== X-Gm-Message-State: AOAM532jf41/ti0W+gGG8S4S7KmEk+6grx+bXIDOodNWtONuFq5vMU+x yOhvvZyuo+2l7SujtfEr2FU0rA== X-Received: by 2002:a62:be0b:: with SMTP id l11mr6651490pff.1.1592538123475; Thu, 18 Jun 2020 20:42:03 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j12sm4355572pfd.21.2020.06.18.20.42.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 20:42:02 -0700 (PDT) Date: Thu, 18 Jun 2020 20:42:01 -0700 From: Kees Cook To: Brendan Higgins Cc: David Gow , Alan Maguire , Vitor Massaru Iha , KUnit Development , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , linux-kernel-mentees@lists.linuxfoundation.org, Rasmus Villemoes Subject: Re: common KUnit Kconfig and file naming (was: Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions) Message-ID: <202006182016.C93BC8AB@keescook> References: <20200611215501.213058-1-vitor@massaru.org> <202006121403.CF8D57C@keescook> <202006141005.BA19A9D3@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 01:27:55PM -0700, Brendan Higgins wrote: > I am cool with changing *-test.c to *-kunit.c. The *-test.c was a hold I am fine with basically any decision as long as there's a single naming convention, *except* for this part. Dashes in source files creates confusion for module naming. Separators should be underscores. This is a standing pet-peeve of mine, and while I certainly can't fix it universally in the kernel, we can at least avoid creating an entire subsystem that gets this wrong for all modules. :) To illustrate: $ modinfo dvb-bt8xx filename: .../kernel/drivers/media/pci/bt8xx/dvb-bt8xx.ko ... name: dvb_bt8xx ^ does not match the .ko file, nor source. Primarily my issue is the disconnect between "dmesg" output and finding the source. It's not like, a huge deal, but it bugs me. :) As in: $ strings drivers/media/pci/bt8xx/dvb-bt8xx.o | grep 'Init Error' 4dvb_bt8xx: or51211: Init Error - Can't Reset DVR (%i) All this said, if there really is some good reason to use dashes, I will get over it. :P (And now that I've had to say all this "out loud", I wonder if maybe I could actually fix this all at the root cause: KBUILD_MOD_NAME... it is sometimes used for identifiers, which is why it does the underscore replacement... I wonder if it could be split into "name" and "identifier"...) -- Kees Cook