lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Sun, 17 Sep 2017 23:38:15 +0900
From:   "J. R. Okajima" <>
To:     Linus Torvalds <>,
        Miklos Szeredi <>
Cc:     Al Viro <>,
        Linux Kernel Mailing List <>,
        linux-fsdevel <>,
        "" <>
Subject: Re: [GIT PULL] overlayfs update for 4.14

Linus Torvalds:
> On Wed, Sep 13, 2017 at 11:46 PM, Miklos Szeredi <> wrote:
> >
> > d_real() is currently is *the* overlayfs-op:
> I know. And it's ugly as #%^! hell.
> We don't want to  make it uglier.
> And honestly, if you think that "it's only for overlayfs, so I can do
> anything I damn well want to this p[iece of shit" is valid, then I
> want to re-educate you. That is *not* how the VFS layer works.


I've just read your experimental patch to remove ->d_real(). I believe
it is the way to go. Moreover I'd suggest you to re-consider these

- d_real_inode(), d_backing_inode(), and locks_inode()
  I don't think it a good idea for VFS and other modules to care "which
  inode I should use" issue. Ideally they should call d_inode() and
  file_inode() only as they used to.

- RENAME_WHITEOUT flag for user-space
  Why does this flag visible to users? It is a pure internal flag, isn't
  it? When and what for do users specify this flag?

Git-grepping the overlayfs related changes in other modules, I'd also
suggest you to re-consider these.

4bacc9c 2015-06-19 overlayfs: Make f_path always point to the overlay and f_inode to the underlay

54d5ca8 2016-05-10 vfs: add vfs_select_inode() helper
d101a12 2016-03-26 fs: add file_dentry()

a118084 2016-05-20 vfs: add d_real_inode() helper

c1892c3 2016-08-03 vfs: fix deadlock in file_remove_privs() on overlayfs

4d0c5ba 2016-09-16 vfs: do get_write_access() on upper layer of overlayfs
c568d68 2016-09-16 locks: fix file locking on overlayfs
f3fbbb0 2016-09-16 fsnotify: support overlayfs
598e3c8 2016-09-16 vfs: update ovl inode before relatime check

78757af 2017-04-20 vfs: ftruncate check IS_APPEND() on real upper inode

ad0af71 2017-07-04 vfs: introduce inode 'inuse' lock

J. R. Okajima

Powered by blists - more mailing lists