diff options
author | Namhyung Kim <namhyung@gmail.com> | 2010-12-26 11:41:54 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2011-01-17 04:54:38 -0500 |
commit | e0bb6bda43e20aa1db5774c73a519cd52c463a55 (patch) | |
tree | 84af59ed571cda0a3b023caf50b2b538ac5c2554 /fs/compat.c | |
parent | 974d879e8070bbb132bd4e79ef314703853d0b82 (diff) |
compat: copy missing fields in compat_statfs64 to user
f_flags and f_spare fields were not copied to userspace when
compat_sys_[f]statfs64 called.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/compat.c')
-rw-r--r-- | fs/compat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/compat.c b/fs/compat.c index c62b5e6a1c15..f6fd0a00e6cc 100644 --- a/fs/compat.c +++ b/fs/compat.c | |||
@@ -320,7 +320,9 @@ static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstat | |||
320 | __put_user(kbuf->f_namelen, &ubuf->f_namelen) || | 320 | __put_user(kbuf->f_namelen, &ubuf->f_namelen) || |
321 | __put_user(kbuf->f_fsid.val[0], &ubuf->f_fsid.val[0]) || | 321 | __put_user(kbuf->f_fsid.val[0], &ubuf->f_fsid.val[0]) || |
322 | __put_user(kbuf->f_fsid.val[1], &ubuf->f_fsid.val[1]) || | 322 | __put_user(kbuf->f_fsid.val[1], &ubuf->f_fsid.val[1]) || |
323 | __put_user(kbuf->f_frsize, &ubuf->f_frsize)) | 323 | __put_user(kbuf->f_frsize, &ubuf->f_frsize) || |
324 | __put_user(kbuf->f_flags, &ubuf->f_flags) || | ||
325 | __clear_user(ubuf->f_spare, sizeof(ubuf->f_spare))) | ||
324 | return -EFAULT; | 326 | return -EFAULT; |
325 | return 0; | 327 | return 0; |
326 | } | 328 | } |