[Xenomai-core] [PATCH] posix: Improve access checks in select

2009-05-07 Thread Jan Kiszka
[ Please pull from git://git.xenomai.org/xenomai-jki.git for-upstream ] Add missing range checks for select parameters and refactor the code. Signed-off-by: Jan Kiszka jan.kis...@siemens.com --- ksrc/skins/posix/syscall.c | 17 ++--- 1 files changed, 10 insertions(+), 7

[Xenomai-core] [PATCH][STABLE] posix: Fix access checks in select

2009-05-07 Thread Jan Kiszka
[ Please pull from git://git.xenomai.org/xenomai-jki.git for-2.4.x ] The test for __xn_access_ok was inverted, thus rejected valid requests. Fix this and refactor the code in order to check for the actual size of the passed fd sets. Signed-off-by: Jan Kiszka jan.kis...@siemens.com ---

Re: [Xenomai-core] [PATCH][STABLE] posix: Fix access checks in select

2009-05-07 Thread Gilles Chanteperdrix
Jan Kiszka wrote: [ Please pull from git://git.xenomai.org/xenomai-jki.git for-2.4.x ] The test for __xn_access_ok was inverted, thus rejected valid requests. Fix this and refactor the code in order to check for the actual size of the passed fd sets. Signed-off-by: Jan Kiszka

Re: [Xenomai-core] [PATCH][STABLE] posix: Fix access checks in select

2009-05-07 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: [ Please pull from git://git.xenomai.org/xenomai-jki.git for-2.4.x ] The test for __xn_access_ok was inverted, thus rejected valid requests. Fix this and refactor the code in order to check for the actual size of the passed fd sets.

Re: [Xenomai-core] [PATCH][STABLE] posix: Fix access checks in select

2009-05-07 Thread Jan Kiszka
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: [ Please pull from git://git.xenomai.org/xenomai-jki.git for-2.4.x ] The test for __xn_access_ok was inverted, thus rejected valid requests. Fix this and refactor the code in order to check for the actual size of the passed fd