lkml.org 
[lkml]   [2013]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[PATCH 0/2] x86: unify / improve copy_*_user()
The first of these patches unifies copy_from_user(), thus making its
buffer size checking consistent between 32- and 64-bit.

The second one unifies copy_to_user(), at once adding similar
buffer size checking (to help avoiding information leaks).

1: x86: unify copy_from_user() size checking
2: x86: unify copy_to_user() and add size checking to it

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>

include/asm/uaccess.h | 98 +++++++++++++++++++++++++++++++++++++++++++++++
include/asm/uaccess_32.h | 29 -------------
include/asm/uaccess_64.h | 28 -------------
lib/usercopy_32.c | 8 +--
4 files changed, 101 insertions(+), 62 deletions(-)




\
 
 \ /
  Last update: 2013-10-21 11:21    [W:0.024 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site