Re: [PATCH] check user access ok writing /proc/irq/<pid>/smp_affinity

From: Paul Jackson <pj_at_sgi.com>
Date: 2003-11-27 16:29:13
David wrote:
> I see the problem, but the patch is incomplete: even after an
> access_ok()-check, you'll need to use __get_user() to access the
> buffer.

Right you are.  Too bad.  Just bolting an access_ok() on the
front of this code let me get away with not messing with the
existing code.

Keeping patches minimal is easier if they don't have to work ;).

As long as I have to mess with the 'R' parsing code anyway,
might as well use copy_from_user() and clean up these few lines
of code as best I can.

Another patch will be forthcoming.

-- 
                          I won't rest till it's the best ...
                          Programmer, Linux Scalability
                          Paul Jackson <pj@sgi.com> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Nov 27 00:30:31 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST