summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2011-07-06 12:33:55 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-06 10:41:13 -0700
commita51cb91d81f8e6fc4e5e08b772cc3ceb13ac9d37 (patch)
treeb6289a258d552b9c0daea02b898425d911f4fee9 /fs/hfsplus/super.c
parenta2fa83faf47b514ab947cea916d3691b66525073 (diff)
downloadop-kernel-dev-a51cb91d81f8e6fc4e5e08b772cc3ceb13ac9d37.zip
op-kernel-dev-a51cb91d81f8e6fc4e5e08b772cc3ceb13ac9d37.tar.gz
fs: fix lock initialization
locks_alloc_lock() assumed that the allocated struct file_lock is already initialized to zero members. This is only true for the first allocation of the structure, after reuse some of the members will have random values. This will for example result in passing random fl_start values to userspace in fuse for FL_FLOCK locks, which is an information leak at best. Fix by reinitializing those members which may be non-zero after freeing. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus/super.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud