fshahinfar1 / kashk

Generate BPF kernel offload from source code of applications
2 stars 0 forks source link

Fallback variable analysis bug #14

Closed fshahinfar1 closed 6 months ago

fshahinfar1 commented 8 months ago

It seems that in the "create_fallback" pass, we are merging some of the failure nodes to their parents (those which does not have a first_inst of function call). The logic is twisted and incorrect. If we are moving the code to a parent node, then should we remove the child? We should remember to cast the packet to the right fallback structure. It seems that we are not doing these. This issue also causes the variable_analysis pass to count variable dependencies multiple times (both in the parent and child).

It seems that at the moment of implementation I did not had a strict protocol defining how to fallback and caused this inconsistency. Let's fix this.

fshahinfar1 commented 6 months ago

The implementation has changed completely. This issue is not applicable anymore.