Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp962090imm; Fri, 5 Oct 2018 15:11:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV61IEY95CSm9bC10Cr8t3niJCjIJoo9Pmxe85V2Q5s3s4HLT9WX8CZJVaC9SCL5Ig3q/W7Xb X-Received: by 2002:a63:fe13:: with SMTP id p19-v6mr11834655pgh.265.1538777470375; Fri, 05 Oct 2018 15:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538777470; cv=none; d=google.com; s=arc-20160816; b=sMRYbu7O3AybP/x6HdrxfGu9eQaQL8FHzTLrpZYdF98Q0yBg9HZgNwEbcNsh2uSBYw X9Y7H5sdNeiLB1W8nFYqOGuNZ9tAAWJ0oD8BtN2tSScSTBTGOztIgtrANWAI06dgZ8BB uLO8lynCsK5sDAX+5UV71JSubREFCaL/l2p+wdPaOrSLIaVpIjCriE8ZYS4In7FcA//O XXfXDGiNAh1eVfuTCxk8VbpWlWMOdbNdUCT0xt77Sg2ZLKvCMdq212RLDNtyGHeUkd93 7dIe3uv7YaYUad0d4tKi7iNmnWQINtEFECP0mY1qU1LSPtg+YDl3Td6oBQUIhI+9q+Vp mMLQ== 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=lvPfx0aEmiY+IQxRq8EXo/Che3Aud79iC/Wa0J7xcRM=; b=aZovyZA7kOYDMdYwecHlXA/fnRth+oe3HMpgr8L6kxDuGwgLZM8YwwFKVKM/0cM6ek UYkifv2K0bJstpP1hFgVK4JlOhR/ttlUb7WtenZzdfH/7bn+WJFzTo8+qYDJ17i5Mn5F Z9BEELABP/q1oxvmXRvyCVd3BvxOoP1RPTA3Z4hMy5IbiIFWGwLXM4nI8sFykKIZopfU 9nyTQjgUYq4HauRVb8K3+cedzF7yX6sU/JbVb1TTK/wEL16pMmZHRm1z5qfCNsHOm3SZ /42f8f1y8/CaAGHed0/W2ndSRgvnyZ7txlfWyHsqbQDzNSSeqxGbZZr+txXkTkBIeQeu 3qBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=uHvQAjjC; 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 t21-v6si10693667plj.352.2018.10.05.15.10.54; Fri, 05 Oct 2018 15:11:10 -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=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=uHvQAjjC; 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 S1727081AbeJFFKQ (ORCPT + 99 others); Sat, 6 Oct 2018 01:10:16 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:40728 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbeJFFKP (ORCPT ); Sat, 6 Oct 2018 01:10:15 -0400 Received: by mail-wr1-f66.google.com with SMTP id d2-v6so10510201wro.7 for ; Fri, 05 Oct 2018 15:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lvPfx0aEmiY+IQxRq8EXo/Che3Aud79iC/Wa0J7xcRM=; b=uHvQAjjCYMcooY7TYnF8LKqybiV2kfSlNGB7Kzh1ItpmHQnlsDnCzt39pdIFnc1uj7 KGU8D9m/eYtxdfn/LjW0550KknH8qrFoLwxcGJ/PUB94u/9jIlEmvuig4+Caw2FDwR8A msVidIiXxP7SewRDf0gADvl6fEROYIMaKIFwu8vgA6ihn0vQPE9eTaVySqNYoKT45UV7 HY1CFqVdolMHPlY8yi0Fb3HlO7zsyDLnnN+5PciyRnSkjDOzCGefBoYbd4ZO8+stNBNn QcoQKnHMy+Ca7VE/9uA8NRgdbxobFETMtKYADKPwxNH4yXKDmtVq0L55C1k0WmuNz5vh 9p1g== 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=lvPfx0aEmiY+IQxRq8EXo/Che3Aud79iC/Wa0J7xcRM=; b=YB3KH9PyOsBz4m9Oj3WfPJTw83rpR9lKFjHUGhHclLtmffB3rxPoal1oBGquvGB8gh KVYJrOnRhs2cLWG7Gzb492CmZHWbyoFKjM00N/pfw0Yi4m7I0XAnxyK7sR8vNUsLHU5Y 0hp9ZRNBIYld9C1daS4Xymri8q/SRkpAu3sfsM4t+IvLvtbauxn26yTrGy/FA0p9Ctol 2tBSH8DTYtoTX888CPngePuHR8dJPgTGyRmXyyVw1ih7AasrNyNKQrAcqcTQb9YPJ4oY ogHw22yNr0QWIiYZjH5+wwFYTxffxCrmz9nJZrLcv1Ytc6TO0Dkrec5tFkd8BaqJZAvN LyjA== X-Gm-Message-State: ABuFfogMav3g62Vmke1FTx4gtuKW8n5VbB0Ivaah626XrPFjckM1EXUS pxvzyv3UbpGDD06UpAJxbcyhbeCh8rFAhMwcH24z8Q== X-Received: by 2002:adf:b188:: with SMTP id q8-v6mr9583415wra.95.1538777372157; Fri, 05 Oct 2018 15:09:32 -0700 (PDT) MIME-Version: 1.0 References: <20181004025750.498303-1-ast@kernel.org> <20181004025750.498303-2-ast@kernel.org> <20181005044659.GU32577@ZenIV.linux.org.uk> <20181005220518.747ri4q34obrnaoc@ast-mbp.dhcp.thefacebook.com> In-Reply-To: <20181005220518.747ri4q34obrnaoc@ast-mbp.dhcp.thefacebook.com> From: Andy Lutomirski Date: Fri, 5 Oct 2018 15:09:20 -0700 Message-ID: Subject: Re: [PATCH bpf-next 1/6] bpf: introduce BPF_PROG_TYPE_FILE_FILTER To: Alexei Starovoitov Cc: Al Viro , Alexei Starovoitov , "David S. Miller" , Daniel Borkmann , Network Development , LKML , kernel-team 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 Fri, Oct 5, 2018 at 3:05 PM Alexei Starovoitov wrote: > > On Fri, Oct 05, 2018 at 05:46:59AM +0100, Al Viro wrote: > > > Another problem is your direct poking in ->i_ino. It's not > > something directly exposed to userland at the moment and it should > > not become such. > > The patch is not making i_ino directly exposed. > Only 'struct bpf_file_info' is exposed to user space / bpf programs. I think Al is saying that the valie of i_ino is not something that user code is permitted to know regardless of how you format it because it may or may not actually match the value returned by stat(). Another way of saying that is that your patch is digging into an internal data structure and is doing it wrong. --Andy