um: virtio_uml: Disallow modular build
authorJohannes Berg <johannes.berg@intel.com>
Tue, 8 Oct 2019 15:43:21 +0000 (17:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jan 2020 07:22:57 +0000 (08:22 +0100)
commitd8cdfd9bc1ef3f9d885b8f145b864c009a95e5f3
treeb08f5681c1388b749ccd04101c9cff1d5b33cd2d
parent0efee942c6bc09ebeb152402ec2f60989dce2803
um: virtio_uml: Disallow modular build

commit bf9f80cf0ccab5f346f7d3cdc445da8fcfe6ce34 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/um/drivers/Kconfig
arch/um/drivers/virtio_uml.c