Re: [PATCH] Make /proc/slabinfo 0400
[Posted March 9, 2011 by jake]
| From: |
| Alan Cox <alan-AT-lxorguk.ukuu.org.uk> |
| To: |
| "Ted Ts'o" <tytso-AT-mit.edu> |
| Subject: |
| Re: [PATCH] Make /proc/slabinfo 0400 |
| Date: |
| Sun, 6 Mar 2011 13:19:55 +0000 |
| Message-ID: |
| <20110306131955.722d9bd5@lxorguk.ukuu.org.uk> |
| Cc: |
| Matt Mackall <mpm-AT-selenic.com>, Pekka Enberg <penberg-AT-kernel.org>,
Dan
Rosenberg <drosenberg-AT-vsecurity.com>,
Linus Torvalds
<torvalds-AT-linux-foundation.org>,
Dave Hansen <dave-AT-linux.vnet.ibm.com>, cl-AT-linux-foundation.org,
linux-mm-AT-kvack.org, linux-kernel-AT-vger.kernel.org,
Ingo Molnar <mingo-AT-elte.hu>, Andrew Morton <akpm-AT-linux-foundation.org> |
| Archive-link: |
| Article, Thread
|
> If we had wrappers for the most common cases, then any cases that were
> left that used copy_from_user() explicitly could be flagged and
> checked by hand, since they would be exception, and not the rule.
Arjan's copy_from_user validation code already does verification checks
on the copies using gcc magic.
Some of the others might be useful - kmalloc_from_user() is a fairly
obvious interface, a copy_from_user_into() interface where you pass
the destination object and its actual length as well is mostly covered by
Arjan's stuff.
Alan
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
(
Log in to post comments)