Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4817037imm; Mon, 14 May 2018 13:42:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqm1qz2XQYDb8E51d5dgGConNCz7932UpAEr5r70bYI/8lKPmYrAtdiRC4GEto1GX2sePh/ X-Received: by 2002:a63:824a:: with SMTP id w71-v6mr9776080pgd.37.1526330553448; Mon, 14 May 2018 13:42:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526330553; cv=none; d=google.com; s=arc-20160816; b=YxjhwWllsp4Va0j1sZmza4gmruTTAhHjYQty4DCNGlNQJA+KZ3LC8MUrgle26Y7lUL hy8F8L5vjapwFlH4OlkTjBWFDjT6if7eO3QTFy0Aqz/kC7Dpw+jx/u6XJZiDg77A7LyR 0XYbQ1jXBNSXJ/Rl552OqI/uGpd7N1S/ylUcPpVRT5+HWOb6t71TjiRL4epbnnD/306n TRBFwlBGqtfggOT2wO8uLHm+EaLCj2pcQdDxBTk61mWKdYpcjWzHz6/gnTfAWBfNrnGq dc08qFL0O8xSdf1aXtRIgzCmgXfGraZEhSzSx3cJEep7/Bcdn7iF/oXP4Fe5ReLydj9B Cagg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:arc-authentication-results; bh=iWr+qkI54CdVOMh+Nz57Bmzb2wbQSSGLGpmZ2HfVnfw=; b=gPTbcKjZ4XXqpD9LQFgJGdluygDx7jU/76xzOQVWHWhdBc758MWno4t/OuT38/zaYW Ro97tfvyGbagWjkyyUeZIjK8XgpHGYg7GN4D3UVZS5Tfy1DCAT00NuqMEAXy7RlRKvZu IuouVMKN8NH+XmY6p6RzHSoA3PdQwEUSXUapd3mKugk33GyFrxTTOeClDD05oEhNyWHa gblv+M7R41+hATpJv9rfUD7B4gFgQPkdxS4Gs7QayxG8L/8cjM7U4m4BuGb6OdZq38IY I1rJo95ZiXBICFIVnq5tIYMbQoKk3o5wPeVfZJxnOharJFNptBE18sWQ1Qq/Ju0j7qT2 GHKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=FUu5D6fX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4-v6si10619530pfa.66.2018.05.14.13.42.19; Mon, 14 May 2018 13:42:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=FUu5D6fX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752160AbeENUlr (ORCPT + 99 others); Mon, 14 May 2018 16:41:47 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:42328 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbeENUlp (ORCPT ); Mon, 14 May 2018 16:41:45 -0400 Received: by mail-pg0-f41.google.com with SMTP id p9-v6so5973670pgc.9 for ; Mon, 14 May 2018 13:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=iWr+qkI54CdVOMh+Nz57Bmzb2wbQSSGLGpmZ2HfVnfw=; b=FUu5D6fXWxNZncgnP0LzEuElOJZ4+EKPckxKVETjMXFSbT2mumg1sLezIl08bgWSxC NJT+ZsPFLdYph8s1jXIYK6S2vuijT3S7REMVofT2/wGzCJM4dJzJnaFOrqJEqJzggvlH WCJIfKLxqw4fD00khdDAbD+BTU5is5dNfGt4QaNDNm55j5q8/yhFClBVVNMweZf3xtAm H41RizqohP9GMqd0SsubxLP5Qw8WGDg3WAIVdrg4eDD+3MAmbAVJke7tl7SPdTLz0rXz WbNYN+szVafv+Lib8SAEBKTRMmasfD0csinvqDTBDudaKBQMhXHXH8d8RMmuYjLCDgkF lWOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=iWr+qkI54CdVOMh+Nz57Bmzb2wbQSSGLGpmZ2HfVnfw=; b=IO98DIo7TWms4M+WLqYOOWU6Vf7E/DQottzHSd2+n3q36yOrq6qYq1am9TALoZd/zm gCq6okyk0ufN39Q5W/L5akzVRf80QAmZqfcW47GLfNi1I6uvxPoYfMgXEAdr93MSuofP 4iJx/VjuBPGn9APrDVmuNHSO/Hd3KyGpb9SDRnwwsUZYbE4bIqHVWuyyY+x/p6gkYs1t w50IR9GfD+iUfZ+me4rZWHinqr4+tqAvBDifiGBqT7XS/t8/GdGETq8AS6bhdstgkeEH w+KCt/sb/L3PKx52pOKa+oH20rkx5UuDIfacWUw7lMECoTdHBs1tGQtRcS04M+wCZZP8 rNXA== X-Gm-Message-State: ALKqPweWwt5q3wqTJ1t9BkjgzIO+Ge/tHgvF2z+xUWLMvaxKX2WlXx91 +z0jA/8CdLHZP/rQ1vEznX+7/Q== X-Received: by 2002:a62:230b:: with SMTP id j11-v6mr11865810pfj.177.1526330504970; Mon, 14 May 2018 13:41:44 -0700 (PDT) Received: from cakuba ([2620:10d:c090:380::2:54c0]) by smtp.gmail.com with ESMTPSA id z7-v6sm13568252pgp.74.2018.05.14.13.41.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 13:41:44 -0700 (PDT) Date: Mon, 14 May 2018 13:41:40 -0700 From: Jakub Kicinski To: Stephen Rothwell Cc: Daniel Borkmann , Alexei Starovoitov , Networking , Linux-Next Mailing List , Linux Kernel Mailing List Subject: Re: linux-next: manual merge of the bpf-next tree with the bpf tree Message-ID: <20180514134140.0c468174@cakuba> In-Reply-To: <20180514115700.0faadd6f@canb.auug.org.au> References: <20180514115700.0faadd6f@canb.auug.org.au> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 May 2018 11:57:00 +1000, Stephen Rothwell wrote: > diff --cc tools/lib/bpf/libbpf.c > index 8da4eeb101a6,df54c4c9e48a..000000000000 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c > @@@ -2163,9 -2193,12 +2193,12 @@@ int bpf_prog_load_xattr(const struct bp > > if (!attr) > return -EINVAL; > + if (!attr->file) > + return -EINVAL; > > - obj = bpf_object__open(attr->file); > + obj = __bpf_object__open(attr->file, NULL, 0, > + bpf_prog_type__needs_kver(attr->prog_type)); > - if (IS_ERR(obj)) > + if (IS_ERR_OR_NULL(obj)) > return -ENOENT; This is okay, thanks. The OR_NULL is unnecessary just using the bpf-next code is a better merge IMO.