On 12/4/23 02:01, liujing wrote:
in the main function of vdso_restorer.c,there is a dlopen function,
but there is no dlclose function to close the file
Explain the change this patch is making in addition to describing
the problem. Also tell me how you found this problem.
Signed-off-by: liujing <liujing@xxxxxxxxxxxxxxxxxxxx>
---
tools/testing/selftests/x86/vdso_restorer.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/testing/selftests/x86/vdso_restorer.c b/tools/testing/selftests/x86/vdso_restorer.c
index fe99f2434155..a0b1155dee31 100644
--- a/tools/testing/selftests/x86/vdso_restorer.c
+++ b/tools/testing/selftests/x86/vdso_restorer.c
@@ -57,6 +57,8 @@ int main()
return 0;
}
+ dlclose(vdso);
+
memset(&sa, 0, sizeof(sa));
sa.handler = handler_with_siginfo;
sa.flags = SA_SIGINFO;
thanks,
-- Shuah