]> git.hungrycats.org Git - linux/commit
[PATCH] ia64: fix samp_affinity user-space accesses
authorPaul Jackson <pj@sgi.com>
Mon, 1 Dec 2003 05:13:14 +0000 (21:13 -0800)
committerDavid Mosberger <davidm@tiger.hpl.hp.com>
Mon, 1 Dec 2003 05:13:14 +0000 (21:13 -0800)
commit4fe5604fa18e86a3171038b836fe45cb25524403
tree2281038b7e1f901534e6f5df3fda92fd9d685b15
parent589bb6c273d50defd626c9990557abed368b02d4
[PATCH] ia64: fix samp_affinity user-space accesses

Here is a new improved patch for verifying user access to string
passed in to kernel on write to /proc/irq/<pid>/smp_affinity.

The access_ok() but missing __get_user() on each byte earlier patch
has been replaced with a copy_from_user().

I have built it and verified that it handles write requests
as before, on an ia64 system (well - you can no longer pass
more than 14 spaces after the 'R' - tough).
arch/ia64/kernel/irq.c