Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp258932pxx; Wed, 28 Oct 2020 04:19:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFhWE3mGCbfeqdqthdD9HB2VFOUX/j6hqjULkTdtUX9u5vunMRP79qrHb9nv6gQJa6G2aY X-Received: by 2002:a50:950e:: with SMTP id u14mr7086472eda.260.1603883972101; Wed, 28 Oct 2020 04:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603883972; cv=none; d=google.com; s=arc-20160816; b=bZR/3ERHiSZFQVlDOjl/prPJ0PTa+amGOdn+ydntBgcxbTMe6UUQVlpkxBfiM+qpp7 eFlVRY691Zo+Dn0LEAjZL8O/YkrmvRl2v4vxNWHDeaFZpP9x29tS78D6glNBduJ5CHDr dGYk4er72ywWg4Xs1UxByTdMldse2AUv7zaWy8XfmSt38IZVLUKdoD1Z+or2INuJv4At 4q+WEVjvBZYhT/cPKYcgnf2FHQVy3jKxXxQNgM1ymbuOrq0gYFauL22ZEr8my4DrTOCs BW+Wz5w+1w0nYn0hy7MZGwjjYGLo2tom5zrSSNHbqvvxbljfyba1foEqMd4AXn6Ts180 hjSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hA+HNi1JIM5delPW/j+b0wCJYNO1YQPNDniCmDWvd5g=; b=qk4uP42VQGJQZYa1aoIzgHIfU6vnIx76E4wT7tsloIsrGzJpGQs0+spJpU0kC0mSeB o4GWFuVc4QwaoqbE2ctw+fe5UgSARbtuv1kXqHRJTQLBsXXJl3oTg44e4jY3BzORXzEC 03Pvom2OmjEn4LcIfKOy2iIH4fvp5gh/kOe3pGdcO+cHcRnxSSgrmsW5bTWmfta7X8U9 euTJyHazhb9cAKYdGbuuv3VjD4S01gumEfSGwT88fDJs3n8OBi69DzkO+fyHSkLHlVCK 399rNZ5jwWZG+tTnQRGikrm9T5TrAUL6GNzbEjFGIQv6faD+Z+hhmcoYB1r31iQdVCkF jv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OByCnbB5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p90si2749641edd.284.2020.10.28.04.19.09; Wed, 28 Oct 2020 04:19:32 -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=@kernel.org header.s=default header.b=OByCnbB5; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1789187AbgJ0PBi (ORCPT + 99 others); Tue, 27 Oct 2020 11:01:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1783346AbgJ0O6J (ORCPT ); Tue, 27 Oct 2020 10:58:09 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DF64320714; Tue, 27 Oct 2020 14:58:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810688; bh=vT6TQiAhfCEnptE16SMHV42f9bp7lBiVGUO/RjqiwFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OByCnbB5mJqKl8mykiHfttSJQvFV5Qj23j6/qv5UGxjIGww6xSD7J5xA7mIROt+e7 UH52qCdMRL38aKJdfCCEkESWD7UKN/bt6lskAuft8Q98JjQyUbF/ZoV6JyPiMVtqAY HIgT3obHesQm2h4s3yA9Yzm20HFK3IvNoxxLqjpk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naresh Kamboju , linux-kselftest@vger.kernel.org, Kees Cook , Shuah Khan , Sasha Levin Subject: [PATCH 5.8 211/633] selftests/lkdtm: Use "comm" instead of "diff" for dmesg Date: Tue, 27 Oct 2020 14:49:14 +0100 Message-Id: <20201027135532.579821523@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kees Cook [ Upstream commit d00451c8118f8f7ab8e057bc6ee2f8b7d70b6a1c ] Instead of full GNU diff (which smaller boot environments may not have), use "comm" which is more available. Reported-by: Naresh Kamboju Cc: linux-kselftest@vger.kernel.org Fixes: f131d9edc29d ("selftests/lkdtm: Don't clear dmesg when running tests") Signed-off-by: Kees Cook Acked-by: Shuah Khan Link: https://lore.kernel.org/r/20200909211700.2399399-1-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- tools/testing/selftests/lkdtm/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/lkdtm/run.sh b/tools/testing/selftests/lkdtm/run.sh index 8383eb89d88a9..bb7a1775307b8 100755 --- a/tools/testing/selftests/lkdtm/run.sh +++ b/tools/testing/selftests/lkdtm/run.sh @@ -82,7 +82,7 @@ dmesg > "$DMESG" ($SHELL -c 'cat <(echo '"$test"') >'"$TRIGGER" 2>/dev/null) || true # Record and dump the results -dmesg | diff --changed-group-format='%>' --unchanged-group-format='' "$DMESG" - > "$LOG" || true +dmesg | comm --nocheck-order -13 "$DMESG" - > "$LOG" || true cat "$LOG" # Check for expected output -- 2.25.1