diff options
| author | Dmitry Monakhov <[email protected]> | 2011-11-16 08:21:48 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2011-11-16 08:21:48 +0000 |
| commit | 3bb9068278ea524581237abadd41377a14717e7d (patch) | |
| tree | 6e360ae87c4b393e862b6bb2ab18e8f2cea22797 /lib/debugobjects.c | |
| parent | block: Always check length of all iov entries in blk_rq_map_user_iov() (diff) | |
| download | kernel-3bb9068278ea524581237abadd41377a14717e7d.tar.gz kernel-3bb9068278ea524581237abadd41377a14717e7d.zip | |
loop: prevent information leak after failed read
If read was not fully successful we have to fail whole bio to prevent
information leak of old pages
##Testcase_begin
dd if=/dev/zero of=./file bs=1M count=1
losetup /dev/loop0 ./file -o 4096
truncate -s 0 ./file
# OOps loop offset is now beyond i_size, so read will silently fail.
# So bio's pages would not be cleared, may which result in information leak.
hexdump -C /dev/loop0
##testcase_end
Signed-off-by: Dmitry Monakhov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
