From: Patrick McHardy <kaber@trash.net>
To: Maciej Soltysiak <solt@dns.toxicfilms.tv>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] make happy cracking message more verbose
Date: Fri, 07 Nov 2003 16:16:54 +0100 [thread overview]
Message-ID: <3FABB766.7020000@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.51.0311071431080.4534@dns.toxicfilms.tv>
[-- Attachment #1: Type: text/plain, Size: 351 bytes --]
Maciej Soltysiak wrote:
>>It turned out to be an unrelated bug, located
>>in skb_copy_expand.
>>
>>
>Hmm, is there a fix ? I would like to test it, and see if
>it still happens on my box.
>
>
Yes it's attached to this mail. It's also in davem's tree
now, but IIRC the bitkeeper repositories are down until
the weekend.
Best regards,
Patrick
[-- Attachment #2: 2.6-skb_copy_expand.diff --]
[-- Type: text/plain, Size: 1075 bytes --]
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1413 -> 1.1414
# net/core/skbuff.c 1.32 -> 1.33
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/11/06 kaber@trash.net 1.1414
# Fix skb_copy_expand offset calculation
# --------------------------------------------
#
diff -Nru a/net/core/skbuff.c b/net/core/skbuff.c
--- a/net/core/skbuff.c Thu Nov 6 17:34:55 2003
+++ b/net/core/skbuff.c Thu Nov 6 17:34:55 2003
@@ -595,10 +595,10 @@
head_copy_len = skb_headroom(skb);
head_copy_off = 0;
- if (newheadroom < head_copy_len) {
- head_copy_off = head_copy_len - newheadroom;
+ if (newheadroom <= head_copy_len)
head_copy_len = newheadroom;
- }
+ else
+ head_copy_off = newheadroom - head_copy_len;
/* Copy the linear header and data. */
if (skb_copy_bits(skb, -head_copy_len, n->head + head_copy_off,
next prev parent reply other threads:[~2003-11-07 15:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-06 20:04 [PATCH] make happy cracking message more verbose Maciej Soltysiak
2003-11-06 23:45 ` Patrick McHardy
2003-11-07 14:30 ` Maciej Soltysiak
2003-11-07 15:16 ` Patrick McHardy [this message]
2003-11-07 15:28 ` Maciej Soltysiak
2003-11-07 0:27 ` Henrik Nordstrom
2003-11-07 14:36 ` Maciej Soltysiak
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=3FABB766.7020000@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=solt@dns.toxicfilms.tv \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.