Upstream issue: sdl: Broken on Nvidia + Linux with USE_ISOLATION=1 · Issue #178 · LekKit/RVVM · GitHub
The driver for a whatever reason opens /, then duplicates this fd and closes both. At least, the driver shouldn’t do that. (because, for example, it’s probably a performance bottleneck)
It breaks applications that isolate themselves, for example if an application (like rvvm) isolates itself with a seccomp filter that returns -EPERM for useless system calls (like open/at), then those system calls will fail with this error. And if the nvidia driver can’t open /, it will silently crash.
^^^ This is about OpenGL.
Also, with vulkan, the driver tries to open /dev/nvidiactl (or/and /dev/nvidia0?) every frame. But unlike OpenGL, it does not crash if it fails to open.
(Vulkan) With seccomp:
Without seccomp:
nvidia-bug-report.log.gz (2.5 MB)