mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 03:19:51 +00:00
3e8f6c2755
fail()'s are often used during the validation of kernel reactions to queries that were issued by pseudo syscalls implementations. As fault injection may cause the kernel not to succeed in handling these queries (e.g. socket writes or reads may fail), this could ultimately lead to unwanted "lost connection to test machine" crashes. In order to avoid this and, on the other hand, to still have the ability to signal a disastrous situation, the exit code of this function now depends on the current context. All fail() invocations during system call execution with enabled fault injection lead to termination with zero exit code. In all other cases, the exit code is kFailStatus. This is achieved by introduction of a special thread-specific variable `current_thread` that allows to access information about the thread in which the current code is executing. Also, this commit eliminates current_cover as it is no longer needed. |
||
---|---|---|
.. | ||
android | ||
common_akaros.h | ||
common_bsd.h | ||
common_fuchsia.h | ||
common_kvm_amd64.h | ||
common_kvm_arm64.h | ||
common_linux.h | ||
common_test.h | ||
common_usb_linux.h | ||
common_usb_netbsd.h | ||
common_usb.h | ||
common_windows.h | ||
common.h | ||
executor_akaros.h | ||
executor_bsd.h | ||
executor_fuchsia.h | ||
executor_linux.h | ||
executor_test.h | ||
executor_windows.h | ||
executor.cc | ||
gen.go | ||
kvm_gen.cc | ||
kvm.h | ||
kvm.S | ||
kvm.S.h | ||
nocover.h | ||
stub.go | ||
style_test.go | ||
test_linux.h | ||
test.h |