From: Greg KH <gregkh@linuxfoundation.org>
To: web_czom@yeah.net
Cc: stable@vger.kernel.org
Subject: Re: [PATCH] net/core/skbuff.c fix skb_expand_head off logic error!
Date: Mon, 23 Apr 2018 16:12:56 +0200 [thread overview]
Message-ID: <20180423141256.GC25829@kroah.com> (raw)
In-Reply-To: <201804231302.w3ND2kqq046079@local.dzw.io>
On Mon, Apr 23, 2018 at 09:02:46PM +0800, web_czom@yeah.net wrote:
> fix logic error!
>
> --- linux/net/core/skbuff.c.orig 2018-04-23 20:55:37.747731000 +0800
> +++ linux/net/core/skbuff.c 2018-04-23 20:56:30.782520000 +0800
> @@ -1492,7 +1492,7 @@ int pskb_expand_head(struct sk_buff *skb
> } else {
> skb_free_head(skb);
> }
> - off = (data + nhead) - skb->head;
> + off = (skb->data - skb->head) + nhead;
>
> skb->head = data;
> skb->head_frag = 0;
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
prev parent reply other threads:[~2018-04-23 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-23 13:02 [PATCH] net/core/skbuff.c fix skb_expand_head off logic error! web_czom
2018-04-23 14:12 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180423141256.GC25829@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=stable@vger.kernel.org \
--cc=web_czom@yeah.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).