syzkaller/executor
Alexander Egorenkov 49ad2baf8c executor: forbid inlining of 'remove_dir'
Fixes the issue with gcc 10 on Fedora 32 s390x:

In file included from ../../executor/executor.cc:147:
../../executor/common.h: In function ‘void remove_dir(const char*)’:
../../executor/common.h:229:44: error: ‘%s’ directive output may be
truncated writing up to 255 bytes into a region of size between 0 and 4095 [-Werror=format-truncation=]
229 | snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name);
| ^~
../../executor/common.h:229:11: note: ‘snprintf’ output between 2 and 4352 bytes into a destination of size 4096
229 | snprintf(filename, sizeof(filename), "%s/%s", dir, ep->d_name);

../../executor/common.h:243:1: error: the frame size of 21200 bytes is larger than 16384 bytes
[-Werror=frame-larger-than=]
243 | }
| ^
cc1plus: all warnings being treated as errors

compiler invocation: gcc [-o /tmp/syz-executor383272105 -DGOOS_test=1 -DGOARCH_64_fork=1 -DHOSTGOOS_linux=1
../../executor/executor.cc -m64 -no-pie -O2 -pthread -Wall -Werror -Wparentheses
-Wunused-const-variable -Wframe-larger-than=16384]
FAIL
FAIL github.com/google/syzkaller/pkg/runtest 0.998s
FAIL

Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
2020-09-18 09:58:50 +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 executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_fuchsia.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_kvm_amd64.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_kvm_arm64.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_linux.h executor: fix definition of __NR_io_uring_setup 2020-09-15 08:40:10 +02:00
common_test.h sys/test/test: add a hanging test 2020-09-12 13:03:27 +02:00
common_usb_linux.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_usb_netbsd.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00
common_usb.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +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: forbid inlining of 'remove_dir' 2020-09-18 09:58:50 +02:00
executor_akaros.h executor: change syscall argument type to intptr_t 2019-05-07 08:48:35 +02:00
executor_bsd.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +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: detect gvisor 2020-09-12 13:03:35 +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 sys/test/test: add a hanging test 2020-09-12 13:03:27 +02:00
gen.go executor: enable KVM generator only on AMD64 arch 2020-06-17 17:43:56 +02:00
kvm_gen.cc Makefile: enable clang-tidy in presubmit tests 2020-08-04 16:54:02 +02: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 all: fix marking of auto-generated files 2020-07-29 13:36:11 +02: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
style_test.go executor: fix definition of __NR_io_uring_setup 2020-09-15 08:40:10 +02:00
test_linux.h executor: add some code style checks 2020-08-06 15:27:41 +02:00
test.h executor: warn about C89-style var declarations 2020-08-14 09:40:08 +02:00