]> git.baikalelectronics.ru Git - kernel.git/commit
x86, SGI UV: TLB shootdown using broadcast assist unit, v6
authorCliff Wickman <cpw@sgi.com>
Thu, 19 Jun 2008 16:16:24 +0000 (11:16 -0500)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 10:23:30 +0000 (12:23 +0200)
commita416b8ec879a73af104566afc4bb7e6d853aa7d9
treeb57124c7b03d7ac92ada52d5a783c4e0d8edcc8d
parent1c9428e942007e43ee8bc901c017ba82462bac2b
x86, SGI UV: TLB shootdown using broadcast assist unit, v6

v6: 6/19 close the security hole in uv_ptc_proc_write())

  > Found a potential security hole while doing that:
  > static ssize_t uv_ptc_proc_write(struct file *file, const char __user *user,
  >                              size_t count, loff_t *data)
  >     if (copy_from_user(optstr, user, count))
  >             return -EFAULT;
  >
  > is count guaranteed to never be larger than 64?

is fixed below.

It adds tlb_uv.o to the Makefile.

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Cc: mingo@elte.hu
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/tlb_uv.c