Skip to content

Commit 1f8c5f1

Browse files
committed
pINT: Drop the memory barriers
For our shadow task structs, we use locking instead. For LKRG unload, we'd ideally ensure no hooks are still running when we start deleting our data, but we currently achieve similar by freezing tasks before we get here. Memory barriers would achieve almost nothing for either.
1 parent 1fc6943 commit 1f8c5f1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/modules/exploit_detection/p_exploit_detection.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,7 @@ notrace void p_update_ed_process(struct p_ed_process *p_source, char p_stack) {
451451
/* Name */
452452
strncpy(p_source->p_ed_task.p_comm, p_task->comm, TASK_COMM_LEN);
453453
p_source->p_ed_task.p_comm[TASK_COMM_LEN] = 0;
454-
/* Should be last here to propagate potential glitching */
455-
wmb();
456454
rcu_read_unlock();
457-
458455
}
459456

460457
#ifdef P_LKRG_TASK_OFF_DEBUG
@@ -1918,8 +1915,6 @@ void p_exploit_detection_exit(void) {
19181915
p_fh_it->uninstall();
19191916
}
19201917

1921-
mb();
1922-
19231918
/* Delete cache for ED wq validation */
19241919
p_ed_wq_valid_cache_delete();
19251920
/* Delete cache for ED CFI validation */

0 commit comments

Comments
 (0)