Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1033853imm; Thu, 13 Sep 2018 11:33:39 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZuKkeyheN383mfz9EsOudGxyQyYN7zRyqtEO/A8PqptuduYGKlmg3mD4I1D7bvN+PgMEBn X-Received: by 2002:a63:9b09:: with SMTP id r9-v6mr8256410pgd.324.1536863619316; Thu, 13 Sep 2018 11:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536863619; cv=none; d=google.com; s=arc-20160816; b=DRW6zIjna0LXr/92Uaad63ehuWQnLioveEQvAIRaxmCyfLoFScZmIphEAAQgr/Mi8c QZKKvGfhshy1fqc5MDd8kVM8G/bJQ9vo2bwuLup9WmIt0PDruTUnH4mSwvMXbp4WtNPF O0rrvMwJOtZB0GAr6sxCVfBhDEdCElAJNll2zRUWjZZhq60dZDn2yU/zQHTU/Jbbavd7 mr0oigdtZp/du8/29e9ONX1NNhGP+mFcD8dDHkObLUo8hI5XcEYluY4Ho3PkmvJbKG/r ulhY1MCyh4bmzRvzKDV0BWLWthK9CyGQ2sKeeuAdl9xLdPwHFW6srVePx705N6IdnW6c 5vFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=Xuj3J3b7RKm4bZA5vXrYtI4DUipNNC2jopPp91czlrM=; b=iul0GeAjWsjghXjW7TdazERl2ctEL6NW9bstc/NuC0fvhqkqYBkKR1E081ccTD9YPV nSpwLfl4c0pgqECLWrcBitc074t+6JFkqyHVVMKN3wkFqD4ferwv78uCr41B2pV7Pgmb 1q1xM/kjGX/fGVpxXBay17bMGK94g1E2WMFr1sJBJ73/K/9bBMXYWHmi6IGwyJjbXnkh 7aokZYNomUdgl8R3P3n+0uSEaGAPCElC3eOz8LmNDjIM+v6mYSOQ+lMlOb/AwMJ03bm1 EMxLODoa2XYlLDlFy6C/mZ9Xtz2UabV4LoH2Wp+8gRk7MtLvIFbOlXn+GziBcZOmbyUe 5WzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=q+hT8K8A; 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 u7-v6si4472153pfb.227.2018.09.13.11.33.14; Thu, 13 Sep 2018 11:33:39 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=q+hT8K8A; 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 S1727592AbeIMXlR (ORCPT + 99 others); Thu, 13 Sep 2018 19:41:17 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:35490 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbeIMXlQ (ORCPT ); Thu, 13 Sep 2018 19:41:16 -0400 Received: by mail-wr1-f66.google.com with SMTP id j26-v6so7456388wre.2 for ; Thu, 13 Sep 2018 11:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Xuj3J3b7RKm4bZA5vXrYtI4DUipNNC2jopPp91czlrM=; b=q+hT8K8AkhYpxSZu1rlShN+z5x0S9IP5yikDFgcZLm9kb/G04+Cgh4vxG1dew+PpQy +ix5VKxzyr3K2NBUgz0AQtua8GZfxJqtAJUkqmZKJcGeNqFt7p2dOKKAVfsNUPMYRN2D Gt+bRkt8Xg8ui8aDBmWEKI/kI8Pn7mbHBN04w= 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:mime-version :content-disposition:user-agent; bh=Xuj3J3b7RKm4bZA5vXrYtI4DUipNNC2jopPp91czlrM=; b=GyiIuBb5CTk29UQl5/L6iQlk3A/15ciJ9qKFJCa8Rnjsu0nInBT/QByYjWUTM+ZYnR UKjr8fyVyX+CT1N8Lj+MdCnVzECbiCvQGOt0lKj5fFBn81KRV99SUgGnOlJKmS3AX7fA z3ECSUcYvB2Botl0dx079jtvyiFRWYP0JIv8MjJFBIYIiDBNVetH3woahRJ9wpo9GwAD qh6RqG037BgNIBZOcSE8eVHB51ldwy855QM7kWVuczzON39hqLCIwC/iFlu35EP9U43M fnJUr7bSc5Pg7+54IfrGvn6+G+y6cAtFXhQ4L1oLL+vAN/PMwU2mOfaWqAqDmh+JkDwg X68g== X-Gm-Message-State: APzg51CLdxbgi+1t93A5nMOfr+7MdodBtz3UVmJxxu27XURezXdj4qBN GWiLwYnUZ7LeWmStt/zMIBJ7+xe9yPs= X-Received: by 2002:a1c:7e92:: with SMTP id z140-v6mr6461956wmc.48.1536863434441; Thu, 13 Sep 2018 11:30:34 -0700 (PDT) Received: from veci.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id v2-v6sm4837308wrs.54.2018.09.13.11.30.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 11:30:33 -0700 (PDT) Date: Thu, 13 Sep 2018 20:30:30 +0200 From: Miklos Szeredi To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-unionfs@vger.kernel.org Subject: [GIT PULL] overlayfs fixes for 4.19-rc4 Message-ID: <20180913183030.GB23439@veci.piliscsaba.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git tags/ovl-fixes-4.19-rc4 This fixes a regression in the recent file stacking update, reported and fixed by Amir Goldstein. The fix is fairly trivial, but involves adding a fadvise() f_op and the associated churn in the vfs. As discussed on -fsdevel, there are other possible uses for this method, than allowing proper stacking for overlays. And there's one other fix for a syzkaller detected oops. Thanks, Miklos --- Amir Goldstein (6): ovl: respect FIEMAP_FLAG_SYNC flag ovl: fix GPF in swapfile_activate of file from overlayfs over xfs Documentation/filesystems: update documentation of file_operations vfs: add the fadvise() file operation vfs: implement readahead(2) using POSIX_FADV_WILLNEED ovl: add ovl_fadvise() Miklos Szeredi (1): ovl: fix oopses in ovl_fill_super() failure paths --- Documentation/filesystems/vfs.txt | 21 +++++++++- fs/overlayfs/file.c | 23 +++++++++-- fs/overlayfs/inode.c | 10 +++++ fs/overlayfs/super.c | 26 +++++++------ include/linux/fs.h | 5 +++ mm/Makefile | 3 +- mm/fadvise.c | 81 +++++++++++++++++++++++---------------- mm/readahead.c | 45 ++++++++-------------- 8 files changed, 134 insertions(+), 80 deletions(-)