[Devel] [PATCH hci-8.1 0/2] vfio, exec: two mainline fixes that Oracle carries

Konstantin Khorenko khorenko at virtuozzo.com
Wed Nov 4 22:22:38 MSK 2026


On Wed, 14 Oct 2026 19:16:25 +0200, Konstantin Khorenko wrote:
> vfio, exec: two mainline fixes that Oracle carries
> 
> Two mainline fixes, independent of the MADV_DOEXEC series, found while
> comparing our tree with UEK8. Both are in linux-6.12.y as well and
> apply to the 211.52.1.22.x branch directly.
> 
> - 1: vfio_mig_get_next_state() spins forever under the driver's state
>   mutex when userspace asks for the blocked arc STOP_COPY -> PRE_COPY.
>   Reproduced with the mtty sample driver: a soft lockup before, EINVAL
>   after.
> - 2: do_close_on_exec() ran under exec_update_lock, so a FUSE daemon
>   that inspects the exec'ing process (for example /proc/PID/maps) from
>   its FLUSH handler deadlocked exec. Reproduced with a small FUSE
>   filesystem: a deadlock before, a normal exec after.
> 
> [...]

Applied to branch-rh10-6.12.0-211.52.1.22.x.vz10-ovz, will be released in rh10-6.12.0-211.52.1.22.18.vz10, thanks!

[1/2] ms/vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/8f215ebf4783
[2/2] ms/exec: do_close_on_exec() before taking exec_update_lock
      https://bitbucket.org/virtuozzocore/vzkernel.vzs/commits/0a91ee4f869b

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team




More information about the Devel mailing list