Re: [PATCH bpf-next v4 0/4] bpf: support cloning sk storage on accept()

2019-08-17 Thread Daniel Borkmann
On 8/14/19 7:37 PM, Stanislav Fomichev wrote: Currently there is no way to propagate sk storage from the listener socket to a newly accepted one. Consider the following use case: fd = socket(); setsockopt(fd, SOL_IP, IP_TOS,...); /* ^^^ setsockopt BPF program triggers

[PATCH bpf-next v4 0/4] bpf: support cloning sk storage on accept()

2019-08-14 Thread Stanislav Fomichev
Currently there is no way to propagate sk storage from the listener socket to a newly accepted one. Consider the following use case: fd = socket(); setsockopt(fd, SOL_IP, IP_TOS,...); /* ^^^ setsockopt BPF program triggers here and saves something * into sk storage