netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tommy Christensen <tommy.christensen@tpack.net>
To: Simon Roscic <simon.roscic@chello.at>
Cc: netdev@oss.sgi.com
Subject: Re: Fwd: [2.6] ethertap and af_inet.c assertion failures
Date: Tue, 11 Jan 2005 22:26:14 +0100	[thread overview]
Message-ID: <41E44476.20303@tpack.net> (raw)
In-Reply-To: <200412240002.13206.simon.roscic@chello.at>

[-- Attachment #1: Type: text/plain, Size: 521 bytes --]

Simon Roscic wrote:
> hi,
> 
> today i upgraded my kernel from 2.6.9-rc2 to 2.6.10-rc3-bk12, now i get the
> following assertion failures while using the (closed source) phion vpn
> client, the vpn client uses ethertap, there are no closed source kernel
> modules or the like:
> 
> KERNEL: assertion (!atomic_read(&sk->sk_wmem_alloc)) failed at
> net/ipv4/af_inet.c (150)

netlink has messed up the send buffer accounting, when trimming a skb.

Patch below should fix this for ethertap. Could you give it a try?

-Tommy


[-- Attachment #2: ethertap.c.patch --]
[-- Type: text/plain, Size: 388 bytes --]

--- linux-2.6.10-bk14/drivers/net/ethertap.c	2004-12-24 22:34:26.000000000 +0100
+++ linux-2.6.10-work/drivers/net/ethertap.c	2005-01-11 22:18:19.113295324 +0100
@@ -207,8 +207,8 @@
 			return 0;
 		}
 	  	dev_kfree_skb(skb2);
-	}
-	/* ... but do not orphan it here, netlink does it in any case. */
+	} else
+		skb_orphan(skb);
 
 	lp->stats.tx_bytes+=skb->len;
 	lp->stats.tx_packets++;

  reply	other threads:[~2005-01-11 21:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-23 23:02 Fwd: [2.6] ethertap and af_inet.c assertion failures Simon Roscic
2005-01-11 21:26 ` Tommy Christensen [this message]
2005-01-12 22:25   ` Simon Roscic
2005-01-15 13:31   ` Herbert Xu
2005-01-15 16:19     ` Tommy Christensen
2005-01-15 18:30       ` Herbert Xu
2005-01-15 20:20         ` Tommy Christensen
2005-01-16  8:02           ` [NETLINK] Do not netlink_unicast shared packet in kernel/audit.c Herbert Xu
2005-01-16  8:34             ` Tommy Christensen
2005-01-17 21:36             ` David S. Miller
2005-01-17 23:11               ` Herbert Xu
2005-01-19 22:33                 ` David S. Miller
2005-01-15 18:03     ` Fwd: [2.6] ethertap and af_inet.c assertion failures Simon Roscic
2005-01-17 21:37     ` David S. Miller

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=41E44476.20303@tpack.net \
    --to=tommy.christensen@tpack.net \
    --cc=netdev@oss.sgi.com \
    --cc=simon.roscic@chello.at \
    /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).