BUG? a suspected race condition at dm_get_md()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi. I am reporting a suspected race bug
while I read md device driver in recent Linux code.

Please examine the code and let me know your opinion.

At dm_put(), the decrement of md->holders is synchronized by _minor_lock.
But in dm_get_md(), the increment of md->holders is not.
Therefore,  race condition between dm_get_md() and dm_put()
might be possible when md->holders == 1.

Since I do not have much background, I am not sure whether
it is real bug or not. But, please examine the code and let me
know your opinion. Thank you.

Sincerely
Shin Hong

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux