diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-12-22 23:45:11 -0500 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2014-11-23 10:55:33 +0100 |
commit | 9ff558c6afe440afa94ef870322386cc06541843 (patch) | |
tree | a29e7c66f85682e07c2ff40655a5d68ec17f8520 /sound/core/control.c | |
parent | e24be1e3939658159a9aa0c0658f05763d811293 (diff) |
fix autofs/afs/etc. magic mountpoint breakage
We end up trying to kfree() nd.last.name on open("/mnt/tmp", O_CREAT)
if /mnt/tmp is an autofs direct mount. The reason is that nd.last_type
is bogus here; we want LAST_BIND for everything of that kind and we
get LAST_NORM left over from finding parent directory.
So make sure that it *is* set properly; set to LAST_BIND before
doing ->follow_link() - for normal symlinks it will be changed
by __vfs_follow_link() and everything else needs it set that way.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
(cherry picked from commit 86acdca1b63e6890540fa19495cfc708beff3d8b)
[wt: fixes CVE-2014-0203]
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'sound/core/control.c')
0 files changed, 0 insertions, 0 deletions