Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp731661ybt; Fri, 26 Jun 2020 10:09:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz13IbZJilqK6PdUus5KrudvWlszSaDntk0FEpeg0NART8m4LcQzpOjEHBVXyDWeSprZ9tj X-Received: by 2002:a50:9b18:: with SMTP id o24mr4418935edi.335.1593191398797; Fri, 26 Jun 2020 10:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593191398; cv=none; d=google.com; s=arc-20160816; b=wRr9amuKAPVTLMbUM5G/9HgILSoZOXLeW1/lKmxN/fyISNHvmxpTTgly3GMS1vpQ2u whcXMNsqA2tV99vW7iiKvMb5tnkRK5kVhzxBWktHeAZilwZYNedt4frN6DJ7MR2cGglv MLsGQ2PR90sKFlfbkwz9QG4Re4lquIW2Ufky7P+CnsDz4pGaQIS1alpPisF+BwMQbCSC s6+RoeaqJKlrP4VTwVasR/XU887sTLW7i5Q2Z0Ygl0ydEq7RnGgevqbajVApuQL5WQPJ EotxE7Jn5Xrlb5QoN/B1jPdy7+GmObzrkUVNW8phLfVzCaF8SNvtAbolluUnj5bL6s8C vNNQ== 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=gk7pt4o52R1i8UxPya9K/JTWryM486pinPKkTZZgiYo=; b=d034SQJLx2FOJdbGIPnfEHPvAU82Rkmk8AD/8eN0COM+BsROdXYPSGah7DLezW+3W5 BHIz53dly/C134TO/EPNzntKmKBvyUyBy1obP18Jeyi4tH5tBjb9Klsf3jDOyK6kjsK6 jE0AJLf8Y+dejcMe6X9X4PqCl+6yfZHZKmUBb5WiThW3omb9n0pGEhdz1X+WqD0bOime T3ujpyh+oi8lOxBX4XKzDl/aX1G2N5ky9OWrxlo4q5oaXs3oT7R24BkRtaWHGXJm0ndt ybYJcXydFzngNqG/H6RLKR+jIJeqXh1dJ2iwkDJnkSX8bhsavX2l2OlSlKYjtytrzI40 gewg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AIYwRD6M; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr2si21102460ejc.18.2020.06.26.10.09.35; Fri, 26 Jun 2020 10:09:58 -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=@linaro.org header.s=google header.b=AIYwRD6M; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbgFZPug (ORCPT + 99 others); Fri, 26 Jun 2020 11:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726013AbgFZPuf (ORCPT ); Fri, 26 Jun 2020 11:50:35 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC671C03E979 for ; Fri, 26 Jun 2020 08:50:35 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id s1so10873045ljo.0 for ; Fri, 26 Jun 2020 08:50:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gk7pt4o52R1i8UxPya9K/JTWryM486pinPKkTZZgiYo=; b=AIYwRD6MrE8AA7Ha12CddBuKx+00cURYa3xqNdHtCTmTW6RwVBMoR2saeKN//BMwdd 1xn80jwdYnoAmfgvlsGrSChT0+xcx79vwYvma+GGVruZ/zYG9sb7D+R1o3oieOJoxHdG +kG1ZfV+LyJF56gGqqXi19Y57JW1r1QXW+VynSq89mzSz/YtugCUI3qUnEDKUaH3RAcl m6dNKfNHus0xeiqMTgRMganFy1wOYQJzHS/qCZ6nkY/pLph6RXjPCxWfFuAARtLTCZen JxsBSnD7V3y43vppubOalQ1RJoFHfRqSHxI7WiVGbSFYt4GHYllGuk01AnBqWKNuh0wE YWkA== 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=gk7pt4o52R1i8UxPya9K/JTWryM486pinPKkTZZgiYo=; b=eyArJTBpZVzsZpKHmO5ozpjnXuwLX7VIcCzSYDYlMpjMFNCgC5eZyzdmCiPcysIznT CtBcmHCjb/G6CAqAoyLwHTKaldou+ZC08bafpf2FxFAw0o/loO+Vntx8Bx58pTfQsOIY C29NfZXCAzko8A2RW0kcs6nvXgNNUAWkI+syExuDwNRFYhbGSJ2+xUWKC5ZaaFYSI3D3 MqdAQ/C1lXSlbH6nXcYMIjDJgbyO+aQTX+5AWqorWMZ5GgX4xTB9ME6Fn/64BBqTzZX8 wIuywMPmDP9ULealSMPWUW/CF7xMqTinn7yxa+pU5NO8n/UL3dYQynk5KnYGx4fK5CAP JNBw== X-Gm-Message-State: AOAM530lrX1UwFaWn1LPq45HHxi8VekI0hj7Hmdk+qgjfUJwrorJWauT hVg/GOtV9OJcMBdQiaj8cy9GzzaINd4AWMykaHpnuw== X-Received: by 2002:a2e:9116:: with SMTP id m22mr1780104ljg.431.1593186634379; Fri, 26 Jun 2020 08:50:34 -0700 (PDT) MIME-Version: 1.0 References: <20200508065356.2493343-1-mpe@ellerman.id.au> <202006242312.8888AAFE@keescook> In-Reply-To: <202006242312.8888AAFE@keescook> From: Naresh Kamboju Date: Fri, 26 Jun 2020 21:20:22 +0530 Message-ID: Subject: Re: [PATCH 1/2] selftests/lkdtm: Don't clear dmesg when running tests To: Kees Cook Cc: Michael Ellerman , Joe Lawrence , "open list:KERNEL SELFTEST FRAMEWORK" , open list , Anders Roxell , =?UTF-8?B?RGFuaWVsIETDrWF6?= , Justin Cook , lkft-triage@lists.linaro.org, Miroslav Benes , Petr Mladek , Shuah Khan 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, 25 Jun 2020 at 11:46, Kees Cook wrote: > > On Mon, Jun 22, 2020 at 02:21:38PM +0530, Naresh Kamboju wrote: > > On Fri, 8 May 2020 at 12:23, Michael Ellerman wrote: > > > # Record and dump the results > > > -dmesg -c >"$LOG" > > > +dmesg | diff --changed-group-format='%>' --unchanged-group-format='' "$DMESG" - > "$LOG" || true > > > > We are facing problems with the diff `=%>` part of the option. > > This report is from the OpenEmbedded environment. > > We have the same problem from livepatch_testcases. > > Does "comm" exists in those environments? > > dmesg | comm -13 "$DMESG" - > "$LOG" || true "comm" works in our environment. - Naresh