Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp945181pxk; Thu, 3 Sep 2020 17:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyghFAjhfEZwTjd3M/H24aokIb8L4+iAIfAY85mvKsRdT66EZrRvrDprUM9fBUsMzu1yBEu X-Received: by 2002:a17:906:a00d:: with SMTP id p13mr5020276ejy.535.1599179759082; Thu, 03 Sep 2020 17:35:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599179759; cv=none; d=google.com; s=arc-20160816; b=Pwt9TqcQiytag2aSh9srNs8PrawYeaHWuNaSaGDyIR4WH3ORc+2AhraMWEK8+Pn86u 6zGOBcEQUY8ZRbwp1WPKjcHakHD7SuI0w+/UfuqA1tq6FRN31m+VrNlR1hsgKVDQRG65 ahXwTv4ZC/tCqMhnElQIg7TZOJ1GRdnWp4NWMfOn5EbGFsh3Ns9ZGpVInKDmGoaYmFoM n3kWFVYZwZ3k7Ux5E/9VN+M4HMSL9zMDcHuF4phvUSnwmkXYBQPMuXno+AcbNAlqT45X aFxuxyU0+lUsu5QMYSOAj3SgQEE783brbpcAHAH62/5EkUCM3KsXYNQ5ynhKpJPRfSie pHcg== 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=Zf9S2piXp30RkaJ2ipfBoaYTZaao4UDSG/OSRaoirlU=; b=0WTFRpmeccYYLQtBddJMJpQvb0oAdEwpyLA1FDqFoYWHKF5d60cGip1eFGOcUnvvZx mHVantJ1DfvPWbKgifLc7f4k4VvZ3KPxVrflyse3l873aXJCNUYa6o/InDnmWbydAwsv k0P1F3T1CPRrE+cw9LXm3LQS5BryxJTgqP5SV39Yt3otJaxCyjYpVCs/GcSdHQwlznwH inZpliQNO7PT3p/Fo9knzMGpywN31pYFVJuf+ZTIZQEJz/uJUfl6uikDHNdcU1ZsF/Ej zpdAQyEdx+7lCQtnSU2sIJR4mFrtm/g6LM/FSuhMGjZV7ImCauRyDIZAvMOWYvye0LYL G8ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l1YonLzO; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si3090195edq.34.2020.09.03.17.35.36; Thu, 03 Sep 2020 17:35:59 -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=@gmail.com header.s=20161025 header.b=l1YonLzO; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729383AbgIDAew (ORCPT + 99 others); Thu, 3 Sep 2020 20:34:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726397AbgIDAet (ORCPT ); Thu, 3 Sep 2020 20:34:49 -0400 Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47836C061244; Thu, 3 Sep 2020 17:34:49 -0700 (PDT) Received: by mail-lf1-x143.google.com with SMTP id z17so2900331lfi.12; Thu, 03 Sep 2020 17:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zf9S2piXp30RkaJ2ipfBoaYTZaao4UDSG/OSRaoirlU=; b=l1YonLzO4TnrRRTqbgQdZYO/B5udRfOiFenBTzllYhmQs2ya/ZA1o9lGtWktnuHeDP 2XyH7zGLFUilVCO9JEqXGmWT6Rt3szoSm1FbPQWLo8Nx3kHhAeP+LGFU2FrtFro6u09e HtRFzWoApRPRPnfdzhTyLiG2a/a0/pQFhYhpf6CSRcOPoxyz6s5aoWG7XTsXOlNrHDsr efqZWGAmmCS/wA8n4+zhr53jdIk7xm9CoNNJozbXODpYGvRyqABSnPMJMdJbK0egoH2j HyrODunsAbEXghg24sK7ILYjYhMC4o7YAlQ3XngLLS5L1e4hdnGhEGI4Fhgpxbx4Zgrq ODtQ== 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=Zf9S2piXp30RkaJ2ipfBoaYTZaao4UDSG/OSRaoirlU=; b=QNfiAlK34q59yxWL4RE+EKy+Hig/b9NHsyyitK2yHucEnS9VFxz/UJUWkQIkytKJYK ZIISQ1bJPL8ewrr+5BPgEjK7a/hCZC3gdHkKOotQbFvmfC130Wk3en7je96wrZ90FdqG I3cLvIuodtkx/a57P8BygVq/p/xNMcAasgYWRWF/MtJHlf0D+ceZilsh01VG9XmVn41B TVScoZBOEBB2OWSv6KcyzqlvfAkdFegMLS8jYXol3zuDlkAAfZEDvpQs7zbf97V2VdS5 aIniti1Gg1uKY2IA0QWvmfhDR+0jogCISsX6paUEGxJfFm7LFKXPcjfYO+YEeLeJ42Td E2Ug== X-Gm-Message-State: AOAM532rrFwlUJ4GjUME4LFcXAZgSt8wPS1TmLV559eOE5aZr2iBS+dR Ktl4WkMy5UGQABhz/TXIaVkxNdFk9RPBKusvHTM= X-Received: by 2002:a05:6512:2101:: with SMTP id q1mr2519517lfr.157.1599179687683; Thu, 03 Sep 2020 17:34:47 -0700 (PDT) MIME-Version: 1.0 References: <20200903200528.747884-1-haoluo@google.com> In-Reply-To: From: Alexei Starovoitov Date: Thu, 3 Sep 2020 17:34:36 -0700 Message-ID: Subject: Re: [PATCH] selftests/bpf: Fix check in global_data_init. To: Andrii Nakryiko Cc: Hao Luo , Networking , bpf , open list , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan , Alexei Starovoitov , Andrii Nakryiko , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , KP Singh 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, Sep 3, 2020 at 1:36 PM Andrii Nakryiko wrote: > > On Thu, Sep 3, 2020 at 1:06 PM Hao Luo wrote: > > > > The returned value of bpf_object__open_file() should be checked with > > libbpf_get_error() rather than NULL. This fix prevents test_progs from > > crash when test_global_data.o is not present. > > > > Signed-off-by: Hao Luo > > --- > > thanks! > > Acked-by: Andrii Nakryiko Applied. Thanks