All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail()
@ 2012-08-09 13:55 Marina Makienko
  2012-08-09 13:55 ` [PATCH 04/13] ide: Potential null pointer dereference in ide_cdrom_reset() Marina Makienko
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-atapi.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index fac3d9d..8bf4109 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -93,6 +93,12 @@ int ide_queue_pc_tail(ide_drive_t *drive, struct gendisk *disk,
 	int error;
 
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+
+	if (!rq) {
+		printk(KERN_ERR PFX"ide_queue_pc_tail: blk_get_request() failed. \n");
+		return 1;
+	}
+
 	rq->cmd_type = REQ_TYPE_SPECIAL;
 	rq->special = (char *)pc;
 
-- 
1.7.7


^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 04/13] ide: Potential null pointer dereference in ide_cdrom_reset()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 05/13] ide: Potential null pointer dereference in ide_raw_taskfile() Marina Makienko
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-cd_ioctl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-cd_ioctl.c b/drivers/ide/ide-cd_ioctl.c
index 02caa7d..e29588f 100644
--- a/drivers/ide/ide-cd_ioctl.c
+++ b/drivers/ide/ide-cd_ioctl.c
@@ -304,6 +304,10 @@ int ide_cdrom_reset(struct cdrom_device_info *cdi)
 	int ret;
 
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+
+	if (!rq)
+		return -EIO;
+
 	rq->cmd_type = REQ_TYPE_SPECIAL;
 	rq->cmd_flags = REQ_QUIET;
 	ret = blk_execute_rq(drive->queue, cd->disk, rq, 0);
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 05/13] ide: Potential null pointer dereference in ide_raw_taskfile()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
  2012-08-09 13:55 ` [PATCH 04/13] ide: Potential null pointer dereference in ide_cdrom_reset() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 06/13] ide: Potential null pointer dereference in generic_ide_resume() Marina Makienko
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-taskfile.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index 729428e..655d894 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -432,6 +432,10 @@ int ide_raw_taskfile(ide_drive_t *drive, struct ide_cmd *cmd, u8 *buf,
 	int rw = !(cmd->tf_flags & IDE_TFLAG_WRITE) ? READ : WRITE;
 
 	rq = blk_get_request(drive->queue, rw, __GFP_WAIT);
+
+	if (!rq)
+		return -EIO;
+
 	rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
 
 	/*
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 06/13] ide: Potential null pointer dereference in generic_ide_resume()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
  2012-08-09 13:55 ` [PATCH 04/13] ide: Potential null pointer dereference in ide_cdrom_reset() Marina Makienko
  2012-08-09 13:55 ` [PATCH 05/13] ide: Potential null pointer dereference in ide_raw_taskfile() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 07/13] ide: Potential null pointer dereference in ide_cmd_ioctl() Marina Makienko
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

he function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-pm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-pm.c b/drivers/ide/ide-pm.c
index 9240609..4412f24 100644
--- a/drivers/ide/ide-pm.c
+++ b/drivers/ide/ide-pm.c
@@ -19,6 +19,10 @@ int generic_ide_suspend(struct device *dev, pm_message_t mesg)
 
 	memset(&rqpm, 0, sizeof(rqpm));
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+
+	if (!rq)
+		return -EIO;
+
 	rq->cmd_type = REQ_TYPE_PM_SUSPEND;
 	rq->special = &rqpm;
 	rqpm.pm_step = IDE_PM_START_SUSPEND;
@@ -59,6 +63,8 @@ int generic_ide_resume(struct device *dev)
 
 	memset(&rqpm, 0, sizeof(rqpm));
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+	if (!rq)
+		return -EIO;
 	rq->cmd_type = REQ_TYPE_PM_RESUME;
 	rq->cmd_flags |= REQ_PREEMPT;
 	rq->special = &rqpm;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 07/13] ide: Potential null pointer dereference in ide_cmd_ioctl()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (2 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 06/13] ide: Potential null pointer dereference in generic_ide_resume() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 08/13] ide: Potential null pointer dereference in ide_devset_execute() Marina Makienko
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-ioctls.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-ioctls.c b/drivers/ide/ide-ioctls.c
index 4d19eb9..463f0ff 100644
--- a/drivers/ide/ide-ioctls.c
+++ b/drivers/ide/ide-ioctls.c
@@ -126,6 +126,8 @@ static int ide_cmd_ioctl(ide_drive_t *drive, unsigned long arg)
 		struct request *rq;
 
 		rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+		if (!rq)
+			return err;
 		rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
 		err = blk_execute_rq(drive->queue, NULL, rq, 0);
 		blk_put_request(rq);
@@ -222,6 +224,8 @@ static int generic_drive_reset(ide_drive_t *drive)
 	int ret = 0;
 
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+	if (!rq)
+		return ret;
 	rq->cmd_type = REQ_TYPE_SPECIAL;
 	rq->cmd_len = 1;
 	rq->cmd[0] = REQ_DRIVE_RESET;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 08/13] ide: Potential null pointer dereference in ide_devset_execute()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (3 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 07/13] ide: Potential null pointer dereference in ide_cmd_ioctl() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 09/13] ide: Potential null pointer dereference in set_multcount() Marina Makienko
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-devsets.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-devsets.c b/drivers/ide/ide-devsets.c
index 9e98122..acdb87f 100644
--- a/drivers/ide/ide-devsets.c
+++ b/drivers/ide/ide-devsets.c
@@ -166,6 +166,8 @@ int ide_devset_execute(ide_drive_t *drive, const struct ide_devset *setting,
 		return setting->set(drive, arg);
 
 	rq = blk_get_request(q, READ, __GFP_WAIT);
+	if (!rq)
+		return -EIO;
 	rq->cmd_type = REQ_TYPE_SPECIAL;
 	rq->cmd_len = 5;
 	rq->cmd[0] = REQ_DEVSET_EXEC;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 09/13] ide: Potential null pointer dereference in set_multcount()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (4 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 08/13] ide: Potential null pointer dereference in ide_devset_execute() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 10/13] ide: Potential null pointer dereference in ide_cd_queue_pc() Marina Makienko
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-disk.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
index 16f69be..538d206 100644
--- a/drivers/ide/ide-disk.c
+++ b/drivers/ide/ide-disk.c
@@ -479,6 +479,10 @@ static int set_multcount(ide_drive_t *drive, int arg)
 		return -EBUSY;
 
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+	if (!rq) {
+		printk(KERN_ERR PFX"set_multcount: blk_get_request() failed. \n");
+		return 1;
+	}
 	rq->cmd_type = REQ_TYPE_ATA_TASKFILE;
 
 	drive->mult_req = arg;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 10/13] ide: Potential null pointer dereference in ide_cd_queue_pc()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (5 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 09/13] ide: Potential null pointer dereference in set_multcount() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 11/13] ide: Potential null pointer dereference in idetape_queue_rw_tail() Marina Makienko
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-cd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 8126824..9dd575d 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -443,6 +443,9 @@ int ide_cd_queue_pc(ide_drive_t *drive, const unsigned char *cmd,
 
 		rq = blk_get_request(drive->queue, write, __GFP_WAIT);
 
+		if (!rq)
+			return -EIO;
+
 		memcpy(rq->cmd, cmd, BLK_MAX_CDB);
 		rq->cmd_type = REQ_TYPE_ATA_PC;
 		rq->sense = sense;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 11/13] ide: Potential null pointer dereference in idetape_queue_rw_tail()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (6 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 10/13] ide: Potential null pointer dereference in ide_cd_queue_pc() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 13:55 ` [PATCH 12/13] ide: Potential null pointer dereference in issue_park_cmd() Marina Makienko
  2012-08-09 14:13 ` [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Alan Cox
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-tape.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c
index ce8237d..c27b05c 100644
--- a/drivers/ide/ide-tape.c
+++ b/drivers/ide/ide-tape.c
@@ -853,6 +853,8 @@ static int idetape_queue_rw_tail(ide_drive_t *drive, int cmd, int size)
 	BUG_ON(size < 0 || size % tape->blk_size);
 
 	rq = blk_get_request(drive->queue, READ, __GFP_WAIT);
+	if (!rq)
+		return -EIO;
 	rq->cmd_type = REQ_TYPE_SPECIAL;
 	rq->cmd[13] = cmd;
 	rq->rq_disk = tape->disk;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* [PATCH 12/13] ide: Potential null pointer dereference in issue_park_cmd()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (7 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 11/13] ide: Potential null pointer dereference in idetape_queue_rw_tail() Marina Makienko
@ 2012-08-09 13:55 ` Marina Makienko
  2012-08-09 14:13 ` [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Alan Cox
  9 siblings, 0 replies; 13+ messages in thread
From: Marina Makienko @ 2012-08-09 13:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: Marina Makienko, linux-ide, linux-kernel, ldv-project

The function blk_get_request() can return NULL in some cases. There are
checks on it if function is called with argumetns one of which is
GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
blk_get_request() return NULL.

But if there is function call with argument __GFP_WAIT
the system will wait until get request or the queue becomes
dead. If something kills the queue, blk_get_request()
return NULL and next operations will lead to errors.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Marina Makienko <makienko@ispras.ru>
---
 drivers/ide/ide-park.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/ide/ide-park.c b/drivers/ide/ide-park.c
index 6ab9ab2..4d178bd 100644
--- a/drivers/ide/ide-park.c
+++ b/drivers/ide/ide-park.c
@@ -32,6 +32,8 @@ static void issue_park_cmd(ide_drive_t *drive, unsigned long timeout)
 	spin_unlock_irq(&hwif->lock);
 
 	rq = blk_get_request(q, READ, __GFP_WAIT);
+	if (!rq)
+		goto out;
 	rq->cmd[0] = REQ_PARK_HEADS;
 	rq->cmd_len = 1;
 	rq->cmd_type = REQ_TYPE_SPECIAL;
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 13+ messages in thread

* Re: [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail()
  2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
                   ` (8 preceding siblings ...)
  2012-08-09 13:55 ` [PATCH 12/13] ide: Potential null pointer dereference in issue_park_cmd() Marina Makienko
@ 2012-08-09 14:13 ` Alan Cox
  2012-08-09 21:49   ` David Miller
  2012-08-17 17:00   ` Sergei Shtylyov
  9 siblings, 2 replies; 13+ messages in thread
From: Alan Cox @ 2012-08-09 14:13 UTC (permalink / raw)
  To: Marina Makienko; +Cc: David S. Miller, linux-ide, linux-kernel, ldv-project

On Thu,  9 Aug 2012 17:55:20 +0400
Marina Makienko <makienko@ispras.ru> wrote:

> The function blk_get_request() can return NULL in some cases. There are
> checks on it if function is called with argumetns one of which is
> GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
> blk_get_request() return NULL.

drivers/ide is obsolete and scheduled for removal. I'm not sure messing
with it is remotely useful at this point ?

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail()
  2012-08-09 14:13 ` [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Alan Cox
@ 2012-08-09 21:49   ` David Miller
  2012-08-17 17:00   ` Sergei Shtylyov
  1 sibling, 0 replies; 13+ messages in thread
From: David Miller @ 2012-08-09 21:49 UTC (permalink / raw)
  To: alan; +Cc: makienko, linux-ide, linux-kernel, ldv-project

From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Thu, 9 Aug 2012 15:13:42 +0100

> On Thu,  9 Aug 2012 17:55:20 +0400
> Marina Makienko <makienko@ispras.ru> wrote:
> 
>> The function blk_get_request() can return NULL in some cases. There are
>> checks on it if function is called with argumetns one of which is
>> GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
>> blk_get_request() return NULL.
> 
> drivers/ide is obsolete and scheduled for removal. I'm not sure messing
> with it is remotely useful at this point ?

Agreed, I'm not applying this stuff.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail()
  2012-08-09 14:13 ` [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Alan Cox
  2012-08-09 21:49   ` David Miller
@ 2012-08-17 17:00   ` Sergei Shtylyov
  1 sibling, 0 replies; 13+ messages in thread
From: Sergei Shtylyov @ 2012-08-17 17:00 UTC (permalink / raw)
  To: Alan Cox
  Cc: Marina Makienko, David S. Miller, linux-ide, linux-kernel, ldv-project

Hello.

On 09.08.2012 18:13, Alan Cox wrote:

> On Thu,  9 Aug 2012 17:55:20 +0400
> Marina Makienko <makienko@ispras.ru> wrote:

>> The function blk_get_request() can return NULL in some cases. There are
>> checks on it if function is called with argumetns one of which is
>> GFP_ATOMIC/GFP_NOIO/etc. If system couldn't find request
>> blk_get_request() return NULL.

> drivers/ide is obsolete and scheduled for removal.

    When it was scheduled for removal? I can't find an entry in 
Documentation/feature-removal-schedule.txt. And how can that be when there 
are still many unconverted drivers?

> I'm not sure messing with it is remotely useful at this point ?

    It's being maintained for bug fixes still, AFAIK.

MBR, Sergei


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-08-17 17:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 13:55 [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Marina Makienko
2012-08-09 13:55 ` [PATCH 04/13] ide: Potential null pointer dereference in ide_cdrom_reset() Marina Makienko
2012-08-09 13:55 ` [PATCH 05/13] ide: Potential null pointer dereference in ide_raw_taskfile() Marina Makienko
2012-08-09 13:55 ` [PATCH 06/13] ide: Potential null pointer dereference in generic_ide_resume() Marina Makienko
2012-08-09 13:55 ` [PATCH 07/13] ide: Potential null pointer dereference in ide_cmd_ioctl() Marina Makienko
2012-08-09 13:55 ` [PATCH 08/13] ide: Potential null pointer dereference in ide_devset_execute() Marina Makienko
2012-08-09 13:55 ` [PATCH 09/13] ide: Potential null pointer dereference in set_multcount() Marina Makienko
2012-08-09 13:55 ` [PATCH 10/13] ide: Potential null pointer dereference in ide_cd_queue_pc() Marina Makienko
2012-08-09 13:55 ` [PATCH 11/13] ide: Potential null pointer dereference in idetape_queue_rw_tail() Marina Makienko
2012-08-09 13:55 ` [PATCH 12/13] ide: Potential null pointer dereference in issue_park_cmd() Marina Makienko
2012-08-09 14:13 ` [PATCH 03/13] ide: Potential null pointer dereference in ide_queue_pc_tail() Alan Cox
2012-08-09 21:49   ` David Miller
2012-08-17 17:00   ` Sergei Shtylyov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.