Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2179392rwl; Thu, 13 Apr 2023 02:48:48 -0700 (PDT) X-Google-Smtp-Source: AKy350b1vASaDhHPk07E8UkozQJceYQ2jBgM2zliNzJ+Y2QGwIdWG0lKecTLZCP8KrJ2CRrSLv9H X-Received: by 2002:a17:902:db04:b0:19a:96ea:3850 with SMTP id m4-20020a170902db0400b0019a96ea3850mr1848871plx.17.1681379328612; Thu, 13 Apr 2023 02:48:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681379328; cv=none; d=google.com; s=arc-20160816; b=SEDkKHcCTmxgHTGcCFEPXOoekykR+xu2IKUiOGBXikHNZ1ZHPFqwWJBcK/nA78ZoJA 9mqzCFCwQ7c5qIpkIL/pXA+P8utN21tcXpwl9lkjuw5kdPynCqtzwS1I/d1wqXwFukHE cQ8LWcCyuE008MCySuJ/4uIdXl6dvk4z7dmx9wU59EfilkertAGIA592aO6WfeWCKYWq NT0csbq/XNeAn0H/p2pHziAZpAkzmURDqrTthTBYwwUxJMWIhZqs0qbZip0t4NLbf2JC kOTTplEcG/u09ldjKdeEt1snbXBGD3iNwZQWOj9D3jMJ1ZffD2WE3rYSvGhl4q84HZ7b DJGQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=4/oO082dOt4EwITGqWOexRCxEJLa06bqlXdHk1KiCiQ=; b=v1p8tq+dXqgRTzVFqhBKky23dHJ+HIQdPItoiquMepU3t1XkFj9h6d1ieetQrhyOAF X6Vl7DHkioxkNp5tWZUW7GjB1GAYK8pDP81YJp66uTWoEP/fTO7rmF89IVXkPvRCGfZS G/rQqyMB2wIG3E1idftCYctZvRJW2wcGDFf2cbSLX6K+1Et5rmGZd18t/qM/+H5fv4dE 1MKuPEZiZEtVaCweWYePUKarZoEEs63nYaUMm1rOiRr5cMaU4MfMSwdUybydKSr4IhLg Mxwqb775uVtT5ufq8OYkfQycbHfYLiXzy+twrJDJavKh+FIHGic8uiKJT7czsIsprdIU hTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=MQSgK8dO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a170902904300b001a691f376e8si169166plz.415.2023.04.13.02.48.37; Thu, 13 Apr 2023 02:48:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@isovalent.com header.s=google header.b=MQSgK8dO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbjDMJr4 (ORCPT + 99 others); Thu, 13 Apr 2023 05:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229674AbjDMJry (ORCPT ); Thu, 13 Apr 2023 05:47:54 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C139901B for ; Thu, 13 Apr 2023 02:47:51 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id hg25-20020a05600c539900b003f05a99a841so15611853wmb.3 for ; Thu, 13 Apr 2023 02:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent.com; s=google; t=1681379269; x=1683971269; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4/oO082dOt4EwITGqWOexRCxEJLa06bqlXdHk1KiCiQ=; b=MQSgK8dOR6rR8kFn6rVvivqonifxqMtGS5eN8+7xZ/xMXVUN4gSs16iGt0WYC3ONPD mNJuxtwhSsogpq0/sXdjOROyKhrzzAxQ0+mi/gBPPAIvW1QLWH27bNGjhVOszCtN9zOZ 2RxJ24pSQRTMdMuSla8VSpfk4mA7QM6FlyC4asSqOB1dndCHWT7lEKbRt+64MdLU9kkG kfJfj1mN4tN+9pc2ED5v91j1BB0lid0CMHloHApvAnXsdZH8TgxiTdj+XVwmhxpNYat9 3InXj50cCFkz+2yMYqSpogY6yiwomdY8ltWHYLqYB61MIofTqrvqTWudEIWNgXt0gXcF a9kQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681379269; x=1683971269; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4/oO082dOt4EwITGqWOexRCxEJLa06bqlXdHk1KiCiQ=; b=FdCeH58FDEM4HQpEVbWHE/V/gIAZy8MJxaq3rh4kjnOTjLGJmV/mQBBNGpC2oXV0XM iP952hD2JWpMPEsGkMaJhWEUa5cXweo+H4QIuLY4TT51dgRhMXum6dw7Kpmi58puudkl 3tWWr8sdf3wJEyQy6g/aKiycUEn9gw3fbECmexKgkOyJ2XOEECN61KCZxa71JVTyzNKP OYSBamkM0fPjOAgItjzH3o0624hiP4BRYGDF/KDqkn0+/HrujFYwgeoT2YLpuj1cwZFw E9nFbmMsU5UNFdrfRa3ByCy1K2sV7Tk6rtH5JavnIQRvTr633jUnHHJNKcEDz6w07gVj k3Zg== X-Gm-Message-State: AAQBX9cu3b6pM0PP2QT4t10uFWMXrHa6vUlSQkDlVkjCe6EPwKGXz+xX 3DLy/IgOzJTT02jVWSM9lYJ/zg== X-Received: by 2002:a05:600c:2286:b0:3ee:5754:f139 with SMTP id 6-20020a05600c228600b003ee5754f139mr1445478wmf.13.1681379269469; Thu, 13 Apr 2023 02:47:49 -0700 (PDT) Received: from tpx1.lan (f.c.7.0.0.0.0.0.0.0.0.0.0.0.0.0.f.f.6.2.a.5.a.7.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:7a5a:26ff::7cf]) by smtp.gmail.com with ESMTPSA id c9-20020a05600c0a4900b003ee6aa4e6a9sm5070674wmq.5.2023.04.13.02.47.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 02:47:49 -0700 (PDT) From: Lorenz Bauer To: Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , Lorenz Bauer Cc: bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next] selftests/bpf: fix use of uninitialized op_name in log tests Date: Thu, 13 Apr 2023 10:47:40 +0100 Message-Id: <20230413094740.18041-1-lmb@isovalent.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org One of the test assertions uses an uninitialized op_name, which leads to some headscratching if it fails. Use a string constant instead. Fixes: b1a7a480a112 ("selftests/bpf: Add fixed vs rotating verifier log tests") Signed-off-by: Lorenz Bauer --- tools/testing/selftests/bpf/prog_tests/verifier_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/bpf/prog_tests/verifier_log.c b/tools/testing/selftests/bpf/prog_tests/verifier_log.c index 475092a78deb..8337c6bc5b95 100644 --- a/tools/testing/selftests/bpf/prog_tests/verifier_log.c +++ b/tools/testing/selftests/bpf/prog_tests/verifier_log.c @@ -110,7 +110,7 @@ static void verif_log_subtest(const char *name, bool expect_load_error, int log_ } if (!ASSERT_EQ(strlen(logs.buf), 24, "log_fixed_25")) goto cleanup; - if (!ASSERT_STRNEQ(logs.buf, logs.reference, 24, op_name)) + if (!ASSERT_STRNEQ(logs.buf, logs.reference, 24, "log_fixed_contents_25")) goto cleanup; } -- 2.39.2