syzkaller/executor
Alexander Egorenkov c655ec77ca executor: fix endianness problem in internet checksum
csum_inet_update does not handle odd number of bytes
on big-endian architectures correctly. When calculating
the checksum of odd number of bytes, the last byte must be
interpreted as LSB on little-endian architectures and
as MSB on big-endian ones in a 16-bit half-word.

Futhermore, the checksum tests assume that the underlying architecture
is always little-endian. When a little-endian machine stores
a calculated checksum into memory, then the checksum's bytes
are automatically swapped. But this is NOT true on a big-endian
architecture.

Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
2020-06-19 20:49:11 +02:00
..
android executor: minor cleanup of android sandbox 2020-03-11 12:09:17 +01:00
common_akaros.h executor: fix do_sandbox_none on akaros and test 2019-01-31 11:35:53 +01:00
common_bsd.h sys/netbsd: support multiple vHCI buses (#1822) 2020-06-13 12:10:16 +02:00
common_fuchsia.h executor/fuchsia: Don't map memory as executable. 2020-06-05 16:46:48 -03:00
common_kvm_amd64.h executor: prevent non-null expected warnings 2019-03-21 13:27:41 +01:00
common_kvm_arm64.h executor: prevent non-null expected warnings 2019-03-21 13:27:41 +01:00
common_linux.h executor: Improve used terminology 2020-06-15 09:56:18 +02:00
common_test.h executor: make syz_compare output more handy to use 2019-12-20 16:45:33 +01:00
common_usb_linux.h executor: add support for USB fuzzing on NetBSD 2020-05-19 23:07:55 +02:00
common_usb_netbsd.h sys/netbsd: support multiple vHCI buses (#1822) 2020-06-13 12:10:16 +02:00
common_usb.h executor: add support for USB fuzzing on NetBSD 2020-05-19 23:07:55 +02:00
common_windows.h executor: fix do_sandbox_none on akaros and test 2019-01-31 11:35:53 +01:00
common.h executor: fix endianness problem in internet checksum 2020-06-19 20:49:11 +02:00
executor_akaros.h executor: change syscall argument type to intptr_t 2019-05-07 08:48:35 +02:00
executor_bsd.h sys/netbsd: support multiple vHCI buses (#1822) 2020-06-13 12:10:16 +02:00
executor_fuchsia.h executor/fuchsia: Don't map memory as executable. 2020-06-05 16:46:48 -03:00
executor_linux.h executor: surround the data mapping with PROT_NONE pages 2020-04-18 14:43:29 +02:00
executor_test.h executor: change syscall argument type to intptr_t 2019-05-07 08:48:35 +02:00
executor_windows.h executor: change syscall argument type to intptr_t 2019-05-07 08:48:35 +02:00
executor.cc executor: Improve used terminology 2020-06-15 09:56:18 +02:00
gen.go executor: enable KVM generator only on AMD64 arch 2020-06-17 17:43:56 +02:00
kvm_gen.cc executor: remove unused kvm_asm64_vm86 2019-01-17 10:52:20 +01:00
kvm.h sys: improve kvm description 2017-01-28 19:58:31 +01:00
kvm.S executor: remove unused kvm_asm64_vm86 2019-01-17 10:52:20 +01:00
kvm.S.h executor: remove unused kvm_asm64_vm86 2019-01-17 10:52:20 +01:00
nocover.h executor: Protect the coverage buffer 2019-06-04 16:24:36 +02:00
stub.go .golangci.yml: enable godot checker 2020-06-05 12:23:19 +02:00
test_linux.h executor: overhaul 2018-07-24 12:04:27 +02:00
test.h executor: fix endianness problem in internet checksum 2020-06-19 20:49:11 +02:00