Re: a question regarding sys_poll() on x86_64 via tha ia32 layer

From: Andi Kleen
Date: Thu Sep 15 2011 - 13:44:16 EST


Eric Dumazet <eric.dumazet@xxxxxxxxx> writes:
>
> SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds,
> - long, timeout_msecs)
> + int, timeout_msecs)

The preferred fix is normally to write a compat wrapper that sign
extends.

Maybe someone on 64bit really wants to wait for a long time, but
not forever.

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/