* [PATCH] net/core/skbuff.c fix skb_expand_head off logic error!
@ 2018-04-23 13:02 web_czom
2018-04-23 14:12 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: web_czom @ 2018-04-23 13:02 UTC (permalink / raw)
To: stable; +Cc: stable
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] net/core/skbuff.c fix skb_expand_head off logic error!
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
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2018-04-23 14:12 UTC (permalink / raw)
To: web_czom; +Cc: stable
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-23 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).