public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* inotify cookie regression/info leak in latest mainline
@ 2014-02-15 21:39 Vegard Nossum
  2014-02-17 12:59 ` Jan Kara
  0 siblings, 1 reply; 3+ messages in thread
From: Vegard Nossum @ 2014-02-15 21:39 UTC (permalink / raw)
  To: Jan Kara, LKML

Hi,

It would seem that

commit 7053aee26a3548ebaba046ae2e52396ccf56ac6c
Author: Jan Kara <jack@suse.cz>
Date:   Tue Jan 21 15:48:14 2014 -0800

     fsnotify: do not share events between notification groups

introduced a bug where the cookie field of struct inotify_event never 
gets initialised. In particular, it used to be initialised when 
send_to_group() called fsnotify_create_event(), but that no longer 
happens, and the 'cookie' parameter of send_to_group() never gets used.

The problem manifests itself in copy_event_to_user() where the cookie 
field is copied to userspace without being initialised.

I tested this with a simple userspace program, I seem to get mostly 
0xffff8800 in the cookie field for non-move events (which should always 
have 0 here).


Vegard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-17 21:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-15 21:39 inotify cookie regression/info leak in latest mainline Vegard Nossum
2014-02-17 12:59 ` Jan Kara
2014-02-17 21:10   ` Vegard Nossum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox