summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-10 02:52:39 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2010-07-10 02:52:39 +0000
commit0714fc38b5528db42084bb9c3a0a34f226739187 (patch)
treef4d44ba192f1e06abbae86447c5aed27cefed8d1 /sbin
parent39a01e6a9fabc042f5f0cbc690235e62446158a9 (diff)
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@
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions