diff options
author | glebius <glebius@FreeBSD.org> | 2012-01-26 11:59:48 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-01-26 11:59:48 +0000 |
commit | 7900947bc5753da4e1cd11c973f438b5b58721ea (patch) | |
tree | da21e38138b7c4f0da32f18d3d36b6a3b2184b42 /sys/dev/mps/mpi/mpi2_tool.h | |
parent | f84b253d0e86e1ff545be806ad5e2cf702917b93 (diff) | |
download | FreeBSD-src-7900947bc5753da4e1cd11c973f438b5b58721ea.zip FreeBSD-src-7900947bc5753da4e1cd11c973f438b5b58721ea.tar.gz |
Although aio_nbytes is size_t, later is is signed to
casted types: to ssize_t in filesystem code and to
int in buf code, thus supplying a negative argument
leads to kernel panic later. To fix that check user
supplied argument in the beginning of syscall.
Submitted by: Maxim Dounin <mdounin mdounin.ru>, maxim@
Diffstat (limited to 'sys/dev/mps/mpi/mpi2_tool.h')
0 files changed, 0 insertions, 0 deletions