From dad07434a85f2132c412c95cde4011157857df91 Mon Sep 17 00:00:00 2001 From: Eugene Syromyatnikov Date: Mon, 17 Oct 2016 02:15:37 +0300 Subject: [PATCH] bjm: use getarg_ull for retrieving first two parameters of init_module syscall As init_module has no compat wrapper, its first parameter is a pointer and the second is length, they both have the same size as kernel_ulong_t type. * bjm.c (SYS_FUNC(init_module)): Obtain first two parameters using getarg_ull, print address argument using printaddr_ull, print length argument using "%llu" conversion specifier. --- bjm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bjm.c b/bjm.c index e77b73d6..054f110b 100644 --- a/bjm.c +++ b/bjm.c @@ -44,8 +44,8 @@ SYS_FUNC(delete_module) SYS_FUNC(init_module) { - printaddr(tcp->u_arg[0]); - tprintf(", %lu, ", tcp->u_arg[1]); + printaddr_ull(getarg_ull(tcp, 0)); + tprintf(", %llu, ", getarg_ull(tcp, 1)); printstr(tcp, tcp->u_arg[2], -1); return RVAL_DECODED; -- 2.40.0