remarkable-linux/drivers/scsi/aacraid
Mark Salyzyn 090507157f [SCSI] aacraid: prevent copy_from_user() BUG!
Seen:

	kernel BUG at arch/i386/lib/usercopy.c:872

under a 2.6.18-8.el5 kernel. Traced it to a garbage-in/garbage-out
ioctl condition in the aacraid driver.

Adaptec's special ioctl scb passthrough needs to check the validity of
the individual scatter gather count fields to the maximum the adapter
supports. Doing so will have the side effect of preventing
copy_from_user() from bugging out while populating the dma buffers.
This is a hardening effort, issue was triggered by an errant version
of the management tools and thus the BUG should not be seen in the
field.

[jejb: fixed up compile failure]
Signed-off-by: Mark Salyzyn <aacraid@adaptec.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-07-12 08:22:24 -05:00
..
aachba.c [SCSI] aacraid: Add Power Management support 2008-05-02 13:06:44 -05:00
aacraid.h [SCSI] aacraid: Add Power Management support 2008-05-02 13:06:44 -05:00
commctrl.c [SCSI] aacraid: prevent copy_from_user() BUG! 2008-07-12 08:22:24 -05:00
comminit.c [SCSI] aacraid: Add Power Management support 2008-05-02 13:06:44 -05:00
commsup.c [SCSI] aacraid: Fix jbod operations scan issues 2008-05-02 13:06:09 -05:00
dpcsup.c Convert asm/semaphore.h users to linux/semaphore.h 2008-04-18 22:22:54 -04:00
linit.c [SCSI] aacraid: linit.c make aac_show_serial_number static 2008-06-05 09:23:44 -05:00
Makefile
nark.c [SCSI] aacraid: draw line in sand, sundry cleanup and version update 2007-07-27 09:13:28 -04:00
rkt.c [SCSI] aacraid: draw line in sand, sundry cleanup and version update 2007-07-27 09:13:28 -04:00
rx.c drivers: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:32 -04:00
sa.c drivers: Remove unnecessary inclusions of asm/semaphore.h 2008-04-18 22:16:32 -04:00
TODO