Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5136529ybp; Mon, 14 Oct 2019 16:11:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeGm8uVd+/B/iwp7Ljr9L/79wo29iYx3spkiCzy1TFkyzkrL0KJhhFA66Dn9oxO5dsEWDA X-Received: by 2002:aa7:d145:: with SMTP id r5mr30073702edo.275.1571094660585; Mon, 14 Oct 2019 16:11:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571094660; cv=none; d=google.com; s=arc-20160816; b=HaS+CdCZ2xh915DVxk0FaKEjQHVM0IM3yITHyEaCVJL0RpKnCsst0i1J4iqRmmT161 a3KiL8LcdfFLHoIBsD2t64AVk4xBEZ1N6IeMbNO0cc7bikWlZdLv9A2mFnhFJMU+rqfK K0I1F0SoSferHdJ38Lz0MWhWxeRt0EsG9uXZSXqzfblg3xppFVrFq9zh4L9QDan+rf/N NR00OpIrNRNcC9V63i0TOP6feOGgS6E63DYceWFc5IofaKTETVFrHpwYqwgp3eZRJ27P Eo+o81JpTfqmRTJ0V0j0H43EiUG0OVhozADZPZFzXL7kSjFAXsPnGt9vTOol0xhtEaWV oiGw== 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=tl4f6x5LaBYnk4O0v99MsRzY3TUmlaFrR8aMs8VHxow=; b=chU7RGkjM6BmhdgptvjKBOqgdn3RxPKJbRLPbz4owHO5it2wWjHREIypa1hjB0LyzV Ks8r1CL78tUdLfJTm5XHz63ODAqFOnv/UfJT1HT52AyqPsxk6t4V1EmKYCMzjRgWabl8 w8XGJI/mB/PYqcCOY5bhAwj+qWAjDHweq+iSkehh0HfAXJQYrfEv08gnA5aFmtOHbSSm PV082ayRhXdYc7CAnU0Xjw+quEOn88AfjEIuWBTV67ESww7LNylUixdH9aKg/u8nGbwu ZsV/YMSu1LvHJ49jj1P1qHPJORX5bJteS/+WZav0f/YY7uyFDb9qlK9oxuau6Q9SdMYJ iB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YY3BCYHU; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id rn4si11978902ejb.251.2019.10.14.16.10.36; Mon, 14 Oct 2019 16:11:00 -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=@google.com header.s=20161025 header.b=YY3BCYHU; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387632AbfJNSaf (ORCPT + 99 others); Mon, 14 Oct 2019 14:30:35 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:44239 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731556AbfJNSaf (ORCPT ); Mon, 14 Oct 2019 14:30:35 -0400 Received: by mail-ot1-f66.google.com with SMTP id 21so14616838otj.11 for ; Mon, 14 Oct 2019 11:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tl4f6x5LaBYnk4O0v99MsRzY3TUmlaFrR8aMs8VHxow=; b=YY3BCYHU/puIpC3m1C7ST9z/cleynKgAfruHWL6oXDlKC6WRCZa/wtgFzBUdscWo2D +kH+MjVv6Ztu2n2DRbBrgGsyLV61j4t/+Oj4RLwP+/LaWMDDy2P+yIfx+cB0xSb2fSEU EcvLBM8vTO1kOprr3LkwP0BsUDZq9Io8o5xLvSY5L17P9NeIWnaql9xRjO68GeyGqWdo +HHa0xnhjQ/uGk4hRq116CNqGxl1vBP4Sn2LNV6oEbRaElmLeFODC9Zv9GTJkZAoXOiE /H3AXVQq9eNLKSxtsURmb0h6VzQfnmiLlJmzkI91pZpGdYesQp1tl35pgLsL5J+IGf9l 1mEg== 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=tl4f6x5LaBYnk4O0v99MsRzY3TUmlaFrR8aMs8VHxow=; b=eLdk9CdzAUsvyxe4f/87vOrkz0gfrSarA430ATOLQZFzRoEx7xqJu1TFhgrD/0mXLN xXAUhdHej5D2LpfJ4JSL539d8qKwjQrdJ+B09j1DvL3LAzqJN3BdXxWg9Qc0MFOkpYpS 2jT4YBOfzemTAJPv/I3F9PqzZ3qLmhD63ooJ3Lo+c65Qi3fAe2JnnOuNJByiXH38GHb0 f9TvYnToJMCtg0cS6FB5uP/wk0QkDgCMifjavb1IOfEV5w42SbLxRhTYiiGLHWVPZTM2 oufMJbIHdlm3I4j+ByQXcHZAqR0PV7LXRa/Ep+uaBQcoTmj88DjhLTD3RZ7OqKOo6m3B Da9Q== X-Gm-Message-State: APjAAAUjAV/aqF4wyqujwtq8PlbB9gyemricaBPsQbjDCUlaXL7c62fc MfQ3FjA1gGZ/9yB5Jr8OQqz8WTsH3kCzVbFFo+ZvKg== X-Received: by 2002:a9d:75d0:: with SMTP id c16mr10238245otl.32.1571077834222; Mon, 14 Oct 2019 11:30:34 -0700 (PDT) MIME-Version: 1.0 References: <20191012191602.45649-1-dancol@google.com> <20191012191602.45649-2-dancol@google.com> In-Reply-To: From: Jann Horn Date: Mon, 14 Oct 2019 20:30:07 +0200 Message-ID: Subject: Re: [PATCH 1/7] Add a new flags-accepting interface for anonymous inodes To: Daniel Colascione Cc: Linux API , kernel list , Lokesh Gidra , Nick Kralevich , Nosh Minwalla , Tim Murray 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 Mon, Oct 14, 2019 at 8:16 PM Daniel Colascione wrote: > On Mon, Oct 14, 2019 at 8:39 AM Jann Horn wrote: > > > > On Sat, Oct 12, 2019 at 9:16 PM Daniel Colascione wrote: > > > Add functions forwarding from the old names to the new ones so we > > > don't need to change any callers. > > > > This patch does more than the commit message says; it also refactors > > the body of the function. (I would've moved that refactoring over into > > patch 2, but I guess this works, too.) > > > > [...] > > > -struct file *anon_inode_getfile(const char *name, > > > - const struct file_operations *fops, > > > - void *priv, int flags) > > > +struct file *anon_inode_getfile2(const char *name, > > > + const struct file_operations *fops, > > > + void *priv, int flags, int anon_inode_flags) > > > > (AFAIK, normal kernel style is to slap a "__" prefix in front of the > > function name instead of appending a digit, but I guess it doesn't > > really matter.) > > I thought prefixing "_" was for signaling "this is an implementation > detail and you probably don't want to call it unless you know what > you're doing", not "here's a new version that does a new thing". Ah, I guess that might be true.