Skip to content

Commit

Permalink
virt: vbox: Log unknown ioctl requests as error
Browse files Browse the repository at this point in the history
Every now and then upstream adds new ioctls without notifying us,
log unknown ioctl requests as an error to catch these.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Upstream Status: https://lore.kernel.org/lkml/20200520195440.38759-1-hdegoede@redhat.com/
  • Loading branch information
jwrdegoede authored and Josh Boyer committed Jul 29, 2020
1 parent 6e0fdae commit b8f3a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/virt/vboxguest/vboxguest_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ int vbg_core_ioctl(struct vbg_session *session, unsigned int req, void *data)
return vbg_ioctl_log(data);
}

vbg_debug("VGDrvCommonIoCtl: Unknown req %#08x\n", req);
vbg_err("Userspace made an unknown ioctl req %#08x\n", req);
return -ENOTTY;
}

Expand Down

0 comments on commit b8f3a17

Please sign in to comment.