Comments (1)
Even to make it work on 5.4 is an impossible task - -
I need to look up an skb address from a map:
__u64 skb_addr = (__u64)(void *)skb;
bpf_map_lookup_elem(&map, &skb_addr)
5.4 verifier will bounce back: invalid indirect read from stack off -104+0 size 8
Then I tried to read address using bpf helper:
__u64 skb_addr;
bpf_probe_read_kernel(&skb_addr, sizeof(skb_addr), &skb);
However, kernel doesn't have bpf_probe_read_kernel until 5.5.
Not to mention the mess in 4.19, feel like hell.
from skbdump.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skbdump.