Skip to content
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

SEGV /src/njs/src/njs_vm.c in njs_vm_compile #456

Closed
gtt1995 opened this issue Jan 1, 2022 · 1 comment
Closed

SEGV /src/njs/src/njs_vm.c in njs_vm_compile #456

gtt1995 opened this issue Jan 1, 2022 · 1 comment
Assignees

Comments

@gtt1995
Copy link

gtt1995 commented Jan 1, 2022

poc https://github.com/gtt1995/poc/tree/main/njs

root@c525fa59cf24:/workspace/out-random/njs# ./njs_process_script_fuzzer crash-6342d917e3273eef2cd159c58e0f02f1a4bab05c
INFO: Running with entropic power schedule (0xFF, 100).
INFO: Seed: 1183854156
INFO: Loaded 1 modules (28625 inline 8-bit counters): 28625 [0x9b0f38, 0x9b7f09),
INFO: Loaded 1 PC tables (28625 PCs): 28625 [0x9b7f10,0xa27c20),
./njs_process_script_fuzzer: Running 1 inputs 1 time(s) each.

Running: crash-6342d917e3273eef2cd159c58e0f02f1a4bab05c
AddressSanitizer:DEADLYSIGNAL

==6271==ERROR: AddressSanitizer: SEGV on unknown address 0x000000001920 (pc 0x0000005a5c26 bp 0x7ffd9321e950 sp 0x7ffd9321e880 T0)
==6271==The signal is caused by a READ memory access.
SCARINESS: 20 (wild-addr-read)
#0 0x5a5c26 in njs_vm_compile /src/njs/src/njs_vm.c
#1 0x59006e in njs_process_script /src/njs/src/njs_shell.c:877:11
#2 0x59006e in LLVMFuzzerTestOneInput /src/njs/src/njs_shell.c:673:16
#3 0x52a5ee in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) /src/glibfuzzer/FuzzerLoop.cpp:605:15
#4 0x4d9c38 in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*, unsigned long) /src/glibfuzzer/FuzzerDriver.cpp:323:6
#5 0x4e7b49 in fuzzer::FuzzerDriver(int*, char***, int ()(unsigned char const, unsigned long)) /src/glibfuzzer/FuzzerDriver.cpp:856:9
#6 0x4d9287 in main /src/glibfuzzer/FuzzerMain.cpp:20:10
#7 0x7feac3d3b0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#8 0x41f9bd in _start (out-random/njs/njs_process_script_fuzzer+0x41f9bd)

DEDUP_TOKEN: njs_vm_compile--njs_process_script--LLVMFuzzerTestOneInput
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /src/njs/src/njs_vm.c in njs_vm_compile
==6271==ABORTING

@xeioex xeioex self-assigned this Jan 10, 2022
@xeioex
Copy link
Contributor

xeioex commented Jan 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants