diff options
author | Dave Young <[email protected]> | 2012-02-08 22:07:19 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2012-02-08 22:07:19 +0100 |
commit | 306df0716aa285d378cc948fafed53c6ed895fe6 (patch) | |
tree | c32e636516980e9f2708022e314f370a13198ecd /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 5abebfdd02450fa1349daacf242e70b3736581e3 (diff) |
loop: zero fill bio instead of return -EIO for partial read
commit 8268f5a741 ("deny partial write for loop dev fd") tried to fix the
loop device partial read information leak problem. But it changed the
semantics of read behavior. When we read beyond the end of the device we
should get 0 bytes, which is normal behavior, we should not just return
-EIO
Instead of returning -EIO, zero out the bio to avoid information leak in
case of partail read.
Signed-off-by: Dave Young <[email protected]>
Reviewed-by: Jeff Moyer <[email protected]>
Tested-by: Jeff Moyer <[email protected]>
Cc: Dmitry Monakhov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions