From: Eric Dumazet <dada1@cosmosbay.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Andi Kleen <ak@suse.de>, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] [RFC] Optimize select/poll by putting small data sets on the stack
Date: Wed, 04 Jan 2006 01:43:21 +0100 [thread overview]
Message-ID: <43BB1A29.7090102@cosmosbay.com> (raw)
In-Reply-To: <200601040028.40633.arnd@arndb.de>
Arnd Bergmann a écrit :
> Interestingly, doing a diff between sys_select and compat_sys_select
> in the current kernel seems to suggest that they are both buggy
> in that they miss checks for failing __put_user, but in /different/
> places.
And I would like to pinpoint that set_fd_set() implementation seems *buggy* :
It should not use __copy_to_user() but the real one (copy_to_user()) because
the calling thread could have slept in do_select() and another thread played
mm games during this sleep.
Eric
next prev parent reply other threads:[~2006-01-04 0:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-03 20:58 [PATCH] [RFC] Optimize select/poll by putting small data sets on the stack Andi Kleen
2006-01-03 22:14 ` Eric Dumazet
2006-01-03 23:05 ` Andi Kleen
2006-01-03 23:07 ` Eric Dumazet
2006-01-03 23:13 ` Andi Kleen
2006-01-03 22:22 ` Jesper Juhl
2006-01-03 23:07 ` Andi Kleen
2006-01-04 0:28 ` Arnd Bergmann
2006-01-04 0:33 ` Andi Kleen
2006-01-04 0:43 ` Eric Dumazet [this message]
2006-01-04 0:48 ` Andi Kleen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43BB1A29.7090102@cosmosbay.com \
--to=dada1@cosmosbay.com \
--cc=ak@suse.de \
--cc=arnd@arndb.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.