]> git.baikalelectronics.ru Git - kernel.git/commit
virt: vbox: Fix guest capabilities mask check
authorHans de Goede <hdegoede@redhat.com>
Thu, 9 Jul 2020 12:08:52 +0000 (14:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 11:40:19 +0000 (13:40 +0200)
commitd4c095a964535ac6247442a2cd5130081cd5892a
tree268cc127e5f93107afe0a1ebd0c19ad94fc86f5d
parentf6dc8f950843cfcf0f86c2177c92adccfc597275
virt: vbox: Fix guest capabilities mask check

Check the passed in capabilities against VMMDEV_GUEST_CAPABILITIES_MASK
instead of against VMMDEV_EVENT_VALID_EVENT_MASK.
This tightens the allowed mask from 0x7ff to 0x7.

Fixes: eb8c904d1c75 ("virt: Add vboxguest driver for Virtual Box Guest integration")
Cc: stable@vger.kernel.org
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200709120858.63928-3-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virt/vboxguest/vboxguest_core.c
drivers/virt/vboxguest/vmmdev.h