[S390] Add EX_TABLE for addressing exception in usercopy functions.
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Tue, 6 Oct 2009 08:34:14 +0000 (10:34 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 6 Oct 2009 08:35:10 +0000 (10:35 +0200)
commitaf9d2ff9afaae8040dbf09238b2579f92c93579e
tree61ceddb80062cae529b9c5a34cdf7a07566f1a30
parentea2a4d3a3a929ef494952bba57a0ef1a8a877881
[S390] Add EX_TABLE for addressing exception in usercopy functions.

This patch adds an EX_TABLE entry to mvc{p|s|os} usercopy functions that
may be called with KERNEL_DS. In combination with collaborative memory
management, kernel pages marked as unused may trigger an adressing exception
in the usercopy functions. This fixes an unhandled addressing exception bug
where strncpy_from_user() is used with len > strnlen and KERNEL_DS, crossing
a page boundary to an unused page.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/uaccess_mvcos.c
arch/s390/lib/uaccess_std.c