Messages in this thread | | | Date | Wed, 19 Feb 2014 14:07:50 -0800 (PST) | From | David Rientjes <> | Subject | Re: [PATCH] Set bounds on what /proc/self/make-it-fail accepts. |
| |
On Wed, 19 Feb 2014, Andrew Morton wrote:
> If we're touching the task_struct we could make it a bool. > > Or just a single bit(field). task_struct already has a bunch of > bitfields in it (strangely, they aren't contiguous). But some locking > would be needed if tasks-other-than-current can modify the bit. >
Or store to any adjacent bit in the word. I think the simplest solution is to use kstrtoint() and test for val == !!val since, as we all know, {simple,strict}_strto* is deprecated per checkpatch :)
| |