mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Fix dma_fence use after free regression
@ 2026-09-09 13:14 Christian König
  2026-09-09 13:14 ` [PATCH 1/2] dma-buf/dma-fence: fix checking signaling bit for timeline and driver name Christian König
  2026-09-09 13:14 ` [PATCH 2/2] drm/sched: document the RCU dependency Christian König
  0 siblings, 2 replies; 6+ messages in thread
From: Christian König @ 2026-09-09 13:14 UTC (permalink / raw)
  To: phasta, malhyuk97, tursulin, matthew.brost, dakr
  Cc: dri-devel, linux-kernel, mdaenzer, alessio.belle, luigi.santivetti

Hi everyone,

as discussed in a separate thread Jonghyuk Kim(MalHyuk) stumbled over an
use after free which we through should have already been fixed last
year.

Turned out that a recent patch regressed that by limiting the check to
the ops pointer instead of checking both ops and signaling status of a
dma_fence.

Fix this and also add a few lines of comments to drm_sched_fini() to
document the necessity of an RCU barriere after signaling the last
drm_sched_fence object.

Please review and comment,
Christian.


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

end of thread, other threads:[~2026-09-09 13:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-09 13:14 Fix dma_fence use after free regression Christian König
2026-09-09 13:14 ` [PATCH 1/2] dma-buf/dma-fence: fix checking signaling bit for timeline and driver name Christian König
2026-09-09 13:58   ` Philipp Stanner
2026-09-09 13:14 ` [PATCH 2/2] drm/sched: document the RCU dependency Christian König
2026-09-09 13:55   ` Philipp Stanner
2026-09-09 13:57     ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®