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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 18 May 2014 13:58:10 +0000 (14:58 +0100)
commit629cbea2961ec001a85a4ac8821dcd45226dd29c
treea7f00d0b52afc136b116b8b5377472d4be2521f5
parentd79119d4089defc81a49c6a7e26ff5ff86f4b342
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: Ben Hutchings <ben@decadent.org.uk>
drivers/block/floppy.c