All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.1 0/2] vfio, exec: two mainline fixes that Oracle carries
@ 2026-10-14 17:16 Konstantin Khorenko
  2026-10-14 17:16 ` [Devel] [PATCH hci-8.1 1/2] ms/vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc Konstantin Khorenko
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Konstantin Khorenko @ 2026-10-14 17:16 UTC (permalink / raw)
  To: Vasileios Almpanis, Andrey Drobyshev, Pavel Tikhomirov; +Cc: devel

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.

Tested on a debug kernel: both reproducers, selftests/exec, a Container
start/exec/stop.

https://virtuozzo.atlassian.net/browse/VSTOR-150235

---
Jann Horn (1):
      ms/exec: do_close_on_exec() before taking exec_update_lock

Junrui Luo (1):
      ms/vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc

 drivers/vfio/vfio_main.c |  3 ++-
 fs/exec.c                | 22 ++++++++++++++--------
 2 files changed, 16 insertions(+), 9 deletions(-)
---
base-commit: defa968cbe8c38f1ff0231042dee07f00d27b2c9
change-id: 20261014-b4-prep-khorenko-vstor-149847-6-vfio-exec-ms-backports-0564f1b9331f

Best regards,
--  
Konstantin Khorenko <khorenko@virtuozzo.com>

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-04 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 17:16 [Devel] [PATCH hci-8.1 0/2] vfio, exec: two mainline fixes that Oracle carries Konstantin Khorenko
2026-10-14 17:16 ` [Devel] [PATCH hci-8.1 1/2] ms/vfio: prevent infinite loop in vfio_mig_get_next_state() on blocked arc Konstantin Khorenko
2026-10-14 17:34   ` no-reply
2026-10-14 17:16 ` [Devel] [PATCH hci-8.1 2/2] ms/exec: do_close_on_exec() before taking exec_update_lock Konstantin Khorenko
2026-10-14 17:35   ` no-reply
2026-11-04 19:22 ` [Devel] [PATCH hci-8.1 0/2] vfio, exec: two mainline fixes that Oracle carries Konstantin Khorenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.