EverLive wurde in der Version v2.0.2 veröffentlicht - kurz nach dem Hotfix v2.0.1.
EverLive ist ein Open-Source-Userspace-Treiber für die Capture-Karte AVerMedia Live Gamer 4K (GC573), mit dem sich PlayStation 5, Xbox oder Switch auf dem Linux-Desktop spielen und streamen lassen.
Das Update bringt umfangreiches Security Hardening (private Runtime-Verzeichnisse, keine Shell-Aufrufe mehr im Display-Audio, VFIO-Rechte pro Karte) und behebt einen Deadlock im V4L2-Preload-Shim, der v4l2-ctl, OBS und Discord hängen lassen konnte.
Änderungen in Version v2.0.2:
Security
- Private runtime directories, sockets and shared memory: control-socket resolution now centralises the
$XDG_RUNTIME_DIR→/run/user/<euid>→/tmpfallback, validates every existing directory as a real0700directory owned bygeteuid(), rejects symlinks, and creates missing fallback directories underumask(077). Foreign or permissive paths abort startup with an actionable error instead of being silently reused. Lock files are openedO_NOFOLLOWand ownership-checked; the GC570D legacy socket now verifiesSO_PEERCRED;reinitand rawactiondebug commands requireEVERLIVE_DEBUG_CONTROL=1in the daemon environment; and frame-store shm is accepted only when it is a0600object owned by the engine UID. Added runtime-dir, lock, peer-credential and shm ownership/mode tests.- Display audio no longer executes a shell:
everlive_displayspawnspw-loopback,arecord,pw-playandwpctlthroughposix_spawnpwith argv arrays instead ofpopen,systemorexecl("/bin/sh", "-c", …). PipeWire node IDs are validated as decimaluint32values and node names against a conservative[A-Za-z0-9._:+-]allowlist before any exec, so a hostilenode.name(for example1; touch /tmp/pwned) cannot execute anything. Audio routing failures are logged and never stall the video path.- VFIO permissions are now scoped per card: binding uses subsystem-qualified udev rules and a shared
everlive-vfio-bindhelper. Only the matched card’s/dev/vfio/<iommu_group>is set toroot:video 0660;/dev/vfio/vfiois handled by one generic container rule, and unrelated VFIO group nodes are no longer touched. The broadSUBSYSTEM=="vfio"rule andTAG+="uaccess"were removed. GC573 and GC570D cannot claim each other, andvfio-pci/new_idplus the globaloptions vfio-pci ids=binding were replaced bydriver_overrideand per-BDF bind.- Bounded memlock instead of unlimited:
LimitMEMLOCK=infinityand the unlimitedlimits.dfiles were removed.cap_ipc_lock=+epis applied to every installed engine, including HWS, and a bounded 1 GiB fallback withLimitMEMLOCK=1Gdrop-ins is installed only whensetcapis unavailable.- User-unit hardening (safe subset):
everlive.service,opengc570d-userd.service, and the Hub-generated fallback unit now restrict address families toAF_UNIX,AF_INET, andAF_INET6, run withSystemCallArchitectures=nativeandSystemCallFilter=@system-service, and enableLockPersonality=yesplusRestrictSUIDSGID=yes.systemd-analyze security --offline=yeson systemd 262.2 improves both units from 9.4 to 7.2.NoNewPrivileges=and filesystem namespacing remain off because they would disable thecap_ipc_lock=+epVFIO pinning path; a per-userLimitMEMLOCK=cannot raise the user manager’s hard limit either.- Trusted helpers, installer supply chain & CI hardening: validated
pkexechelpers, PCI BDFs and V4L2 arguments (#147); pinnedlsfg-vkand releasePKGBUILDchecksums (#146); pinned GitHub Actions to commit SHAs with least-privilege permissions,actionlint, and Dependabot (#148); addeddocs/THREAT_MODEL.mdand updatedSECURITY.md/CONTRIBUTING.md(#149).Fixed
- V4L2 preload deadlock with a live frame store: the shared frame store called the interposed
fstat()(and could recurse throughmmap()/close()) while the preload shim held its global mutex, soVIDIOC_QUERYCAP- and thereforev4l2-ctl, OBS and Discord - could hang forever as soon as/dev/shm/*_v4l2_shmexisted. Frame-store metadata now uses rawfstat/mmap/munmap/closesyscalls,VIDIOC_DQBUFdrops the shim lock around a blockingpoll(),O_NONBLOCKis honoured with an immediateEAGAIN, andread()/pread()are interposed for virtual fds. Added timeout-guarded regression tests for live-store QUERYCAP, non-blocking DQBUF and full-frame reads (#163), alongside preload threading and buffer lifecycle hardening (#155).- Frame store v2, VFIO & engine concurrency hardening: corrected odd/even seqlock critical sections and ABI ownership in the frame store (
#156); bounded VFIO DMA teardown, preservederrno, and validated BAR0 (#157); hardenedeverlive_displayV4L2 capture lifecycle and device discovery (#158); hardened signal handling, I2C, audio, EDID and OSD parsing (#161); and added full-core sanitizer instrumentation with expanded TSan coverage (#159).- Console Hub & recorder: fixed PiP
QImagelifetime and Qt-safe signal shutdown (#150); added optionalgpu-screen-recorderviewport capture, VAAPI PiP overlay, and monitor-Hz FPS options (#151).Removed
- Removed the unused binary-patching helpers from
tools/. EverLive ships only source-built components; no released library is modified after build. CI now rejects patch tooling, backup files and compiled binaries in the tree.- Display audio probing no longer needs Python or shell text parsing:
pw-dump Nodeis parsed natively (jsmn) intools/everlive/everlive_audio_probe.cinstead ofpython3 -c,wpctl status | awkandpactl list sink-inputs. Thepactlfallback was dropped because the pipeline already requires PipeWire (pw-loopback/pw-play); CI now rejects shell execution in the display audio path. The ALSA fallback usesplughw:forhw:devices instead of retrying twoarecordinvocations through the shell.

Quelle: GitHub