diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-10 02:52:39 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2010-07-10 02:52:39 +0000 |
commit | 0714fc38b5528db42084bb9c3a0a34f226739187 (patch) | |
tree | f4d44ba192f1e06abbae86447c5aed27cefed8d1 /sbin | |
parent | 39a01e6a9fabc042f5f0cbc690235e62446158a9 (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