aeb3987683
This is based upon a report from Chris Torek and his initial patch. From Chris's report: -------------------- This came up in testing kgdb, using the built-in tests -- turn on CONFIG_KGDB_TESTS, then echo V1 > /sys/module/kgdbts/parameters/kgdbts -- but it would affect using kgdb if you were debugging and looking at bad pointers. -------------------- When we get a copy_{from,to}_user() request and the %asi is set to something other than ASI_AIUS (which is userspace) then we branch off to a routine called memcpy_user_stub(). It just does a straight memcpy since we are copying from kernel to kernel in this case. The logic was that since source and destination are both kernel pointers we don't need to have exception checks. But for what probe_kernel_{read,write}() is trying to do, we have to have the checks, otherwise things like kgdb bad kernel pointer accesses don't do the right thing. Signed-off-by: David S. Miller <davem@davemloft.net> |
||
---|---|---|
.. | ||
ashldi3.S | ||
ashrdi3.S | ||
atomic32.c | ||
atomic_32.S | ||
atomic_64.S | ||
bitext.c | ||
bitops.S | ||
blockops.S | ||
bzero.S | ||
checksum_32.S | ||
checksum_64.S | ||
clear_page.S | ||
cmpdi2.c | ||
copy_in_user.S | ||
copy_page.S | ||
copy_user.S | ||
COPYING.LIB | ||
csum_copy.S | ||
csum_copy_from_user.S | ||
csum_copy_to_user.S | ||
divdi3.S | ||
GENbzero.S | ||
GENcopy_from_user.S | ||
GENcopy_to_user.S | ||
GENmemcpy.S | ||
GENpage.S | ||
GENpatch.S | ||
iomap.c | ||
ipcsum.S | ||
ksyms.c | ||
libgcc.h | ||
locks.S | ||
lshrdi3.S | ||
Makefile | ||
mcount.S | ||
memcmp.S | ||
memcpy.S | ||
memmove.S | ||
memscan_32.S | ||
memscan_64.S | ||
memset.S | ||
mul.S | ||
muldi3.S | ||
NG2copy_from_user.S | ||
NG2copy_to_user.S | ||
NG2memcpy.S | ||
NG2page.S | ||
NG2patch.S | ||
NGbzero.S | ||
NGcopy_from_user.S | ||
NGcopy_to_user.S | ||
NGmemcpy.S | ||
NGpage.S | ||
NGpatch.S | ||
PeeCeeI.c | ||
rem.S | ||
rwsem_32.S | ||
rwsem_64.S | ||
sdiv.S | ||
strlen.S | ||
strlen_user_32.S | ||
strlen_user_64.S | ||
strncmp_32.S | ||
strncmp_64.S | ||
strncpy_from_user_32.S | ||
strncpy_from_user_64.S | ||
U1copy_from_user.S | ||
U1copy_to_user.S | ||
U1memcpy.S | ||
U3copy_from_user.S | ||
U3copy_to_user.S | ||
U3memcpy.S | ||
U3patch.S | ||
udiv.S | ||
udivdi3.S | ||
umul.S | ||
urem.S | ||
user_fixup.c | ||
VISsave.S | ||
xor.S |