epoll_pwait x86 fix

Rich Felker dalias at aerifal.cx
Sat Jun 11 12:17:44 UTC 2011


On Sat, Jun 11, 2011 at 01:19:51AM -0400, Jason Woodward wrote:
> 

> >From 67ac68827bee211c4540b5d51e593c639764c5e3 Mon Sep 17 00:00:00 2001
> From: Jason Woodward <jason.woodward at timesys.com>
> Date: Sat, 11 Jun 2011 01:10:46 -0400
> Subject: [PATCH 2/3] epoll_pwait x86 fix
> 
> This prevents "memory input 7 is not directly addressable" errors.
[...]
> +    int nsig = _NSIG / 8;
>  	if (SINGLE_THREAD_P)
> -		return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, _NSIG / 8);
> +		return INLINE_SYSCALL(epoll_pwait, 6, epfd, events, maxevents, timeout, set, nsig);

I think the bug in the syscall macros should be fixed instead. There's
no legitimate reason they should reject non-lvalue arguments.

Rich


More information about the uClibc mailing list