-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fuzz-unit-file
seems to fail as soon as it starts when being run under msan
#8474
Comments
I see it too now. |
The error is likely to be silenced by zeroing $ sudo python infra/helper.py reproduce systemd fuzz-unit-file ~/systemd/test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6886 -runs=1
Running: docker run --rm -i --privileged -v /home/vagrant/oss-fuzz/build/out/systemd:/out -v /home/vagrant/systemd/test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6886:/testcase -t gcr.io/oss-fuzz-base/base
-runner reproduce fuzz-unit-file -runs=100 -runs=1
+ DEBUGGER=
+ FUZZER=fuzz-unit-file
+ shift
+ TESTCASE=/testcase
+ '[' '!' -f /testcase ']'
+ export PATH=/out:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/out
+ PATH=/out:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/out
+ cd /out
+ /out/fuzz-unit-file -rss_limit_mb=2048 -timeout=25 -runs=100 -runs=1 /testcase
INFO: Seed: 3127249706
INFO: Loaded 2 modules (51132 inline 8-bit counters): 32527 [0x7f8fd45b3a49, 0x7f8fd45bb958), 18605 [0xe08248, 0xe0caf5),
INFO: Loaded 2 PC tables (51132 PCs): 32527 [0x7f8fd45bb958,0x7f8fd463aa48), 18605 [0xe0caf8,0xe555c8),
/out/fuzz-unit-file: Running 1 inputs 1 time(s) each.
Running: /testcase
Executed /testcase in 3 ms
***
*** NOTE: fuzzing was not performed, you have only
*** executed the target code on a fixed set of inputs.
*** |
This is fixed now. |
I've just rebuilt everything from scratch and run the test. The result was the same: ==9==WARNING: MemorySanitizer: use-of-uninitialized-value
#0 0x7ff12ed4b964 in trim_cb /work/build/../../src/systemd/src/basic/cgroup-util.c:726:13
#1 0x7ff12da573cc (/lib/x86_64-linux-gnu/libc.so.6+0xf93cc)
#2 0x7ff12da577fd (/lib/x86_64-linux-gnu/libc.so.6+0xf97fd)
#3 0x7ff12ed4af1e in cg_trim /work/build/../../src/systemd/src/basic/cgroup-util.c:744:13
#4 0x654b8d in manager_shutdown_cgroup /work/build/../../src/systemd/src/core/cgroup.c:2310:24
#5 0x4fe030 in manager_free /work/build/../../src/systemd/src/core/manager.c:1202:9
#6 0x4b47f5 in LLVMFuzzerTestOneInput /work/build/../../src/systemd/src/fuzz/fuzz-unit-file.c:77:1
#7 0x8aa543 in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/libfuzzer/FuzzerLoop.cpp:517:13
#8 0x8a7732 in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long, bool, fuzzer::InputInfo*, bool*) /src/libfuzzer/FuzzerLoop.cpp:442:3
#9 0x8b2019 in fuzzer::Fuzzer::ReadAndExecuteSeedCorpora(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, fuzzer::fuzzer_allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) /src/libfuzzer/FuzzerLoop.cpp:725:7
#10 0x8b2993 in fuzzer::Fuzzer::Loop(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, fuzzer::fuzzer_allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) /src/libfuzzer/FuzzerLoop.cpp:741:3
#11 0x877824 in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) /src/libfuzzer/FuzzerDriver.cpp:754:6
#12 0x862ad1 in main /src/libfuzzer/FuzzerMain.cpp:20:10
#13 0x7ff12d97e82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
#14 0x433e18 in _start (/out/fuzz-unit-file+0x433e18)
Uninitialized value was created by an allocation of 'fs' in the stack frame of function 'cg_unified_update'
#0 0x7ff12ed5c070 in cg_unified_update /work/build/../../src/systemd/src/basic/cgroup-util.c:2473 so I don't think it is fixed now. |
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd#8474.
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes #8474.
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd/systemd#8474. (cherry picked from commit f6c63f6)
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd/systemd#8474. (cherry picked from commit f6c63f6fc90040f0017a7cc37f3a05d5b86226d7)
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd/systemd#8474. (cherry picked from commit f6c63f6fc90040f0017a7cc37f3a05d5b86226d7)
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd/systemd#8474.
When `systemd` is run in the TEST_RUN_MINIMAL mode, it doesn't really set up cgroups, so it shouldn't try to remove anything. Closes systemd/systemd#8474.
I don't know why
OSS-Fuzz
hasn't reported this yet, so I'll leave it here:The text was updated successfully, but these errors were encountered: