mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
The compat handler handles VDUSE_IOTLB_GET_FD and VDUSE_VQ_GET_INFO, but
then calls the native handler. Their different command sizes make native
dispatch return -ENOIOCTLCMD.
For GET_FD, this overwrites receive_fd()'s return value after the
descriptor is installed, leaking one fd per call. Return handled compat
results directly and use native dispatch only for other commands.
Fixes:
|
||
|---|---|---|
| .. | ||
| iova_domain.c | ||
| iova_domain.h | ||
| Makefile | ||
| vduse_dev.c | ||