]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fanotify: info leak in copy_event_to_user()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 19 Jun 2013 00:05:29 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:43 +0000 (17:12 +1000)
commit82e4cd8a5211e212d2bbe2cc10e253dc9ec54246
tree8d349c59262e02de9ae7b13796eaf12c0037b43c
parent67dbcdf88ba0aee2f9d0c79d39973665d74af72b
fanotify: info leak in copy_event_to_user()

The ->reserverd field isn't cleared so we leak one byte of stack
information to userspace.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Eric Paris <eparis@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/notify/fanotify/fanotify_user.c