All of lore.kernel.org
 help / color / mirror / Atom feed
* Use of copy_from_user in msm_gem_submit.c while holding a spin_lock
@ 2016-08-17 11:40 ` Vaishali Thakkar
  0 siblings, 0 replies; 25+ messages in thread
From: Vaishali Thakkar @ 2016-08-17 11:40 UTC (permalink / raw)
  To: Rob Clark, David Airlie, linux-arm-msm, dri-devel, freedreno,
	linux-kernel, Julia Lawall

Hello,

I was wondering about the call to copy_from_user in function submit_lookup_objects for drive
/gpu/drm/msm/msm_gem_submit.c  It calls copy_from_user[1] in a spin_lock, which is not normally
allowed, due to the possibility of a deadlock.  

Is there some reason that I am overlooking why it is OK in this case? Is there some code in the
same file which ensures that page fault will not occur when we are calling the function holding
spin_lock?

Thank you.

[1] http://lxr.free-electrons.com/source/drivers/gpu/drm/msm/msm_gem_submit.c#L85

-- 
Vaishali
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2016-08-18 13:15 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-17 11:40 Use of copy_from_user in msm_gem_submit.c while holding a spin_lock Vaishali Thakkar
2016-08-17 11:40 ` Vaishali Thakkar
     [not found] ` <57B44D2E.2030301-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2016-08-17 15:08   ` Rob Clark
2016-08-17 15:08     ` Rob Clark
2016-08-17 17:08     ` Al Viro
     [not found]       ` <20160817170827.GC2356-3bDd1+5oDREiFSDQTTA3OLVCufUGDwFn@public.gmane.org>
2016-08-17 18:49         ` Rob Clark
2016-08-17 18:49           ` Rob Clark
     [not found]           ` <CAF6AEGtLVW-_PMhpb5YQX_vXfn5t=jH7Fe7R+1DbMaoWt6Cc1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-17 18:58             ` Rob Clark
2016-08-17 18:58               ` Rob Clark
2016-08-17 19:15             ` Al Viro
2016-08-17 19:15               ` Al Viro
2016-08-17 19:24               ` Rob Clark
2016-08-17 19:31                 ` Al Viro
2016-08-18  8:31                   ` Daniel Vetter
2016-08-18  8:31                     ` Daniel Vetter
2016-08-17 21:29               ` Rob Clark
2016-08-17 21:29                 ` Rob Clark
     [not found]                 ` <CAF6AEGsJ0scrJp_4Udh2PTxwZq6_poRZuDQYHF6UayFb1htT5Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-18  8:36                   ` Daniel Vetter
2016-08-18  8:36                     ` Daniel Vetter
2016-08-18 10:55                     ` Rob Clark
2016-08-18 10:55                       ` Rob Clark
2016-08-18 13:08                       ` Daniel Vetter
2016-08-18 13:08                         ` Daniel Vetter
2016-08-18 13:14                         ` Rob Clark
2016-08-18 13:14                           ` Rob Clark

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.