[grsec] pid randomization problem - process won't execute and will return zero value

Brad Spengler spender at grsecurity.net
Sun Aug 21 20:31:42 EDT 2005


On Sun, Aug 21, 2005 at 08:27:45PM -0400, Brad Spengler wrote:
> > P.S. Race condition (setpgid/waitpid) in bash?
> 
> That seems to be the issue, as I've been able to eliminate the 
> possibility of a pid reuse race, and even changed the lock in setpgid to 
> a writelock so that it cannot race at the kernel level with pid 
> selection, and /bin/false will eventually still return true.

Or rather, bash errors on not being able to set the pgid, stops 
forking/execing /bin/false, and then then evaluates 'time'.

-Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://grsecurity.net/pipermail/grsecurity/attachments/20050821/fead30ad/attachment.pgp


More information about the grsecurity mailing list