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)
committerWilly Tarreau <w@1wt.eu>
Mon, 19 May 2014 05:54:39 +0000 (07:54 +0200)
commitf0fa6c0306fc48c9b982c412e926b284906ba62d
treebef20d7baa3a103066302d4dd353502076e57865
parentf76b441b9d5879587f53525933d27b16217ca78c
floppy: don't write kernel-only members to FDRAWCMD ioctl output

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>
(cherry picked from commit 2145e15e0557a01b9195d1c7199a1b92cb9be81f)
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/block/floppy.c