All of lore.kernel.org
 help / color / mirror / Atom feed
* cpupools and locking
@ 2010-05-04 18:51 George Dunlap
  2010-05-04 21:52 ` Keir Fraser
  2010-05-05  5:25 ` Juergen Gross
  0 siblings, 2 replies; 5+ messages in thread
From: George Dunlap @ 2010-05-04 18:51 UTC (permalink / raw)
  To: xen-devel, Juergen Gross, Keir Fraser

Something seems not quite right about the cpupool locking... in
xen/common/cpupool.c:cpupool_do_domctl(), the cpupool_lock is only
held during the find for several operations.  Doesn't that mean that,
for instance, it's possible for someone to call CPUPOOL_OP_DESTROY,
while someone concurrently calls CPUPOOL_OP_INFO, such that in the
INFO case, the find succeeds, but the structure is shortly thereafter
freed by DESTROY, even though INFO code still has a pointer to it
which may be dereferenced?  I don't see any reference counting... am I
missing something?

 -George

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

end of thread, other threads:[~2010-05-05 11:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 18:51 cpupools and locking George Dunlap
2010-05-04 21:52 ` Keir Fraser
2010-05-05  5:25 ` Juergen Gross
2010-05-05  9:00   ` Keir Fraser
2010-05-05 11:07     ` Juergen Gross

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.