]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
vfs: ftruncate check IS_APPEND() on real upper inode
authorAmir Goldstein <amir73il@gmail.com>
Sat, 8 Apr 2017 11:49:06 +0000 (14:49 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 20 Apr 2017 14:37:26 +0000 (16:37 +0200)
commit78757af6518a35bdc22b4e7f660ff9dbbeba35d7
tree00f718f972f02f174190c99174ac21a8ce2ebdbc
parent33006cdf9c038dca9b3d4c148a509de851a66ea9
vfs: ftruncate check IS_APPEND() on real upper inode

ftruncate an overlayfs inode was checking IS_APPEND() on
overlay inode, but overlay inode does not have the S_APPEND flag.

Check IS_APPEND() on real upper inode instead.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/open.c