[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110306131955.722d9bd5@lxorguk.ukuu.org.uk>
Date: Sun, 6 Mar 2011 13:19:55 +0000
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: "Ted Ts'o" <tytso@....edu>
Cc: Matt Mackall <mpm@...enic.com>, Pekka Enberg <penberg@...nel.org>,
Dan Rosenberg <drosenberg@...curity.com>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Dave Hansen <dave@...ux.vnet.ibm.com>, cl@...ux-foundation.org,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
Ingo Molnar <mingo@...e.hu>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH] Make /proc/slabinfo 0400
> 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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists