[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [dm-devel] 2.6.5-udm1
- From: thornber redhat com
- To: device-mapper development <dm-devel redhat com>
- Subject: Re: [dm-devel] 2.6.5-udm1
- Date: Tue, 6 Apr 2004 17:07:05 +0100
and another:
dm-ioctl(): In retrieve_status(), make sure we don't overrun the ioctl
buffer. [Kevin Corry]
--- diff/drivers/md/dm-ioctl.c 2004-04-06 15:54:15.433160624 +0100
+++ source/drivers/md/dm-ioctl.c 2004-04-06 17:06:17.948038480 +0100
@@ -815,6 +815,10 @@ static void retrieve_status(struct dm_ta
outptr += sizeof(struct dm_target_spec);
remaining = len - (outptr - outbuf);
+ if (remaining <= 0) {
+ param->flags |= DM_BUFFER_FULL_FLAG;
+ break;
+ }
/* Get the status/table string from the target driver */
if (ti->type->status) {
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]