aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2015-12-04 18:18:48 +0000
committerAl Viro <[email protected]>2015-12-06 17:28:23 +0000
commitacff81ec2c79492b180fade3c2894425cd35a545 (patch)
treeda3c7514877f6881b8be76e203614917227be52a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentLinux 4.4-rc3 (diff)
downloadkernel-acff81ec2c79492b180fade3c2894425cd35a545.tar.gz
kernel-acff81ec2c79492b180fade3c2894425cd35a545.zip
ovl: fix permission checking for setattr
[Al Viro] The bug is in being too enthusiastic about optimizing ->setattr() away - instead of "copy verbatim with metadata" + "chmod/chown/utimes" (with the former being always safe and the latter failing in case of insufficient permissions) it tries to combine these two. Note that copyup itself will have to do ->setattr() anyway; _that_ is where the elevated capabilities are right. Having these two ->setattr() (one to set verbatim copy of metadata, another to do what overlayfs ->setattr() had been asked to do in the first place) combined is where it breaks. Signed-off-by: Miklos Szeredi <[email protected]> Cc: <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions