Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NSIG/_NSIG sigset_t definition for 32 bit x86 in kernel head file

9 views
Skip to first unread message

Fengwei Yin

unread,
Oct 25, 2011, 5:50:03 AM10/25/11
to
Hi,
In arch/x86/include/asm/signal.h, _NSIG/NSIG and sigset_t definition don't match
for kernel (64, 8 bytes) and for user space (32, 4 bytes). But the
syscall rt_sigaction
checks the sigset size from user space. If it doesn't match sigset
size in kernel,
the syscall return failure.

I checked the glibc and it doesn't inherit the definition from kernel head file.
It use its own definition. So should these definition for user space
in kernel head be
removed and just let user space use its own definition?

I know it doesn't impact generic code because libc implementation
hides it. But what
about the libc (not glibc) implementation?

Regards
yfw
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majo...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
0 new messages