[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADxym3ZYPmNCf=bpgZCxU2Hnj37VgqR6fdf_S9yiTcY3Od2O7A@mail.gmail.com>
Date: Wed, 26 Jan 2022 10:26:00 +0800
From: Menglong Dong <menglong8.dong@...il.com>
To: David Ahern <dsahern@...il.com>
Cc: Jakub Kicinski <kuba@...nel.org>,
Steven Rostedt <rostedt@...dmis.org>, mingo@...hat.com,
David Miller <davem@...emloft.net>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
David Ahern <dsahern@...nel.org>, pablo@...filter.org,
kadlec@...filter.org, Florian Westphal <fw@...len.de>,
Menglong Dong <imagedong@...cent.com>,
Eric Dumazet <edumazet@...gle.com>, alobakin@...me,
paulb@...dia.com, Paolo Abeni <pabeni@...hat.com>,
talalahmad@...gle.com, haokexin@...il.com,
Kees Cook <keescook@...omium.org>, 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 net-next 2/6] net: ipv4: use kfree_skb_reason() in ip_rcv_core()
On Wed, Jan 26, 2022 at 10:10 AM David Ahern <dsahern@...il.com> wrote:
>
> On 1/24/22 6:15 AM, menglong8.dong@...il.com wrote:
> > @@ -478,7 +483,7 @@ static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net)
> > IPSTATS_MIB_NOECTPKTS + (iph->tos & INET_ECN_MASK),
> > max_t(unsigned short, 1, skb_shinfo(skb)->gso_segs));
> >
> > - if (!pskb_may_pull(skb, iph->ihl*4))
> > + if (!pskb_may_pull(skb, iph->ihl * 4))
>
> unrelated cleanup
>
Haha, you got me :/
> > goto inhdr_error;
> >
> > iph = ip_hdr(skb);
> > @@ -490,7 +495,7 @@ static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net)
> > if (skb->len < len) {
> > __IP_INC_STATS(net, IPSTATS_MIB_INTRUNCATEDPKTS);
> > goto drop;
> > - } else if (len < (iph->ihl*4))
> > + } else if (len < (iph->ihl * 4))
>
> ditto
>
> > goto inhdr_error;
> >
> > /* Our transport medium may have padded the buffer out. Now we know it
>
Powered by blists - more mailing lists