From: ebiederm@xmission.com (Eric W. Biederman)
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sysctl: Deprecate sys_sysctl in a user space visible fashion.
Date: Tue, 28 Aug 2007 23:24:55 -0600 [thread overview]
Message-ID: <m18x7uc3q0.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <20070828214956.5f3020ef.akpm@linux-foundation.org> (Andrew Morton's message of "Tue, 28 Aug 2007 21:49:56 -0700")
Andrew Morton <akpm@linux-foundation.org> writes:
> On Tue, 28 Aug 2007 16:40:15 -0600 ebiederm@xmission.com (Eric W. Biederman)
> wrote:
>
>> +static int deprecated_sysctl_warning(struct __sysctl_args *args)
>> +{
>> + static int msg_count;
>> + int name[CTL_MAXNAME];
>> + int i;
>> +
>> + /* Read in the sysctl name for better debug message logging */
>> + for (i = 0; i < args->nlen; i++)
>> + if (get_user(name[i], args->name + i))
>> + return -EFAULT;
>> +
>> + /* Ignore accesses to kernel.version */
>> + if ((args->nlen == 2) && (name[0] == CTL_KERN) && (name[1] == KERN_VERSION))
>> + return 0;
>
> Do we want to do all the above if msg_count>=5?
Well. It won't really change order of the algorithm because we have
to read the data in any way. So an earlier short circuit exit
would speed things up by a little bit, but it really shouldn't
matter either way.
Eric
prev parent reply other threads:[~2007-08-29 5:25 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 22:40 Eric W. Biederman
2007-08-28 23:04 ` Christoph Hellwig
2007-08-28 23:53 ` Eric W. Biederman
2007-08-29 1:31 ` H. Peter Anvin
2007-08-29 1:56 ` Eric W. Biederman
2007-08-29 10:46 ` Alan Cox
2007-08-29 17:16 ` Eric W. Biederman
2007-08-29 17:28 ` H. Peter Anvin
2007-08-29 19:00 ` Eric W. Biederman
2007-08-30 12:13 ` Theodore Tso
2007-08-30 13:20 ` David Newall
2007-08-30 17:40 ` Eric W. Biederman
2007-08-29 22:51 ` Andrew Morton
2007-08-30 19:32 ` Rob Landley
2007-08-30 18:34 ` Christoph Hellwig
2007-08-30 18:57 ` Eric W. Biederman
2007-08-30 23:22 ` Rob Landley
2007-09-01 22:16 ` Andi Kleen
2007-09-02 8:44 ` Rob Landley
2007-09-02 8:54 ` H. Peter Anvin
2007-09-02 11:05 ` Rob Landley
2007-09-02 19:56 ` Eric W. Biederman
2007-09-02 20:00 ` Al Viro
2007-09-02 21:51 ` Eric W. Biederman
2007-09-03 8:37 ` Andi Kleen
2007-09-03 9:16 ` Al Viro
2007-08-29 4:49 ` Andrew Morton
2007-08-30 18:56 ` Jan Engelhardt
2007-08-29 4:49 ` Andrew Morton
2007-08-29 5:24 ` Eric W. Biederman [this message]
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=m18x7uc3q0.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=akpm@linux-foundation.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome