| commit | a04d8ef979b661ce9051d0f22b0b2c25fc94b955 | [log] [tgz] |
|---|---|---|
| author | Matthew Daley <mattd@bugfuzz.com> | Mon Apr 28 19:05:20 2014 +1200 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue May 13 14:11:29 2014 +0200 |
| tree | 4affe04b7b7b698f317df00858f3d065caef521f | |
| parent | 5c5aeb0ca78c6b9cdca6462bf54f50ac28756cbb [diff] |
floppy: ignore kernel-only members in FDRAWCMD ioctl input commit ef87dbe7614341c2e7bfe8d32fcb7028cc97442c upstream. Always clear out these floppy_raw_cmd struct members after copying the entire structure from userspace so that the in-kernel version is always valid and never left in an interdeterminate state. 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>