From 22343af4ef8625de38ebba6b7c1758a27dabde73 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 22 Jul 2022 12:40:30 +0200 Subject: pkg/cover/backend/gvisor: relax parse regexp and add gvisor_test.go (#3259) We have multiple file path representations now. + tests to cover all 3 scenarios and doc update --- docs/gvisor/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'docs') diff --git a/docs/gvisor/README.md b/docs/gvisor/README.md index 63e353bda..fd996bb10 100644 --- a/docs/gvisor/README.md +++ b/docs/gvisor/README.md @@ -301,3 +301,24 @@ You can also adjust the args to `syz-execprog` in `config.json`. e.g., add } } ``` +## syzkaller way gVisor use + +To build specific gVisor ver: + +``` +git clone https://github.com/google/gvisor +git checkout be6ffa78e4df78df13d004a17f2a8833305285c4 +``` + +To build runsc: + +``` +bazel build --verbose_failures --collect_code_coverage --instrumentation_filter=//pkg/...,-//pkg/sentry/platform,-//pkg/ring0,-//pkg/coverage:coverage //runsc:runsc +``` + +To find runsc binary and get symbols + +``` +bazel aquery --collect_code_coverage --instrumentation_filter=//pkg/...,-//pkg/sentry/platform,-//pkg/ring0,-//pkg/coverage:coverage 'mnemonic("GoLink", //runsc:runsc)' +./bazel-out/k8-fastbuild-ST-a2b97ed4b8d6/bin/runsc/runsc_/runsc symbolize -all > symbolize_all_gvisor_be6ffa78e4df78df13d004a17f2a8833305285c4.txt +``` \ No newline at end of file -- cgit mrf-deployment