CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2010/07/09 20:52:38

Modified files:
        sys/scsi       : scsi_ioctl.c 

Log message:
Limit SCIOCCOMMAND and ATAIOCCOMMAND requests to transferring MAXPHYS
bytes worth of data.  Also, pass M_CANFAIL to malloc(9) and handle
allocation failures by returning ENOMEM.

Prevents user space from causing a kernel panic by passing
ridiculously large datalen values.

ok dlg@, krw@

Reply via email to