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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:59:40 +0000 (13:59 +0200)
commit50c648e394a0968f19d448b70bec82da88219963
treec3fa3437dca1957c6ee33d1ec1f7c08f956ea7d5
parent21506304588afab20b2d52aaa56b70e85aca6386
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/floppy.c