Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3415277ybf; Tue, 3 Mar 2020 05:41:13 -0800 (PST) X-Google-Smtp-Source: ADFU+vtufxkz8zGq1XjTl2AOlfxZH9xF3QOg2siJiQpC7fPkQyNDpDPH5k/yPeLeo9SyIKHXVSW7 X-Received: by 2002:a05:6808:4c2:: with SMTP id a2mr1548500oie.118.1583242872915; Tue, 03 Mar 2020 05:41:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583242872; cv=none; d=google.com; s=arc-20160816; b=PQsDvMnD8nTuNQzD6OjxdTcBgCcsO7MeFYYjm24+VoYalLeV62GZwraYyntjYRViqb TTiMYyGr0tlLVX6hcpid5pr0bg4NqL9Qb5nxS75QzFNKhap5RdDPRJGs4lcqWyrNXi7c P+bG007P3xLYQEJPMEnx/XgmIBIvDpKMnLYDFlW1xwXrt72dc3QDhdb2tFOf2hZTzo2J VA0KQgGyziwj3kB+JmFwh6ewPxRKmLOuYzx+uIWGRapL/mpXH7nsyv+5BKKoNfmwaJYa wUIbaeTnn0FDL5rx8grS1g3ldve5F1VxL9xOGPLFEP0JPiySOQyOOFCRdURP5jR+Wxxe m6UQ== 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=d8UZDr3lZGFyJivNM6em5ybzB9qz5QGiZZazZdznXqk=; b=T8peYAjyaJqS/0yFbl9eEfiPM8/SYur1HToPx0uChB/M+s4Pmja/89CrAA2I3WiQYQ TqNFPReIZmF8bS0sbx+EYd1SghnBZIgcgWsTbgQOa5k0wCxhDQ1TomTsV/qe7/zQW6Yb eeIllJLpINXw4++O5IFjQeZQBwxFqkvErqWfkNZPFPt9Mn6wIVYAFl80VAw+Ync8oiYi 1yccbZ9fSLrQKb4vH0ExYqQlinoa4MZY735ZfeS2JXQWGHcBY1QW5SXm5JtMfeGxgcFX D+2n0U/inRqzzU4sWhfV6NXjcj68ZXJCegNwB/adOqNEEsdZOvDJpdoRd2dCbXbjt/bh wWxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=eEQq5fiM; 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 t130si8584640oib.202.2020.03.03.05.41.00; Tue, 03 Mar 2020 05:41:12 -0800 (PST) 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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=eEQq5fiM; 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 S1726465AbgCCNey (ORCPT + 99 others); Tue, 3 Mar 2020 08:34:54 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:44058 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727167AbgCCNey (ORCPT ); Tue, 3 Mar 2020 08:34:54 -0500 Received: by mail-il1-f194.google.com with SMTP id x7so2716980ilq.11 for ; Tue, 03 Mar 2020 05:34:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=d8UZDr3lZGFyJivNM6em5ybzB9qz5QGiZZazZdznXqk=; b=eEQq5fiMKdVd42vqfExJKz3i8PtBQaz26xc++cNx+VS/zkeI5e09ipMisnSMiHdrf5 u+xmYZFz/xI0z/5+EySdWurVl96IIsUyghbPc5Vppji0ZZ9iQNhE7e1tgdNfKcxWAAes y80ESNGhn+KNkkn+eLigS588MUERmZAN3AgMs= 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=d8UZDr3lZGFyJivNM6em5ybzB9qz5QGiZZazZdznXqk=; b=IoYUrXED3NxodQ8fkOzSOfydRl8+Ir3mA00ZD+YVayHROS7ZXVPJXIzcOTdsCbtqFT Q5N9ctvffp9s1Rr100AAfCOT2Cfp+LvHyLMVituctp2N2ph51Pg7Et16Flib2qd5Ysd/ o9dsT2wwORG/Gb5yg15nfRW1xJSWVTphJb0aDj19a+zhBeqsVhRFAI34xDQXlrPjO78l vPFxj6F5H+jImsDh/s/dHNi8CvtFvtAe2XeLDJhgYx2a5hiLYGzJS1l4sHzwK9T2MSoX 5t0Hc7JxpC3NtfTnAiXIqE4bvLPcaU7bcV2f5zZBj+OLYyzSw8kvV4iDHxf3c2lBgEV0 zdRw== X-Gm-Message-State: ANhLgQ3IlPRuY+rsLM0ji8s7xietbqlaRfIn13aKlEtg8WnJxvdTGvKk W2ZKAdEOusJvsEP8HjFtx1EZxhfCnZcH7q6jjzpSTQ== X-Received: by 2002:a92:8847:: with SMTP id h68mr4667878ild.212.1583242493712; Tue, 03 Mar 2020 05:34:53 -0800 (PST) MIME-Version: 1.0 References: <1582644535.3361.8.camel@HansenPartnership.com> <20200228155244.k4h4hz3dqhl7q7ks@wittgenstein> <107666.1582907766@warthog.procyon.org.uk> <0403cda7345e34c800eec8e2870a1917a8c07e5c.camel@themaw.net> <1509948.1583226773@warthog.procyon.org.uk> <20200303113814.rsqhljkch6tgorpu@ws.net.home> <20200303130347.GA2302029@kroah.com> <20200303131434.GA2373427@kroah.com> In-Reply-To: <20200303131434.GA2373427@kroah.com> From: Miklos Szeredi Date: Tue, 3 Mar 2020 14:34:42 +0100 Message-ID: Subject: Re: [PATCH 00/17] VFS: Filesystem information and notifications [ver #17] To: Greg Kroah-Hartman Cc: Karel Zak , David Howells , Ian Kent , Christian Brauner , James Bottomley , Steven Whitehouse , Miklos Szeredi , viro , Christian Brauner , Jann Horn , "Darrick J. Wong" , Linux API , linux-fsdevel , lkml 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 Tue, Mar 3, 2020 at 2:14 PM Greg Kroah-Hartman wrote: > > Unlimited beers for a 21-line kernel patch? Sign me up! > > > > Totally untested, barely compiled patch below. > > Ok, that didn't even build, let me try this for real now... Some comments on the interface: O_LARGEFILE can be unconditional, since offsets are not exposed to the caller. Use the openat2 style arguments; limit the accepted flags to sane ones (e.g. don't let this syscall create a file). If buffer is too small to fit the whole file, return error. Verify that the number of bytes read matches the file size, otherwise return error (may need to loop?). Thanks, Miklos