aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/virtio_uml.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2019-10-08 17:43:21 +0200
committerRichard Weinberger <richard@nod.at>2019-11-25 22:43:21 +0100
commitbf9f80cf0ccab5f346f7d3cdc445da8fcfe6ce34 (patch)
tree8172a032992eb1279e8ed81cba7138d126348a6a /arch/um/drivers/virtio_uml.c
parentum: virtio: Keep reading on -EAGAIN (diff)
downloadlinux-dev-bf9f80cf0ccab5f346f7d3cdc445da8fcfe6ce34.tar.xz
linux-dev-bf9f80cf0ccab5f346f7d3cdc445da8fcfe6ce34.zip
um: virtio_uml: Disallow modular build
This driver *can* be a module, but then its parameters (socket path) are untrusted data from inside the VM, and that isn't allowed. Allow the code to only be built-in to avoid that. Fixes: 5d38f324993f ("um: drivers: Add virtio vhost-user driver") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.co.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to '')
-rw-r--r--arch/um/drivers/virtio_uml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/virtio_uml.c b/arch/um/drivers/virtio_uml.c
index 76b97c2de9a8..023ced2250ea 100644
--- a/arch/um/drivers/virtio_uml.c
+++ b/arch/um/drivers/virtio_uml.c
@@ -4,12 +4,12 @@
*
* Copyright(c) 2019 Intel Corporation
*
- * This module allows virtio devices to be used over a vhost-user socket.
+ * This driver allows virtio devices to be used over a vhost-user socket.
*
* Guest devices can be instantiated by kernel module or command line
* parameters. One device will be created for each parameter. Syntax:
*
- * [virtio_uml.]device=<socket>:<virtio_id>[:<platform_id>]
+ * virtio_uml.device=<socket>:<virtio_id>[:<platform_id>]
* where:
* <socket> := vhost-user socket path to connect
* <virtio_id> := virtio device id (as in virtio_ids.h)