diff options
author | J. Bruce Fields <bfields@fieldses.org> | 2012-07-23 15:17:17 -0400 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-08-02 14:37:59 +0100 |
commit | 295cc2b91b078eb04f42db40ee04788c685dd351 (patch) | |
tree | beb2ae21c253fa8e57e484282a34f4ae4ddc8928 /Documentation | |
parent | ad15432068b43135d7af36e555c9d48b0d37c3c3 (diff) |
locks: fix checking of fcntl_setlease argument
commit 0ec4f431eb56d633da3a55da67d5c4b88886ccc7 upstream.
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. ]
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions