Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3045903ybt; Mon, 29 Jun 2020 13:50:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+YCSS/3O3pnEHLpzPw3SW1zPlic/uh6no0F94Y1/6PLJsY8AtUPWJydGRhGqwBuzzWBdr X-Received: by 2002:a05:6402:3d0:: with SMTP id t16mr18770086edw.287.1593463802561; Mon, 29 Jun 2020 13:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593463802; cv=none; d=google.com; s=arc-20160816; b=X+2JwT9HzzOiR4anbPcmsnCe451VtDMVJyfK6pR6bY8LD63WiVosyKi9YHK+O/FfmC mcZEiqSPsJSTUzWoN+xoLI3wgx0XGTrCynkJFyw5ztajrOY3bR1QEPwQgjM3L5huKr7u KXHwlLFObyIkOB8IlFAqOWRBxwHQYoldhwBRtCcD6SwOORHK4lPmLff/Yq56uU10NmQs J0fB6RNez+A7KAfNmhKYxHNR7mhfxZJz3GemUSt+mZn/H8I/tJ5ZS66nTsyzn6Y/Jjal /lCIIwuSJdG9KU2FY90ONftgVw5eoP2mnWUpUrij1YM/UWizu7fqh07smvp59370n38V WSRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=QyguQS7qUGuGPK8YZT8oxWBXkiJjPK2mrJ+P4MI2OGA=; b=IjgjA7SdW92MT0c+AaXcuPHFudZte/wLGafNhuCrBdSRpx7KUe8rVVMQ7VUp9cU230 x7+kWJ8UEE3oka4xxm3yKuSN3TgVL6RZBfV+oVzFRhB6H8uTwHAuLty8QQX9JRTbfAEn 2ZFDYh+04O9ChNJeyk8l4l07Rvvu1rC30kx2PpXOAbDiYBys94lCOdxCtJmF7VdZzPpa IoCFgsKoSXKe3H8GM13E+FzqrFHfvdt8f2JZp/mz3Vc/Bnp+CCW5KB4UWFTJOW33IaIT F/UgOrrDrCCN4zMwL1boJTD3BKraGN1AYBwwKVf+38pZKm3lit5iLxi/M+FZITL6LffS zWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=ZiiGvlHC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si341465edw.470.2020.06.29.13.49.39; Mon, 29 Jun 2020 13:50:02 -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=@ellerman.id.au header.s=201909 header.b=ZiiGvlHC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733158AbgF2Uqh (ORCPT + 99 others); Mon, 29 Jun 2020 16:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731552AbgF2TNx (ORCPT ); Mon, 29 Jun 2020 15:13:53 -0400 Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64B8DC08EA4B; Sun, 28 Jun 2020 22:48:06 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49wGjw1lCLz9sRk; Mon, 29 Jun 2020 15:48:03 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ellerman.id.au; s=201909; t=1593409684; bh=/YQUWPTNF1yfjssmjTfskL+aXMkfJR2ADKApusEzfaA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=ZiiGvlHCBnvAF3APkTommNfdvQmDkuYoZMa+llNNHmj31m9lhBnJPy19xfNxjMJiI LOEHaJ8xq26BiOKskUPmfOW4WUU+T79cfWSyDx7RdzCKZJzLLkNz4Oq9G8fr8h9PHV PpMSd3Xc/PQdrP1409zgma9HkuMVo4knpGsQy4+X88UPXbLERDNgC1cb6A2fF7WI5P WiWe7WtJ2hrelBssuoZAIEukoh8LAXk/XNOtW0D20iY0LEcnXYlflR65DabbSdQuIL Gj9HDWDpu1Zwa3R6DkW58ykovlV/uoJL3w1+hw4OyzGz778jSZTfL6rFVsmmhSmNAX mvOcCg0ljaiLQ== From: Michael Ellerman To: Kees Cook Cc: Shuah Khan , Naresh Kamboju , Petr Mladek , Joe Lawrence , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] selftests/lkdtm: Use "comm" instead of "diff" for dmesg In-Reply-To: <202006270849.7190A26@keescook> References: <202006261358.3E8AA623A9@keescook> <87k0zsbubg.fsf@mpe.ellerman.id.au> <202006270849.7190A26@keescook> Date: Mon, 29 Jun 2020 15:50:18 +1000 Message-ID: <87lfk68lph.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kees Cook writes: > On Sat, Jun 27, 2020 at 09:51:31PM +1000, Michael Ellerman wrote: >> Kees Cook writes: >> > Instead of full GNU diff (which smaller boot environments may not have), >> > use "comm" which is more available. >> >> Although using "comm" requires CONFIG_PRINTK_TIME=y doesn't it? > > No, it doesn't seem to. "comm" doesn't carry about the line prefixes. > AIUI, the only reason for a mention of "sort" is because of how "comm" > does its line pairing. i.e. as soon as it goes out of sync, it starts > accounting for the disjunction between files. But that's exactly what we > want it doing, and the prefix doesn't matter. OK, if it works. cheers