From: Arjan van de Ven <arjanv@redhat.com>
To: Andi Kleen <ak@suse.de>
Cc: Linus Torvalds <torvalds@osdl.org>,
Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH/RFC] Deprecate sysctl(2), add sysctl_name
Date: 11 Jul 2003 12:09:37 +0200 [thread overview]
Message-ID: <1057918176.5804.0.camel@laptop.fenrus.com> (raw)
In-Reply-To: <20030711091630.GA2707@wotan.suse.de>
[-- Attachment #1: Type: text/plain, Size: 605 bytes --]
> --- linux-2.5/kernel/sysctl.c 2003-07-04 23:52:20.000000000 +0200
> +++ linux-2.5-amd64/kernel/sysctl.c 2003-07-11 03:25:18.000000000 +0200
> @@ -823,7 +838,16 @@
>
> if (copy_from_user(&tmp, args, sizeof(tmp)))
> return -EFAULT;
> -
> +
> + if (tmp.nlen != 2 || tmp.name[0] != CTL_KERN ||
> + tmp.name[1] != KERN_VERSION) {
> + int i;
> + printk(KERN_INFO "%s: numerical sysctl ", current->comm);
> + for (i = 0; i < tmp.nlen; i++)
> + printk("%d ", tmp.name[i]);
> + printk("is obsolete.\n");
> + }
> +
> lock_kernel();
how about rate limiting this ?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2003-07-11 9:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-11 1:41 Andi Kleen
2003-07-11 2:35 ` Linus Torvalds
2003-07-11 3:24 ` Robert Love
2003-07-11 9:16 ` Andi Kleen
2003-07-11 10:09 ` Arjan van de Ven [this message]
2003-07-11 10:21 ` Andi Kleen
2003-07-12 20:09 ` Linus Torvalds
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=1057918176.5804.0.camel@laptop.fenrus.com \
--to=arjanv@redhat.com \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®