gdth: Prevent negative offsets in ioctl CVE-2009-3080
commit664179bfb83f35f3f9a09a8b2323666882244d35
authorDave Jones <davej@redhat.com>
Mon, 19 Oct 2009 23:55:13 +0000 (19 19:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 19:17:03 +0000 (8 11:17 -0800)
treee4a1b84118a2697c9410f4d11fabe9c11fdad641
parent9d4cf8bdc0b80550a2c7befff56b8f57acf0f9f7
gdth: Prevent negative offsets in ioctl CVE-2009-3080

commit 690e744869f3262855b83b4fb59199cf142765b0 upstream.

A negative offset could be used to index before the event buffer and
lead to a security breach.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/gdth.c