]> git.baikalelectronics.ru Git - kernel.git/commit
[IA64] Handle count==0 in sn2_ptc_proc_write()
authorCliff Wickman <cpw@sgi.com>
Tue, 24 Jun 2008 17:20:06 +0000 (10:20 -0700)
committerTony Luck <tony.luck@intel.com>
Tue, 24 Jun 2008 17:20:06 +0000 (10:20 -0700)
commite0127fc9499483388c550234f506c2532bd0d833
tree8ca93d3c7758953f468e5b25708d68dfd732b307
parent6bc1a9bf156f26f577d95a28c20cb5901156e7f5
[IA64] Handle count==0 in sn2_ptc_proc_write()

The fix applied in f676f417058065a8d1356e48d18d23dbd0897d6c
"security hole in sn2_ptc_proc_write" didn't take into account
the case where count==0 (which results in a buffer underrun
when adding the trailing '\0').  Thanks to Andi Kleen for
pointing this out.

Signed-off-by: Cliff Wickman <cpw@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/sn2/sn2_smp.c