summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-01-13 18:25:47 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-13 18:25:47 -0800
commitcdae72074d9efae7a62c3853cda684fe43f3afa0 (patch)
treebf6b3f5a4b5ec7f201e8baff3fe302b74eb589d9 /net/lapb/lapb_iface.c
parent576dd6f68067742479b5c083cb795fbdc57e5d1b (diff)
[PATCH] bio clone memory corruption
Doing some raid testing threw a bug in the scsi mid layer, because the segment counts wasn't correct. Initially I worried that we still had problems in this area, but it turns out that is due to the raid usage of bio clones. Currently you have to hold on to the original bio as well, since the clone only maintains a pointer to the bio_vec inside the original bio. If the original bio is freed first, the clone will have garbage in its bio->bi_io_vec as soon as that memory is scribbled. I think the best fix is to maintain flexibility and duplicate the io_vec inside the clone as well. Attached patch does this. Signed-off-by: Jens Axboe <axboe@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions