summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/cluster
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2014-08-30 00:18:58 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-30 01:28:16 +0200
commit2b462638e41ea62230297c21c4da9955937b7a3c (patch)
tree8f19675d518b40df09e7d21aa04c785eb5e303b8 /fs/ocfs2/cluster
parentx86/purgatory: use approprate -m64/-32 build flag for arch/x86/purgatory (diff)
downloadlinux-2b462638e41ea62230297c21c4da9955937b7a3c.tar.xz
linux-2b462638e41ea62230297c21c4da9955937b7a3c.zip
ocfs2: do not write error flag to user structure we cannot copy from/to
If we failed to copy from the structure, writing back the flags leaks 31 bits of kernel memory (the rest of the ir_flags field). In any case, if we cannot copy from/to the structure, why should we expect putting just the flags to work? Also make sure ocfs2_info_handle_freeinode() returns the right error code if the copy_to_user() fails. Fixes: ddee5cdb70e6 ('Ocfs2: Add new OCFS2_IOC_INFO ioctl for ocfs2 v8.') Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Cc: Joel Becker <jlbec@evilplan.org> Acked-by: Mark Fasheh <mfasheh@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/cluster')
0 files changed, 0 insertions, 0 deletions