Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1097548yba; Fri, 26 Apr 2019 14:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy67Qff5KgXgcbM/dtFoCZc1XZWwwcH5P4coLhPcjOuki2Oio6sPACofFTm7cGNW2MlvQXx X-Received: by 2002:a62:3583:: with SMTP id c125mr25896449pfa.169.1556312748659; Fri, 26 Apr 2019 14:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556312748; cv=none; d=google.com; s=arc-20160816; b=vKpSd7+ylTtzgbGpgNw47XQWQQkU/VsjiX8rNtzUfhk3jkb2U6l1YY1tXsAsbM++Ye CkuHdKj7skzvSu57N87E7nHsRe5VwGPYYWixSvq2F5x+8XGfYTh7vanjJj0bITZVRwtj XQ38lNNnNnJw654Q+TentAhqDc9kF6JJ30DgxQyrNJ8InefypdhepcMG6CHPQnH8XJAu dPs1TbNhs9rFpqI1qQ1FQG9R6IN8l+1AHtHM82F1rzekt4JbW1Mry+9VGr7BrzNTkBtk +hMAFow7BRVu6d9GozuVn1srRRh+HdPTR21BUA4UU1kuba+yr1oKYL4pglycW3aTB7/P WLKg== 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; bh=cwXLRcDq1ftZ0cdqNvS8Nrv6hGkLzbIaQeIbceSh3VA=; b=L7/sSAH+wuS0Uz+4eSSD6J2uOjPYuVIYgBYcTUR2mE2CTu7Eoh/TCkjw+2O/IsnpsD C5a/FWUjXmbisM3LJBwH+6TKJv0lcoM0u+lWYeB2qJ2A5jviM7IP0UNcWzMLDAy4pCBR vzPPQ8ut3D90YgNjvysbSoZkmKdIYrbQyCc8vvle8ijPvcjjQ4a8vNgfmdXxaRJ17YY+ EZUyx/pK4elwNHmWKN4oI3gaPl0H6Pwy2l+dRKctDp+Or6XvnTut7skFBeD6A57gQE4j fCITMBOHN0l9U7rgHwlp1frXAbUqhywPt7X1G7P3dGuzAeBAmByl4BhhJt11b/Z+fpgY fnpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=qSDXP8RP; 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 e36si25859357pgm.89.2019.04.26.14.05.33; Fri, 26 Apr 2019 14:05:48 -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=qSDXP8RP; 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 S1726246AbfDZVD3 (ORCPT + 99 others); Fri, 26 Apr 2019 17:03:29 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:45014 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbfDZVD2 (ORCPT ); Fri, 26 Apr 2019 17:03:28 -0400 Received: by mail-qk1-f194.google.com with SMTP id y5so2707954qkc.11 for ; Fri, 26 Apr 2019 14:03:28 -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=cwXLRcDq1ftZ0cdqNvS8Nrv6hGkLzbIaQeIbceSh3VA=; b=qSDXP8RP+3jGx7/HxfdmdnlCN+JBOFZgCTg81s040wqOcV0tVsCkcFy4zEDpsZUmiI RQHHrYtdrXIv1PvgPoApV1zS1ZQqDH9S5d7SCc6V3j9skSX/YakGVzNIEVULJHIlUD+e IsJbS9oenWMzCe1lZOZscNPChNvj4WLqhVb0nNi+qkz+HApGZsg6w/ORPJXfJkhKg+3L zE0aFgjM4Qw7+yZbTXU2qbVdhqnGuuFBoVail9zcneHYsDkkR8qajmFRJMHCbKUZxJ1w AwAV7Gh23H3BaypgWqnaYcsEnGoFrhazOq0wUbY1WDNBlIR1LVVlBVGhhjGELR6vVTPy exmA== 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=cwXLRcDq1ftZ0cdqNvS8Nrv6hGkLzbIaQeIbceSh3VA=; b=kwgOKX1DwBeD57PjFimcQNVtuBE2n91taRecXz0WnTxLJbZT9kEEl9EeZRUapuaPdp L2697WIIkiXu/VP2ziEeUrXp3p7GgPsR/W1px+Yms+nchsYR92EEJAHRa3rxl+fpwa7Z ZQNpx5alUYyHfnFKpRwhX7Oo89GX/3mnFN7LOblenWRLIGVQeIpZIquJDdg9takAQ3U4 wkgr/eoCRQBahUkQ3TOLnv6ECQttNwYyZcWcmH8bPvIuQEic/S/zHpVTibtedebUNQVL XL/ubZTCtd+rX4N65ClAg0HVAdh9HztKl2rLkxhjb2cVtxLtNmE6fd9y4++LoTlV2VCY xU0g== X-Gm-Message-State: APjAAAWYBamvr3hWzru2xEvKWYmD8Z9bkrGE3kIa40kAWE6tZv527w5M rQfIp4FUrol03HqIHMQJ6OycAg== X-Received: by 2002:a37:8481:: with SMTP id g123mr9304970qkd.181.1556312608015; Fri, 26 Apr 2019 14:03:28 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id p1sm3072425qkb.43.2019.04.26.14.03.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Apr 2019 14:03:27 -0700 (PDT) Date: Fri, 26 Apr 2019 14:03:23 -0700 From: Jakub Kicinski To: Alban Crequy Cc: john.fastabend@gmail.com, ast@kernel.org, daniel@iogearbox.net, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alban@kinvolk.io, iago@kinvolk.io Subject: Re: [PATCH bpf-next v3 1/4] bpf: sock ops: add netns ino and dev in bpf context Message-ID: <20190426140323.4edf1127@cakuba.netronome.com> In-Reply-To: <20190426154848.23490-1-alban@kinvolk.io> References: <20190426154848.23490-1-alban@kinvolk.io> 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 Fri, 26 Apr 2019 17:48:45 +0200, Alban Crequy wrote: > In the unlikely case where network namespaces are not compiled in > (CONFIG_NET_NS=n), the verifier will not allow access to ->netns_*. Naive question - why return an error? init_net should always be there, no?