From ceda2188d767d77f2caab89d1814f84bc800b128 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Mon, 29 Jan 2024 13:43:04 +0000 Subject: [PATCH] fix(modern_bpf): fix wrong sign when getting quotactl cmd arg Signed-off-by: Roberto Scolaro --- .../tail_called/events/syscall_dispatched_events/quotactl.bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/modern_bpf/programs/tail_called/events/syscall_dispatched_events/quotactl.bpf.c b/driver/modern_bpf/programs/tail_called/events/syscall_dispatched_events/quotactl.bpf.c index 49f54d3b50..f2dd4e1b2d 100644 --- a/driver/modern_bpf/programs/tail_called/events/syscall_dispatched_events/quotactl.bpf.c +++ b/driver/modern_bpf/programs/tail_called/events/syscall_dispatched_events/quotactl.bpf.c @@ -94,7 +94,7 @@ int BPF_PROG(quotactl_x, unsigned long special_pointer = extract__syscall_argument(regs, 1); auxmap__store_charbuf_param(auxmap, special_pointer, MAX_PATH, USER); - int32_t cmd = (int32_t)extract__syscall_argument(regs, 0); + uint32_t cmd = (uint32_t)extract__syscall_argument(regs, 0); uint16_t scap_cmd = quotactl_cmd_to_scap(cmd); /* The `addr` argument is the address of an optional, command-