From 6900b4342370fb9d8e4b98b1950e0d614b12f976 Mon Sep 17 00:00:00 2001 From: Akira Moroo Date: Sun, 14 Dec 2025 11:08:46 +0900 Subject: [PATCH 1/3] misc: Update CITATION.cff Signed-off-by: Akira Moroo --- CITATION.cff | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/CITATION.cff b/CITATION.cff index 80107fe..1c6603e 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,3 +8,27 @@ title: "svc-hook" version: 0.1.0 date-released: 2025-10-17 url: "https://github.com/retrage/svc-hook" +preferred-citation: + type: "conference-paper" + title: "svc-hook: hooking system calls on ARM64 by binary rewriting" + authors: + - family-names: "Moroo" + given-names: "Akira" + orcid: "https://orcid.org/0009-0007-9762-3210" + - family-names: "Tazaki" + given-names: "Hajime" + orcid: "https://orcid.org/0000-0002-6524-2954" + - family-names: "Yasukata" + given-names: "Kenichi" + orcid: "https://orcid.org/0000-0002-7866-2245" + doi: "10.1145/3721462.3770771" + collection-title: "Proceedings of the 26th International Middleware Conference" + year: 2025 + month: 12 + start: 195 + end: 201 + keywords: + - "system call hook" + - "binary rewriting" + - "ARM64" + url: "https://doi.org/10.1145/3721462.3770771" From 3f302fa5b31bdedbc7c1ab2c5b18b15ac88b56c3 Mon Sep 17 00:00:00 2001 From: Akira Moroo Date: Sun, 14 Dec 2025 12:04:55 +0900 Subject: [PATCH 2/3] ci: Disable mseal Signed-off-by: Akira Moroo --- .github/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6f3319b..3717c15 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,7 +26,8 @@ jobs: make -C apps/basic clean make make -C apps/basic - LIBSVCHOOK=./apps/basic/libsvchook_basic.so LD_PRELOAD=./libsvchook.so ls | grep "output from hook_function" + /lib/ld-linux-aarch64.so.1 --list-tunables + GLIBC_TUNABLES=glibc.rtld.seal=0 LIBSVCHOOK=./apps/basic/libsvchook_basic.so LD_PRELOAD=./libsvchook.so ls | grep "output from hook_function" - name: Format run: | make fmt From 5bc2bba77fb37a54ad456c33d8bc4a9580564d54 Mon Sep 17 00:00:00 2001 From: Akira Moroo Date: Sun, 14 Dec 2025 14:53:31 +0900 Subject: [PATCH 3/3] main: Avoid vDSO Signed-off-by: Akira Moroo --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index 2f77e06..165ce4e 100644 --- a/main.c +++ b/main.c @@ -600,6 +600,10 @@ static void scan_code(void) { if (strstr(buf, "[stack]") != NULL) { continue; } + /* we do not touch vdso memory */ + if (strstr(buf, "[vdso]") != NULL) { + continue; + } int mem_prot = 0; int i = 0; char addr[65] = {0};