google / buzzer

Apache License 2.0
411 stars 28 forks source link

Create a wrapper around ebpf helper functions to make it easier to fuzz them #30

Closed thatjiaozi closed 1 year ago

thatjiaozi commented 1 year ago

Currently working at creating wrappers around ebpf instructions to make the creation of ebpf programs friendlier. Once this work is landed, we would invoke a helper function (e.g map_lookup_element) like this:

Mov64(R1, ptr_to_map)
Mov64(R2, key)
CallFunction(map_lookup_element)

While doing this I noticed we could also create wrappers around ebpf helper functions, that would set up the registers in the right state, so the above example would turn into:

bpf_map_lookup_elemen(ptr_to_map, key)  

Landing this work would be dependent on the refactoring that I am working on right now, so opening this issue for tracking purposes.

thatjiaozi commented 1 year ago

closed in https://github.com/google/buzzer/pull/32