Skip to content

Commit eee71c9

Browse files
committed
Remove macro magic
1 parent 6025870 commit eee71c9

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/modules/exploit_detection/p_exploit_detection.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,12 +1569,7 @@ int p_ed_enforce_pcfi(struct task_struct *p_task, struct p_ed_process *p_orig, s
15691569
goto p_ed_enforce_pcfi_out;
15701570

15711571
#ifndef CONFIG_UNWINDER_ORC
1572-
if (!p_is_obj_on_stack(p_task, p_fp,
1573-
#if defined(CONFIG_ARM) || defined(CONFIG_X86_32)
1574-
4 )) {
1575-
#else
1576-
8 )) {
1577-
#endif
1572+
if (!p_is_obj_on_stack(p_task, p_fp, sizeof(void *))) {
15781573
p_print_log(P_LOG_ALERT, "DETECT: Task: Frame pointer is not on the stack for pid %u, name %s",
15791574
task_pid_nr(p_task), p_task->comm);
15801575
goto p_ed_enforce_pcfi_do;

0 commit comments

Comments
 (0)