floppy: don't write kernel-only members to FDRAWCMD ioctl output
authorMatthew Daley <mattd@bugfuzz.com>
Mon, 28 Apr 2014 07:05:21 +0000 (19:05 +1200)
committerJiri Slaby <jslaby@suse.cz>
Thu, 15 May 2014 07:55:49 +0000 (09:55 +0200)
commit3d43edf5868f260dbfd1353bf243a78f030a08b0
treef33870e88c41da168cfd2fecb3537ca9e1b56da0
parent36cdf95db237630373162e20142df4d11efdd543
floppy: don't write kernel-only members to FDRAWCMD ioctl output

commit 2145e15e0557a01b9195d1c7199a1b92cb9be81f upstream.

Do not leak kernel-only floppy_raw_cmd structure members to userspace.
This includes the linked-list pointer and the pointer to the allocated
DMA space.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/block/floppy.c