diff --git a/driver/ppm_fillers.c b/driver/ppm_fillers.c index dd83c2b657..7b84c7e830 100644 --- a/driver/ppm_fillers.c +++ b/driver/ppm_fillers.c @@ -5710,13 +5710,12 @@ int f_sys_dup_e(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; /* * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int32_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5727,8 +5726,6 @@ int f_sys_dup_x(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; - int64_t retval = (int64_t)syscall_get_return_value(current, args->regs); res = val_to_ring(args, retval, 0, false, 0); @@ -5738,7 +5735,7 @@ int f_sys_dup_x(struct event_filler_arguments *args) * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int64_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5749,13 +5746,12 @@ int f_sys_dup2_e(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; /* * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int32_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5766,8 +5762,6 @@ int f_sys_dup2_x(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; - int64_t retval = (int64_t)syscall_get_return_value(current, args->regs); res = val_to_ring(args, retval, 0, false, 0); @@ -5777,7 +5771,7 @@ int f_sys_dup2_x(struct event_filler_arguments *args) * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int64_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5785,10 +5779,9 @@ int f_sys_dup2_x(struct event_filler_arguments *args) * newfd */ syscall_get_arguments_deprecated(args, 1, 1, &val); - fd = (int64_t) val; - res = val_to_ring(args, (int64_t)fd, 0, false, 0); - CHECK_RES(res) - ; + fd = (int32_t) val; + res = val_to_ring(args, (int32_t)fd, 0, false, 0); + CHECK_RES(res); return add_sentinel(args); } @@ -5797,13 +5790,12 @@ int f_sys_dup3_e(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; /* * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int64_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5814,7 +5806,6 @@ int f_sys_dup3_x(struct event_filler_arguments *args) { int res; unsigned long val; - int64_t fd = 0; int64_t retval = (int64_t)syscall_get_return_value(current, args->regs); res = val_to_ring(args, retval, 0, false, 0); @@ -5824,7 +5815,7 @@ int f_sys_dup3_x(struct event_filler_arguments *args) * oldfd */ syscall_get_arguments_deprecated(args, 0, 1, &val); - fd = (int64_t) val; + int32_t fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res); @@ -5832,7 +5823,7 @@ int f_sys_dup3_x(struct event_filler_arguments *args) * newfd */ syscall_get_arguments_deprecated(args, 1, 1, &val); - fd = (int64_t) val; + fd = (int32_t) val; res = val_to_ring(args, (int64_t)fd, 0, false, 0); CHECK_RES(res);