lkrg-org / lkrg

Linux Kernel Runtime Guard
https://lkrg.org
Other
404 stars 72 forks source link

Specialize p_update_ed_process #241

Open solardiz opened 1 year ago

solardiz commented 1 year ago

In p_update_ed_process, we currently update everything we track per-task. We can (and probably should) instead update only those fields that could have legitimately changed in the specific context a given call to p_update_ed_process is made from. We could split this function in several, or we could introduce a parameter that would tell it what to update.

We could also check that the fields we skipped updating are in fact unchanged - maybe simply call p_cmp_tasks at the end of any incomplete p_update_ed_process.