lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <CADxym3b0COE3c8J8Qb6B61OZySzyZevrE2WDBWFBHOKuDjJ9hg@mail.gmail.com> Date: Fri, 11 Feb 2022 16:53:25 +0800 From: Menglong Dong <menglong8.dong@...il.com> To: Eric Dumazet <edumazet@...gle.com> Cc: Jakub Kicinski <kuba@...nel.org>, David Ahern <dsahern@...il.com>, David Ahern <dsahern@...nel.org>, Steven Rostedt <rostedt@...dmis.org>, Ingo Molnar <mingo@...hat.com>, David Miller <davem@...emloft.net>, Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>, Pablo Neira Ayuso <pablo@...filter.org>, Jozsef Kadlecsik <kadlec@...filter.org>, Florian Westphal <fw@...len.de>, Menglong Dong <imagedong@...cent.com>, Alexander Lobakin <alobakin@...me>, paulb@...dia.com, Kees Cook <keescook@...omium.org>, Talal Ahmad <talalahmad@...gle.com>, Kevin Hao <haokexin@...il.com>, Kumar Kartikeya Dwivedi <memxor@...il.com>, LKML <linux-kernel@...r.kernel.org>, netdev <netdev@...r.kernel.org>, netfilter-devel@...r.kernel.org, coreteam@...filter.org, Cong Wang <cong.wang@...edance.com> Subject: Re: [PATCH v3 net-next 1/7] net: skb_drop_reason: add document for drop reasons On Fri, Feb 11, 2022 at 12:29 AM Eric Dumazet <edumazet@...gle.com> wrote: > > On Thu, Feb 10, 2022 at 8:13 AM Jakub Kicinski <kuba@...nel.org> wrote: > > > > On Thu, 10 Feb 2022 21:42:14 +0800 Menglong Dong wrote: > > > How about introducing a field to 'struct sock' for drop reasons? As sk is > > > locked during the packet process in tcp_v4_do_rcv(), this seems to work. > > > > I find adding temporary storage to persistent data structures awkward. > > You can put a structure on the stack and pass it thru the call chain, > > that's just my subjective preference, tho, others may have better ideas. > > I had a similar TODO item, because stuff like 'waking up task' or free > one skb (or list of skb) could be performed outside of socket lock. May I ask what it's like? Is it used to solve this kind of problem? Thanks! Menglong Dong
Powered by blists - more mailing lists