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 PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 8 Apr 2022 21:49:54 -0600 From: David Ahern <dsahern@...nel.org> To: menglong8.dong@...il.com, kuba@...nel.org, pabeni@...hat.com Cc: rostedt@...dmis.org, mingo@...hat.com, xeb@...l.ru, davem@...emloft.net, yoshfuji@...ux-ipv6.org, imagedong@...cent.com, edumazet@...gle.com, kafai@...com, talalahmad@...gle.com, keescook@...omium.org, alobakin@...me, flyingpeng@...cent.com, mengensun@...cent.com, dongli.zhang@...cle.com, linux-kernel@...r.kernel.org, netdev@...r.kernel.org, benbjiang@...cent.com Subject: Re: [PATCH RESEND net-next v5 1/4] net: sock: introduce sock_queue_rcv_skb_reason() On 4/7/22 12:20 AM, menglong8.dong@...il.com wrote: > From: Menglong Dong <imagedong@...cent.com> > > In order to report the reasons of skb drops in 'sock_queue_rcv_skb()', > introduce the function 'sock_queue_rcv_skb_reason()'. > > As the return value of 'sock_queue_rcv_skb()' is used as the error code, > we can't make it as drop reason and have to pass extra output argument. > 'sock_queue_rcv_skb()' is used in many places, so we can't change it > directly. > > Introduce the new function 'sock_queue_rcv_skb_reason()' and make > 'sock_queue_rcv_skb()' an inline call to it. > > Reviewed-by: Hao Peng <flyingpeng@...cent.com> > Reviewed-by: Jiang Biao <benbjiang@...cent.com> > Signed-off-by: Menglong Dong <imagedong@...cent.com> > --- > include/net/sock.h | 9 ++++++++- > net/core/sock.c | 30 ++++++++++++++++++++++++------ > 2 files changed, 32 insertions(+), 7 deletions(-) > Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists