Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3959530pxb; Mon, 8 Feb 2021 04:42:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJynxokJeEtZAh1bXS8blW1/jZPbdUiza8IGuOyPrgDnERnpjB2nBlf/RUabV1HRVgUI7+VL X-Received: by 2002:a05:6402:3114:: with SMTP id dc20mr16954344edb.197.1612788132765; Mon, 08 Feb 2021 04:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612788132; cv=none; d=google.com; s=arc-20160816; b=Gp3XkRtEOvm8p6LQXpTxPT280KQx76ROWMSgf6c0VVHhsj0lW3m4hC1kEwo8SVwQgL ifrJI8tXczRhQuxLziuYsrFg0wmujsLxBtNawHRacbQNWn7KVYfcYK22iPKHFs7+J7/j zgbB2hWtiwxV5iELM1cFEJBP5VRT37DLT0Zc5CIbpSoAXTGvqHq8paFscJejMP6gwowf yBMIcaeiEZSfc/bz2FMamc6pnENaWA8zuwu1eyHSis/bYVny59Ovs4b3IGTzkyqEeVVh Zjlnf/JEBozs4z+8RcOI9E4PBF6cxYQ3h/0yNT+tkWKL45tnwX8+sXaFgpA0qKFErzdx 86mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=loEBbKa5Ndufz/0YdKNALswJPUUf0CuP6QsASXheX1o=; b=DvofRjwrNCMjl4wM9HqKLmlEZZB4qyBlcm6vB2uDcIc1EOnY+tBSi031NXlUaN8Zn+ Sxq7750nsd4yCuIP12cXeXiljlLpaJ7y0x2P3hDtIeVt9aH7pQUCft0g3kn8VCaBk4Y8 +0gjakcgJkKZBPD1qjf5rpb7cXHLl7Fl2HKBg/W0jX+K02XYsGqh1gxPyVC0iVKY9Twf FcrhDr+YXU38QpQFU5h8sq20IIUTH0PN7idmXFmMOvvRzZkZ5MycITJwX7npVonzxpOw bTxmz5wxqKBlPH5De3c5s34uK/Ut4ULCdXs5wZlXf5icYfhPJjnU9zFlqq9vWwjB8aIi kT6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Sj/6u2t3"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y90si13964423edy.314.2021.02.08.04.41.49; Mon, 08 Feb 2021 04:42:12 -0800 (PST) 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=@google.com header.s=20161025 header.b="Sj/6u2t3"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230225AbhBHMlB (ORCPT + 99 others); Mon, 8 Feb 2021 07:41:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232802AbhBHMiZ (ORCPT ); Mon, 8 Feb 2021 07:38:25 -0500 Received: from mail-qv1-xf4a.google.com (mail-qv1-xf4a.google.com [IPv6:2607:f8b0:4864:20::f4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C55BC061786 for ; Mon, 8 Feb 2021 04:37:45 -0800 (PST) Received: by mail-qv1-xf4a.google.com with SMTP id a12so10439885qvo.3 for ; Mon, 08 Feb 2021 04:37:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=loEBbKa5Ndufz/0YdKNALswJPUUf0CuP6QsASXheX1o=; b=Sj/6u2t3k3ypU8C8kDoe7HnCdR55zJMrrmG1xeTBcCvNTJC5efYH56ucfavpLg2XOJ 9AckL7Ceh0qr7NQMTAWaHA1ATX+njnAvTVHIh/OUeJ0/9dFZIpeaZs9xkxqyX00up7Is 67fUA60LqD7cmdxfd2IxQc1Pcuz5jIlF6Gmbk998zQNhNprTyZOe0U+DUWq6fojZNbkh 5jrq5vPDpWNfVJd4tktAcWTkyK72/gQOMI19uwl5kAG0UnKq5YWRt9G1OTmuDVqDUBqO 4odIaUALMJbPInUFkz8EXEwtLHi/Un47HZZCMfPzR6uxV7lDXdv0EOlyOsXpY+frdjPS ap2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=loEBbKa5Ndufz/0YdKNALswJPUUf0CuP6QsASXheX1o=; b=jho91ladw1NqxX4Id7sXV1JfeLLLw5uk9FAPHf7GX6XDaO+BSklfCAlSXEE9sNtlwY L3LtovkF1B06Zn+6hFFPNTw7bmsKZ6VEqF/PHK21bXK0KSrva6ZLm96GCvVK/gaE41HL VwIy2u8gD1aLUg4pixe9z1UNL/MDxUXEoz79NLbDmGT3uUKKonyXSdgH0qrk8KYlB7hT AxYtwP4icu6awq91rLDL/K75X6FIXD8r1V4rFQFgf9GDztkXkVt/pe4/hvmUGNHKBGyB RkSQkMF38mDxDFR4y7nipThSoIgE884B2oFbnikGqxDMb4mQJGjfLOk+2ccUDcCYvFAS cEZA== X-Gm-Message-State: AOAM5323pEXXlGFLnyET1S8WLbFAQBRy/btH2Qj16z7wcRsGTnGLGAt2 2z4bzd68MGWpa5kiSuHmqrI0MU9CiXcVkA== Sender: "jackmanb via sendgmr" X-Received: from beeg.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:11db]) (user=jackmanb job=sendgmr) by 2002:ad4:41c5:: with SMTP id a5mr15763127qvq.41.1612787864180; Mon, 08 Feb 2021 04:37:44 -0800 (PST) Date: Mon, 8 Feb 2021 12:37:37 +0000 Message-Id: <20210208123737.963172-1-jackmanb@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog Subject: [PATCH v2 bpf-next] selftests/bpf: Add missing cleanup in atomic_bounds test From: Brendan Jackman To: bpf@vger.kernel.org Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , KP Singh , Florent Revest , Yonghong Song , linux-kernel@vger.kernel.org, Brendan Jackman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing skeleton destroy call. Reported-by: Yonghong Song Fixes: 37086bfdc737 ("bpf: Propagate stack bounds to registers in atomics w/ BPF_FETCH") Signed-off-by: Brendan Jackman --- Differences from v1: this actually builds. tools/testing/selftests/bpf/prog_tests/atomic_bounds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c b/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c index addf127068e4..69bd7853e8f1 100644 --- a/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c +++ b/tools/testing/selftests/bpf/prog_tests/atomic_bounds.c @@ -12,4 +12,6 @@ void test_atomic_bounds(void) skel = atomic_bounds__open_and_load(); if (CHECK(!skel, "skel_load", "couldn't load program\n")) return; + + atomic_bounds__destroy(skel); } base-commit: 23a2d70c7a2f28eb1a8f6bc19d68d23968cad0ce -- 2.30.0.478.g8a0d178c01-goog