All of lore.kernel.org
 help / color / mirror / Atom feed
* UBIFS: possible bug for the absence of memory barrier
@ 2009-09-09 14:22 홍신 shin hong
  2009-09-09 14:35 ` Adrian Hunter
  0 siblings, 1 reply; 2+ messages in thread
From: 홍신 shin hong @ 2009-09-09 14:22 UTC (permalink / raw)
  To: linux-mtd

Hello. I am reporting the possible bugs caused by absence of memory barriers.

Since I do not have much background,
I can not convince that the codes are buggy.
But I hope that this report is helpful.
Please examine the issue and let me know your opinion.

In add_replay_bud() of UBIFS in Linux 2.6.30.5, it newly allocate a bud_entry
object and initialize and then link it to the replay_buds list.

The last initialization operation is "b->sqnum = sqnum ;" and
the linking to the list "list_add_tail(&b->list, &c->replay_buds;".

However, since there is no memory barrier between these two,
the execution order might be changed
so that uninitialized data might be accessible to other threads.

Therefore, race condition might occur and it may result error.

Please examine this issue.
Thank you

Sincerely
Shin Hong

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

end of thread, other threads:[~2009-09-09 14:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-09 14:22 UBIFS: possible bug for the absence of memory barrier 홍신 shin hong
2009-09-09 14:35 ` Adrian Hunter

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.