diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-05-07 23:02:42 -0400 |
---|---|---|
committer | Chris Wright <chrisw@sous-sol.org> | 2006-05-10 18:56:15 -0700 |
commit | 1f0e637c94a9b041833947c79110d6c02fff8618 (patch) | |
tree | ae48fe2d180c18ec056d26c58bdeb153e15f2656 /fs/hostfs | |
parent | 90a03936acb1c3400a5833cc7b5c58e01b6106b8 (diff) |
[PATCH] fs/locks.c: Fix lease_init (CVE-2006-1860)
It is insane to be giving lease_init() the task of freeing the lock it is
supposed to initialise, given that the lock is not guaranteed to be
allocated on the stack. This causes lockups in fcntl_setlease().
Problem diagnosed by Daniel Hokka Zakrisson <daniel@hozac.com>
Also fix a slab leak in __setlease() due to an uninitialised return value.
Problem diagnosed by Björn Steinbrink.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Daniel Hokka Zakrisson <daniel@hozac.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Cc: Björn Steinbrink <B.Steinbrink@gmx.de>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Diffstat (limited to 'fs/hostfs')
0 files changed, 0 insertions, 0 deletions