Open drzaeus77 opened 9 years ago
I'm getting a Segmentation fault, might be the same thing, when I add a 4th BPF_HASH.
A potential workaround for my crash. Before:
BPF_HASH(filebyreq, struct request *, struct dentry *);
BPF_HASH(filebymap, struct address_space *, struct dentry *);
After:
BPF_HASH(filebyaddr, u64, struct dentry *);
Why have 2 hashes keyed on kernel memory addresses, when 1 would suffice? It's not like the keys will clash. ;-)
Dirty hack of the day.
@drzaeus77 I can't reproduce with the last version of bcc. I'm guessing it was fixed in the meantime.
The following code causes a stack overflow and subsequent crash: