This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Fix struct siginfo
- To: Alan Cox <alan at lxorguk dot ukuu dot org dot uk>
- Subject: Re: Fix struct siginfo
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 19 Jan 2000 19:29:01 +0100
- Cc: Andreas Jaeger <aj at suse dot de>, torvalds at transmeta dot com, Chris Wing <wingc at engin dot umich dot edu>, libc-alpha at sourceware dot cygnus dot com, linux-kernel at vger dot rutgers dot edu
- References: <hoya9mi1ku.fsf@d251.suse.de> <E12Aw5j-0007ah-00@the-village.bc.nu>
On Wed, Jan 19, 2000 at 02:28:10PM +0000, Alan Cox wrote:
> > And glibc relied on thisall the time, have a look at
> > <bits/siginfo.h>:
>
> Oh jeez 8)
>
> > __uid_t si_uid; /* Real user ID of sending process. */
> > } _kill;
> >
> > With those older kernel we loose already with glibc :-(.
>
> Ok
>
> > What kind of old binaries? glibc 2.1 has externally 32bit uids - and
> > realtime signals (which use siginfo) are not supported by libc5 AFAIK.
>
> If libc5 doesnt support signinfo and glibc always relied on a couple of
> random numbrs being zero then ok. I hadn't realised that glibc was using
> the unsafe values directly and getting away with it..
I've merged my patch with Andreas' one, you can grab it from
ftp://ultra.linux.cz/OS/Linux/Local/linux-2.3.40-pre6-siginfo.patch.gz
I had to remove a few more things and as aj's patch is changing the layout
of kernel siginfo on i386, I had to modify the copy_siginfo_to_user routine
(well, simplify it).
Enjoy.
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.40 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________