lkml.org 
[lkml]   [2014]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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 :)


\
 
 \ /
  Last update: 2014-02-19 23:41    [W:0.051 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site