[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1wqz833sr.fsf@sermon.lab.mkp.net>
Date: Tue, 02 Oct 2012 18:30:28 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Kent Overstreet <koverstreet@...gle.com>
Cc: Vivek Goyal <vgoyal@...hat.com>, linux-bcache@...r.kernel.org,
linux-kernel@...r.kernel.org, dm-devel@...hat.com, axboe@...nel.dk,
"Martin K. Petersen" <martin.petersen@...cle.com>, tj@...nel.org
Subject: Re: [dm-devel] [PATCH v3 01/26] block: Fix a buffer overrun in bio_integrity_split()
>>>>> "Kent" == Kent Overstreet <koverstreet@...gle.com> writes:
>> > + *bp->bip1.bip_vec = bip->bip_vec[0];
>> > + *bp->bip2.bip_vec = bip->bip_vec[0];
>>
>> I think this is horrible.
Yep.
>> Why not introduce bvec pointer in bip (like bio), to cover the case
>> when bvec are not inline.
Kent> That's... exactly what the next patch in the series does.
I'm perfectly ok with a patch that introduces the pointer and fixes the
bio_pair case. As long as that's all it does.
--
Martin K. Petersen Oracle Linux Engineering
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists