dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [RFC] deadlock in "drm/exynos: fix wrong pointer access at vm close"
@ 2013-09-22 21:29 Al Viro
  2013-09-23  7:49 ` Inki Dae
  0 siblings, 1 reply; 10+ messages in thread
From: Al Viro @ 2013-09-22 21:29 UTC (permalink / raw)
  To: YoungJun Cho; +Cc: dri-devel

	You have drm_dev->struct_mutex grabbed before ->mmap_sem in
exynos_drm_gem_mmap_ioctl() and after - in exynos_drm_gem_fault()
(since ->fault() is always called with ->mmap_sem held).  Looks like
a garden-variety AB-BA deadlock...

	Incidentally, what should happen if another process shares the
same opened file (e.g. inherited over fork()) and does mmap() just
as we have ->f_op switched?

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

end of thread, other threads:[~2013-09-28 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-22 21:29 [RFC] deadlock in "drm/exynos: fix wrong pointer access at vm close" Al Viro
2013-09-23  7:49 ` Inki Dae
2013-09-23 13:07   ` Al Viro
2013-09-24  4:41     ` Inki Dae
2013-09-26  3:26       ` Al Viro
2013-09-28 17:17         ` Inki Dae
2013-09-25  4:34     ` Inki Dae
2013-09-26  3:28       ` Al Viro
2013-09-28 17:47         ` Inki Dae
2013-09-28 17:50           ` Inki Dae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).