__dentry_path() fixes
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Jan 2014 17:37:55 +0000 (12:37 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 26 Jan 2014 17:37:55 +0000 (12:37 -0500)
commitf6500801522c61782d4990fa1ad96154cb397cd4
tree681441a4ea0e816d49145c89c63645c677d12ce1
parenta8323da0366d3398eda62741d2ac1130c8a172ed
__dentry_path() fixes

* we need to save the starting point for restarts
* reject pathologically short buffers outright

Spotted-by: Denys Vlasenko <dvlasenk@redhat.com>
Spotted-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/dcache.c