fshahinfar1 / kashk

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

Failing to track BPF context when multiple pointers are used #33

Open fshahinfar1 opened 4 months ago

fshahinfar1 commented 4 months ago

The following provides an example of when this issue happens. It seems we need a better approach for tracking the BPF context. Something that could actually track memory model.

void f(char **p, ... xdp)
{
  *p = xdp->data;
}

int main() {
  char *t;
  f(&t, ... xdp);
}
fshahinfar1 commented 4 months ago

I might be able to fix this for two level of indirection (example above) by extending the current implementation. But it seems to hard to make it general. Probably another technique should be used for tracking context.

fshahinfar1 commented 4 months ago

This issue is also kind of relevant to #3