summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>2018-12-13 17:53:50 +0300
committerMichael S. Tsirkin <mst@redhat.com>2019-01-14 20:28:07 -0500
commit74ad7419489ddade8044e3c9ab064ad656520306 (patch)
tree6cb0e71ecb649c2b8061d85550d0c84098162e94 /scripts/objdiff
parentbf4dc0b2beebfd9338df7c0bcf473b356f67cf66 (diff)
downloadkernel-74ad7419489ddade8044e3c9ab064ad656520306.tar.gz
vhost: return EINVAL if iovecs size does not match the message size
We've failed to copy and process vhost_iotlb_msg so let userspace at least know about it. For instance before these patch the code below runs without any error: int main() { struct vhost_msg msg; struct iovec iov; int fd; fd = open("/dev/vhost-net", O_RDWR); if (fd == -1) { perror("open"); return 1; } iov.iov_base = &msg; iov.iov_len = sizeof(msg)-4; if (writev(fd, &iov,1) == -1) { perror("writev"); return 1; } return 0; } Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
d>SUNRPC: Add KDF-HMAC-SHA2Chuck Lever 2023-02-20SUNRPC: Add gk5e definitions for RFC 8009 encryption typesChuck Lever 2023-02-20SUNRPC: Add new subkey length fieldsChuck Lever 2023-02-20SUNRPC: Parametrize the key length passed to context_v2_alloc_cipher()Chuck Lever 2023-02-20SUNRPC: Clean up cipher set up for v1 encryption typesChuck Lever 2023-02-20SUNRPC: Hoist KDF into struct gss_krb5_enctypeChuck Lever 2023-02-20SUNRPC: Rename .encrypt_v2 and .decrypt_v2 methodsChuck Lever 2023-02-20SUNRPC: Remove ->encrypt and ->decrypt methods from struct gss_krb5_enctypeChuck Lever 2023-02-20SUNRPC: Enable rpcsec_gss_krb5.ko to be built without CRYPTO_DESChuck Lever 2023-02-20SUNRPC: Replace KRB5_SUPPORTED_ENCTYPES macroChuck Lever 2023-02-20SUNRPC: Remove another switch on ctx->enctypeChuck Lever 2023-02-20SUNRPC: Refactor the GSS-API Per Message calls in the Kerberos mechanismChuck Lever 2023-02-20SUNRPC: Obscure Kerberos integrity keysChuck Lever 2023-02-20SUNRPC: Obscure Kerberos signing keysChuck Lever 2023-02-20SUNRPC: Obscure Kerberos encryption keysChuck Lever 2023-02-20SUNRPC: Refactor set-up for aux_cipherChuck Lever 2023-02-20SUNRPC: Obscure Kerberos session keyChuck Lever 2023-02-20SUNRPC: Improve Kerberos confounder generationChuck Lever 2023-02-20SUNRPC: Remove .conflen field from struct gss_krb5_enctypeChuck Lever 2023-02-20SUNRPC: Remove .blocksize field from struct gss_krb5_enctypeChuck Lever