Interruption in eBPF program after kernel update

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I've got a simple socket filter program that seems to interrupt when
calling the load_word construct. I'm seeing the first message but never
the second one.

The code is the following 

int SEC("filter") hashfilter(struct __sk_buff *skb) {
    __u32 nhoff = BPF_LL_OFF + ETH_HLEN;
    __u32 ip = 0;
    __u32 *value = NULL;
#if 1
    char fmtrei[] = "word load\n";
    bpf_trace_printk(fmtrei, sizeof(fmtrei));
#endif
    ip = load_word(skb, nhoff + offsetof(struct iphdr, saddr));
#if 1
    char fmti[] = "work done\n";
    bpf_trace_printk(fmti, sizeof(fmti));
#endif

In 4.18 and above this is not working but older kernel were ok.

Any suggestion will be appreciated.

Best regards,
-- 
Eric Leblond <eric@xxxxxxxxx>




[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux