Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp273000pxf; Wed, 17 Mar 2021 22:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDvOdKKTqq1f1oulUT+JNAs05q0SiCptH20iWY2C6bEcBVpzkITD3ymXz/FzQnKyvCjLlS X-Received: by 2002:a05:6402:614:: with SMTP id n20mr1533485edv.58.1616046985484; Wed, 17 Mar 2021 22:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616046985; cv=none; d=google.com; s=arc-20160816; b=GGpjE6H7Kwvb50lbkjf5fkDVDN3l5gEDt9fNtngR0POsMyAP3/jSo7EliMR1X5yJ1G TOGzdvR0lF3ws2jKH0GXRnE73sBjfpEavL9fxW8TEwfjlMZQsWt2jpBO0zbgpdHfiGu8 cRnfQHMKcy4t01pIZtD0NhnDhZdhwrA1V/tA3JhKxNeEC8gAJI757MJuKZQn9nR/SNky r+P7nimDSD7zOD9B3daOpdwUaT46MUvBnwMF9SlCgTdR5Bs3Gig9q7LutIYSJ8Y3o/pS HbBgcpZ2yCsQiorS5JxEuVF89AqDz0nY04eF7sl2nG4wFw5AkVOJ4e19kWbD4uOOVHIX Cl2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=rJROOKajOtciafbi5yKM+xYoRKUUdF2HFDVh5pjYjDc=; b=UGILjJwO6PK7ClsAuaaIHfrPiwzRDmeNFk9adsjIshXp5CpHQ51ahFDhguEwqw7ObT 1jtNILvPhEWDUq7l43NqbA7sHopLYrcjqb8QXkp8fJGz5iMOrh4TzOokN78AfjIMaotp B+k62PG7wu8X0Z8Opy2ZWQpoFFTAsK1+G84B/ov25VNlF2aoWRmT2WyYpKAkg6nX0r81 aAZOIbReKPOQgnwxBsJdEYhTAyPA8uKzng/C9xL9JRLyCLplJPc8kLVdNdoHV5NlF9LK KR1W44JBTSiXgoDlUxv/BC7iPyfgPdg2q0G/6FX9FjaeoqMik30VIMIuaLUmsZ9/LyPD ItWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=V3a61EFe; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si818044ejr.191.2021.03.17.22.56.03; Wed, 17 Mar 2021 22:56:25 -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=@chromium.org header.s=google header.b=V3a61EFe; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229805AbhCRFzH (ORCPT + 99 others); Thu, 18 Mar 2021 01:55:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbhCRFyg (ORCPT ); Thu, 18 Mar 2021 01:54:36 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09AB5C061760 for ; Wed, 17 Mar 2021 22:54:36 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id t18so2336498pjs.3 for ; Wed, 17 Mar 2021 22:54:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=rJROOKajOtciafbi5yKM+xYoRKUUdF2HFDVh5pjYjDc=; b=V3a61EFeK8DCdYgpexeyYbDeJ6iJDfdbxjAeD7lChv/gRGorl33DJ3BMUviRPySs58 DqijCIGczHsOaQVQTiwCTUbFxa8OJ6lH/P01tnCJpz/Gr5aQL2Nif/8XBHB5io4qZOGI LQyqTdOAUqrjefaJTahNsu8cRz7TQMUn4rLa0= 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:references :mime-version:content-disposition:in-reply-to; bh=rJROOKajOtciafbi5yKM+xYoRKUUdF2HFDVh5pjYjDc=; b=V1KF5a0BQVvx9TSiS1BbVMmq2mBtqXNYZ+7vReiIb0yi7Z649r88l8olFLlIjS//7K znOjYzZv8cq//htyW2MBSiUQTeKpoGP7LHzy7637um8YA+NAR/S5GIBZ/NvsR87b/jvU /9NKPu4WCOJ6DYtp280PWV6k37eq4svAOLjZ8pJuuZOmoT0hP05Ly0qvlEMFvLqdDDpF IHZ9gSVJx8auQ8KwWhTX0oYuLg9hFPtRTiSAYeAsuD6FEoVRlQhGMSMoZ+Jrh+AzbqJe eukWRi0mDe2RJvd6H6zqdjury930HzWi+jTIAWtQatkAgC+ervopGNqP2/I87Gwjjn3a 98WA== X-Gm-Message-State: AOAM530bBzzLKurVJX4rBF6ivnqNbo0UM2ANGHmJ3jx7gTHErsn6QGEm zvuO2B2BrEEiB7JNs2PJUmi4Uw== X-Received: by 2002:a17:90a:5284:: with SMTP id w4mr2464303pjh.29.1616046875626; Wed, 17 Mar 2021 22:54:35 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id y24sm884896pfn.213.2021.03.17.22.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 22:54:35 -0700 (PDT) Date: Wed, 17 Mar 2021 22:54:34 -0700 From: Kees Cook To: Kalesh Singh Cc: jannh@google.com, jeffv@google.com, surenb@google.com, minchan@kernel.org, hridya@google.com, rdunlap@infradead.org, christian.koenig@amd.com, willy@infradead.org, viro@zeniv.linux.org.uk, kernel-team@android.com, Alexey Dobriyan , Jonathan Corbet , Andrew Morton , Michal Hocko , Mauro Carvalho Chehab , Alexey Gladkov , "Eric W. Biederman" , Christian Brauner , Michel Lespinasse , Bernd Edlinger , Andrei Vagin , Helge Deller , James Morris , Serge Hallyn , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [RESEND PATCH v6 2/2] procfs/dmabuf: Add inode number to /proc/*/fdinfo Message-ID: <202103172254.478DE154@keescook> References: <20210308170651.919148-1-kaleshsingh@google.com> <20210308170651.919148-2-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308170651.919148-2-kaleshsingh@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 05:06:41PM +0000, Kalesh Singh wrote: > And 'ino' field to /proc//fdinfo/ and > /proc//task//fdinfo/. > > The inode numbers can be used to uniquely identify DMA buffers > in user space and avoids a dependency on /proc//fd/* when > accounting per-process DMA buffer sizes. > > Signed-off-by: Kalesh Singh Reviewed-by: Kees Cook -- Kees Cook