]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: fix compat_sys_stat() handling of overflows in st_nlink
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 13 Feb 2012 01:56:29 +0000 (20:56 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 14 Feb 2012 01:45:39 +0000 (20:45 -0500)
commit8f603fd22635c12b0b5ab95996b0484b167fcb4c
treea34e89f84bea5bd9193ed12bc49361950bba03a8
parent4e61858791c350e03e1ceecf727d25352230f2a6
vfs: fix compat_sys_stat() handling of overflows in st_nlink

Massaged cp_compat_stat() into form closer to cp_new_stat(); the only
real issue had been in handling of st_nlink overflows - native 32bit
stat(2) returns -EOVERFLOW in such situations, compat one silently
loses upper bits.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/compat.c