Information on this bug is not very clear. What errata release? The error exists in 5.0. I just ran this code against processes on my machine, successfully killing root owned processes, as a non-priviledged user. I have updated from the lastest glibc rpms (11/17/98).
It's not a glibc bug - the bug is in the kernel, and it's fixed in the latest kernel errata for 4.2/5.0/5.1. *** This bug has been marked as a duplicate of 78 ***