Re: Building signed debs

2023-12-11 Thread Tom Cook
On Sat, Dec 9, 2023 at 6:18 PM Masahiro Yamada wrote: > On Fri, Dec 8, 2023 at 8:14 PM Tom Cook wrote: > > > > I'm trying to build a signed .deb kernel package of > > https://github.com/torvalds/linux/tree/v6.6. I've copied > > certs/default_x509.genkey to c

Re: cBPF socket filters failing - inexplicably?

2021-01-15 Thread Tom Cook
pplies after it receives the packets from the queue. Thanks again, Tom Cook

Re: cBPF socket filters failing - inexplicably?

2021-01-06 Thread Tom Cook
capture file through it: $ tools/bpf_dbg > load bpf 1,6 0 0 0 > load pcap capture.pcap > run bpf passes:0 fails:269288 So bpf_dbg thinks the filter is correct; it's only when the filter is attached to an actual socket that it fails occasionally. Regards, Tom On Wed, Jan 6, 2021 at 10:

Re: cBPF socket filters failing - inexplicably?

2021-01-06 Thread Tom Cook
Just to note I have also reproduced this on a 5.10.0 kernel. On Tue, Jan 5, 2021 at 1:42 PM Tom Cook wrote: > > In the course of tracking down a defect in some existing software, > I've found the failure demonstrated by the short program below. > Essentially, a cBPF program

cBPF socket filters failing - inexplicably?

2021-01-05 Thread Tom Cook
but very keen to have things thrown at me if it is. Regards, Tom Cook #include #include #include #include #include #include #include #include struct sock_filter code[] = { { 0x06,0,0,0x00 } /* BPF_RET | BPF_K 0 0 0 */ }; struct sock_fprog bpf = { .len = 1, .fil