mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-13 08:04:45 +08:00
2257211942
Fix the error checking of the alignment adjustment code in
raw_copy_from_user(), which mistakenly considers it safe to skip the
error check when aligning the source buffer on a 2 or 4 byte boundary.
If the destination buffer was unaligned it may have started to copy
using byte or word accesses, which could well be at the start of a new
(valid) source page. This would result in it appearing to have copied 1
or 2 bytes at the end of the first (invalid) page rather than none at
all.
Fixes:
|
||
---|---|---|
.. | ||
ashldi3.S | ||
ashrdi3.S | ||
checksum.c | ||
clear_page.S | ||
cmpdi2.S | ||
copy_page.S | ||
delay.c | ||
div64.S | ||
divsi3.S | ||
ip_fast_csum.S | ||
lshrdi3.S | ||
Makefile | ||
memcpy.S | ||
memmove.S | ||
memset.S | ||
modsi3.S | ||
muldi3.S | ||
ucmpdi2.S | ||
usercopy.c |