Re: [PATCH v2] ARM: uaccess: Implement strict user copy checks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Boyd
Date: Wednesday, August 18, 2010 - 12:48 pm

On 08/18/2010 05:28 AM, Arnd Bergmann wrote:

Ok.

So the only sticking point now is that x86, parisc, and arm use warnings 
and errors but s390 only uses warnings. I guess I'll reword it to be:

	Enabling this option turns a certain set of sanity checks for
	user copy operations into compile time warnings/errors.

	The copy_from_user() etc checks are there to help test if there
	are sufficient security checks on the length argument of the
	copy operation, by having gcc prove that the argument is
	within bounds.

	If unsure, or if you run an older (pre 4.4) gcc where this
	option is a no-op, say N.

or I'll add a patch to make s390 trigger an error when this is enabled?

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] ARM: uaccess: Implement strict user copy checks, Russell King - ARM Linux, (Tue Aug 10, 3:55 pm)
Re: [PATCH v2] ARM: uaccess: Implement strict user copy checks, Stephen Boyd, (Wed Aug 18, 12:48 pm)