Skriven Av: jenso Den: 2006-05-11 07:56:00 http://www.kernel.org/pub/linux/kernel/v2.6/patch-184.108.40.206.bz2
Author: Chris Wright
Date: Wed May 10 18:56:24 2006 -0700
Author: Trond Myklebust
Date: Sun May 7 23:02:42 2006 -0400
[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
Also fix a slab leak in __setlease() due to an uninitialised return value.
Problem diagnosed by BjÃƒÂ¶rn Steinbrink.
Signed-off-by: Trond Myklebust
Tested-by: Daniel Hokka Zakrisson
Signed-off-by: Linus Torvalds
Cc: BjÃ¶rn Steinbrink
Signed-off-by: Chris Wright