Re: two nasty races

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

 



On 05/17/2013 10:05 PM, Eric Blake wrote:
> I found root cause on two nasty races today, but ran out of time to
> write the patches until next week.
> 

> 
> 2. We have a (rare) deadlock due to the use of a non-async-signal-safe
> getpwuid_r in between fork and exec.

I was also surprised to learn today that getgid() is required to be
async-signal-safe, but the more powerful getregid() is not.  And guess
which one we use :(  But I think it is a bug in POSIX, so I filed this:
http://austingroupbugs.net/view.php?id=699

Also, some good news - we have previously remarked on this list that
strlen() and friends are surprisingly not required to be
async-signal-safe, but we went ahead and used them anyways.  Thankfully,
sanity has prevailed, and the next version of POSIX will require them to
be async-signal-safe:
http://austingroupbugs.net/view.php?id=692

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]