All of lore.kernel.org
 help / color / mirror / Atom feed
* media: ipu-bridge: lifetime of retained software-node properties
@ 2026-10-26  9:12 Ruslan Koreev
  2026-10-26 11:11 ` Fernando Rimoli
  0 siblings, 1 reply; 5+ messages in thread
From: Ruslan Koreev @ 2026-10-26  9:12 UTC (permalink / raw)
  To: Sakari Ailus, Dan Scally
  Cc: Hans de Goede, Andy Shevchenko, Rillian Grant, linux-media

Hi Sakari, Dan,

While moving the LM3643 board description into ipu-bridge, I noticed an
existing property lifetime issue in media next d7e7bca71698.

The bridge deliberately keeps its software-node graph after module unload,
but link-frequencies still points at cfg->link_freqs in module storage.
The lens-focus property name is also a module string literal.
software_node_register() retains these pointers without copying them.

This predates my local flash integration, whose new nodes own their backing
storage. This finding is from source review; I have not yet tested unloading
a populated sensor graph.

I propose a separate media fix that copies the remaining names and values
into graph-owned storage, with a VM unload/reload test. Would you prefer
that as a prerequisite to the flash integration, or handled independently?

Regards,
Ruslan

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

end of thread, other threads:[~2026-10-27 19:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26  9:12 media: ipu-bridge: lifetime of retained software-node properties Ruslan Koreev
2026-10-26 11:11 ` Fernando Rimoli
2026-10-26 17:19   ` D. Manresa
2026-10-27 14:30     ` Ruslan Koreev
2026-10-27 19:21       ` D. Manresa

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.