psys: r78 writes to struct ipu7_bus_device fields absent from the in-kernel intel_ipu7 (ABI break for DKMS builds)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- c
- Ambito
- operating-systems
Direzione di ricerca
Inizia leggendo drivers/media/pci/intel/ipu7/ipu7-bus.h, ipu7_psys_probe() e ipu_psys_task_request(), quindi confronta il layout della struct utilizzato da intel_ipu7 con quello del modulo psys DKMS. Riproduci il dispositivo /dev/ipu7-psys0 mancante sulle versioni del kernel indicate. Il lavoro è completato quando i moduli gestiscono in modo sicuro una incompatibilità dell’interfaccia e psys esegue correttamente il probe oppure segnala un errore chiaro.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Since the 2026-06-29 drop (0e8c71a, released as r76/r78), the out-of-tree psys driver is ABI-incompatible with an in-kernel intel_ipu7, and the failure is silent: /dev/ipu7-psys0 never appears and the RGB camera is gone.
The change
0e8c71a appends two fields to struct ipu7_bus_device in drivers/media/pci/intel/ipu7/ipu7-bus.h:
struct mutex acquire_fw_task_buffer_lock;
unsigned int (*get_running_fw_task_count)(struct ipu7_bus_device *adev);
ipu7_psys_probe() writes to the second:
adev->get_running_fw_task_count = ipu7_psys_get_running_fw_task_count;
and ipu_psys_task_request() takes the new mutex.
Why that breaks
struct ipu7_bus_device is allocated by intel_ipu7. On any distro shipping the staging intel_ipu7 with the kernel while psys comes from DKMS, the two disagree about the struct:
intel_ipu7 kernel/drivers/staging/media/ipu7/intel-ipu7.ko.zst
intel_ipu7_psys updates/dkms/intel-ipu7-psys.ko.zst
The kernel allocated the shorter struct; the DKMS psys was compiled against the longer one. So the probe-time assignment writes past the end of the allocation, and the mutex lock operates on memory that is not a mutex.
Verified against the running kernel module: intel-ipu7.ko contains ipu7_bus_ready_to_probe — a field of the same struct — and zero occurrences of either new field.
Reproduced
Two machines, independently:
- Dell XPS 16 DA16260, Panther Lake, CachyOS 7.2.0-rc4 — pinned at r74 (
24d8923), works. r76 previously produced a runtimepsys_ioctlGPF here. - Dell (reporter), CachyOS 7.1.4 — r78,
/dev/ipu7-psys0MISSING after a clean rebuild and reboot,intel_ipu7_psysloaded, no RGB camera. Details in #26.
This affects every Arch/CachyOS user on a recent kernel, since the staging intel_ipu7 landed in-tree while psys did not.
Related, same root cause
ipu7_psys_probe() also begins:
if (!adev->isp->ipu7_bus_ready_to_probe)
return -EPROBE_DEFER;
That is a read of a field on the same kernel-owned struct, and it fails the same way when the layouts disagree — psys defers forever while isys binds normally, because isys ships alongside intel_ipu7. That asymmetry makes the failure look selective and sends people debugging the wrong component entirely.
Suggestions
The out-of-tree psys reaching into a struct owned by a module it does not build alongside is fragile by construction. Options that would help:
- Version the interface. A version field or a size check on
struct ipu7_bus_device, so a mismatched psys refuses to probe with a clear message instead of corrupting memory. - Keep new state in psys.
get_running_fw_task_countand the FW-task mutex are psys concerns; storing them on the shared bus device is what creates the coupling. - Document the constraint. If the vendor tree is only supported when
intel_ipu7is also built from it, saying so in the README would save people a lot of time — the current failure gives no hint.
Happy to test patches; I have the hardware and a reproducer on two machines.
- Lingua principale
- C
- Stelle
- 14
- Fork
- 39
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di intel/ipu7-drivers
-
MSI Prestige 16 AI+ (Lunar Lake): OV5675 not probed — TPS68470 “No board-data found for this model”Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
intel/ipu7-drivers#115 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
intel/ipu7-drivers#111 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
intel/ipu7-drivers#102 · 4 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
intel/ipu7-drivers#92 · 1 commento ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
intel/ipu7-drivers#86 ·
Tutte le issue di intel/ipu7-drivers
Issue simili
-
GPU-UNLOCK RTX 4070 (2786) Gigabyte 1458:416C: cold boot AND warm reboot unlock, Ubuntu 26.04Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
JustAResearcher/gpu-unlock-ada#124 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
inflate: total_in uses plain += on c_ulong (32-bit on Windows), panics in debug for streams > 4 GiBAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
trifectatechfoundation/zlib-rs#570 · 1 commento ·
-
vim.filetype.match() prefixes a URL buffer name with the cwd before passing it to filetype functionsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
I maintainer di solito rispondono entro 1 giorno
-
compilation errorAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
COVESA/dlt-daemon#925 · 1 reazione ·