diff options
author | Amit Shah <amit.shah@redhat.com> | 2010-09-14 11:56:16 +0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-09-21 05:24:01 +0400 |
commit | 65745422a898741ee0e7068ef06624ab06e8aefa (patch) | |
tree | adee25ae37886d79f8319ce69673a75036423c28 /drivers/char/tty_audit.c | |
parent | 6df7aadcd9290807c464675098b5dd2dc9da5075 (diff) | |
download | linux-65745422a898741ee0e7068ef06624ab06e8aefa.tar.xz |
virtio: console: Prevent userspace from submitting NULL buffers
A userspace could submit a buffer with 0 length to be written to the
host. Prevent such a situation.
This was not needed previously, but recent changes in the way write()
works exposed this condition to trigger a virtqueue event to the host,
causing a NULL buffer to be sent across.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
CC: stable@kernel.org
Diffstat (limited to 'drivers/char/tty_audit.c')
0 files changed, 0 insertions, 0 deletions