From df6d65b94bd1e7d202ab7595f800f10e6984a92e Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Mon, 30 Oct 2023 05:42:30 -0700 Subject: [PATCH 1/2] docs: fix hypercall argument for DUMP_FILE --- docs/source/reference/hypercall_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/reference/hypercall_api.md b/docs/source/reference/hypercall_api.md index 1aaf7216..9d8ef083 100644 --- a/docs/source/reference/hypercall_api.md +++ b/docs/source/reference/hypercall_api.md @@ -517,7 +517,7 @@ kafl_dump_file_t dump_file = { .bytes = 4096, .append = 0 }; -kAFL_hypercall(HYPERCALL_KAFL_DUMP_FILE, (uint64_t)buffer); +kAFL_hypercall(HYPERCALL_KAFL_DUMP_FILE, (uintptr_t)&dump_file); ``` ### `USER_FAST_ACQUIRE` From d77e97c92fee1b81b38f538c7ae923e855b118f6 Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Mon, 30 Oct 2023 06:20:48 -0700 Subject: [PATCH 2/2] update changelog --- .github/RELEASE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/RELEASE.md b/.github/RELEASE.md index 347fea77..f3bfab48 100644 --- a/.github/RELEASE.md +++ b/.github/RELEASE.md @@ -22,7 +22,7 @@ - Misc fixes (#213) - Linux kernel tutorial: use implicit IP filters from snapshot metadata: (https://intellabs.github.io/kAFL/reference/hypercall_api.html#range-submit) (#216) - +- Fix `DUMP_FILE` hypercall argument (#254) (Thanks @sangjun !) # 🧰 Behind the scenes