mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 21:46:46 +07:00
6dbfc19b7e
While working on implementing csum_ipv6_magic, I noticed that current version of ip_fast_csum will potentially return bits above "unsigned short" as 1. While no harm is done right now because all call sites will chop off the upper bits when it uses the return value. However, this is still dangerous and buggy. Here is a patch to enforce that the function really returns unsigned short in the native register format. The fix is free as there are plenty open slot to add one more asm instruction. Signed-off-by: Ken Chen <kenneth.w.chen@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> |
||
---|---|---|
.. | ||
carta_random.S | ||
checksum.c | ||
clear_page.S | ||
clear_user.S | ||
copy_page_mck.S | ||
copy_page.S | ||
copy_user.S | ||
csum_partial_copy.c | ||
do_csum.S | ||
flush.S | ||
idiv32.S | ||
idiv64.S | ||
io.c | ||
ip_fast_csum.S | ||
Makefile | ||
memcpy_mck.S | ||
memcpy.S | ||
memset.S | ||
strlen_user.S | ||
strlen.S | ||
strncpy_from_user.S | ||
strnlen_user.S | ||
xor.S |