summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/asr_utils.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2013-04-01 07:58:43 +0000
committerjsing <jsing@openbsd.org>2013-04-01 07:58:43 +0000
commitda6c711cfcac8bcb3f845df9034135ea08247bc9 (patch)
tree2bb980571620f1702b72a3d3ddd7bc59116b1fda /lib/libc/asr/asr_utils.c
parentsimpler and saner implementation for tcp_write(). now fully handles (diff)
downloadwireguard-openbsd-da6c711cfcac8bcb3f845df9034135ea08247bc9.tar.xz
wireguard-openbsd-da6c711cfcac8bcb3f845df9034135ea08247bc9.zip
Validate the I/O request when it is first received, rather than waiting
until disk I/O is performed. This avoids doing encryption for a write that has an invalid I/O request. Additionally sr_crypto_wu_get() can get the block number from the work unit, instead of decoding the SCSI command (and failing to handle the invalid case). ok krw@
Diffstat (limited to 'lib/libc/asr/asr_utils.c')
0 files changed, 0 insertions, 0 deletions