summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/dir.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@fieldses.org>2012-07-23 21:17:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-23 21:46:01 +0200
commit0ec4f431eb56d633da3a55da67d5c4b88886ccc7 (patch)
tree7a782163f6598510ae57b0523c2e625a8b26f2ce /fs/ubifs/dir.c
parentMerge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/v... (diff)
downloadlinux-0ec4f431eb56d633da3a55da67d5c4b88886ccc7.tar.xz
linux-0ec4f431eb56d633da3a55da67d5c4b88886ccc7.zip
locks: fix checking of fcntl_setlease argument
The only checks of the long argument passed to fcntl(fd,F_SETLEASE,.) are done after converting the long to an int. Thus some illegal values may be let through and cause problems in later code. [ They actually *don't* cause problems in mainline, as of Dave Jones's commit 8d657eb3b438 "Remove easily user-triggerable BUG from generic_setlease", but we should fix this anyway. And this patch will be necessary to fix real bugs on earlier kernels. ] Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ubifs/dir.c')
0 files changed, 0 insertions, 0 deletions