Networking Forums

Networking Forums > Computer Networking > Linux Networking > assertion (!atomic_read(&skb->users)) failed at net/core/dev.c (1524)in net_tx_action

Reply
Thread Tools Display Modes

assertion (!atomic_read(&skb->users)) failed at net/core/dev.c (1524)in net_tx_action

 
 
Bill
Guest
Posts: n/a

 
      06-21-2008, 02:46 AM
I am getting the following message occasionally while running pings:

KERNEL: assertion (!atomic_read(&skb->users)) failed at net/core/dev.c
(1524)


What does this mean and what might cause it? The code with line 1524
marked is below.



static void net_tx_action(struct softirq_action *h)
{
struct softnet_data *sd = &__get_cpu_var(softnet_data);

if (sd->completion_queue) {
struct sk_buff *clist;

local_irq_disable();
clist = sd->completion_queue;
sd->completion_queue = NULL;
local_irq_enable();

while (clist) {
struct sk_buff *skb = clist;
clist = clist->next;
1524 BUG_TRAP(!atomic_read(&skb->users)); <<<<<<<<<<<<<<<<< LINE
1524
__kfree_skb(skb);
}
}

if (sd->output_queue) {
struct net_device *head;

local_irq_disable();
head = sd->output_queue;
sd->output_queue = NULL;
local_irq_enable();

while (head) {
struct net_device *dev = head;
head = head->next_sched;

smp_mb__before_clear_bit();
clear_bit(__LINK_STATE_SCHED, &dev->state);

if (spin_trylock(&dev->queue_lock)) {
qdisc_run(dev);
spin_unlock(&dev->queue_lock);
} else {
netif_schedule(dev);
}
}
}
}
 
Reply With Quote
 
 
 
 
Jim Cochrane
Guest
Posts: n/a

 
      06-22-2008, 11:58 PM
On 2008-06-21, Bill <(E-Mail Removed)> wrote:
> I am getting the following message occasionally while running pings:
>
> KERNEL: assertion (!atomic_read(&skb->users)) failed at net/core/dev.c
> (1524)
>
>
> What does this mean and what might cause it? The code with line 1524
> marked is below.


BUG_TRAP(!atomic_read(&skb->users));

Apparently, BUG_TRAP is a macro that makes an assertion (probably using
assert(3) ). That the assertion was violated means that what it was
asserting (!atomic_read(&skb->users)) was false, when it should have been true.

so the function or macro:

atomic_read(&skb->users)

returned true (non-0) when it was expected to return false (0) (since !
negates the result - true -> false).

To get a more in-depth understanding of what's going on you'll need to
analyze the code.

>
>
>
> static void net_tx_action(struct softirq_action *h)
> {
> struct softnet_data *sd = &__get_cpu_var(softnet_data);
>
> if (sd->completion_queue) {
> struct sk_buff *clist;
>
> local_irq_disable();
> clist = sd->completion_queue;
> sd->completion_queue = NULL;
> local_irq_enable();
>
> while (clist) {
> struct sk_buff *skb = clist;
> clist = clist->next;
> 1524 BUG_TRAP(!atomic_read(&skb->users)); <<<<<<<<<<<<<<<<< LINE
> 1524
> __kfree_skb(skb);
> }
> }
>
> if (sd->output_queue) {
> struct net_device *head;
>
> local_irq_disable();
> head = sd->output_queue;
> sd->output_queue = NULL;
> local_irq_enable();
>
> while (head) {
> struct net_device *dev = head;
> head = head->next_sched;
>
> smp_mb__before_clear_bit();
> clear_bit(__LINK_STATE_SCHED, &dev->state);
>
> if (spin_trylock(&dev->queue_lock)) {
> qdisc_run(dev);
> spin_unlock(&dev->queue_lock);
> } else {
> netif_schedule(dev);
> }
> }
> }
> }



--

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 4 ipw2200 failed to load Reason -2 notnotnotcool@gmail.com Linux Networking 0 10-05-2005 08:35 PM
Strange SSH halting problem between Fedora Core 2/Fedora Core 3 Jonathan Abbey Linux Networking 4 12-03-2004 05:00 PM
Qwest DSL, Actiontec 1524, ISP and eth0 William D. Tallman Linux Networking 0 12-31-2003 05:05 AM
PROFTPD: Some users cannot upload files, some users cannot get directory listing Marc Linux Networking 0 10-24-2003 06:18 AM
PROFTPD: Some users cannot upload files, some users cannot get directory listing Marc Linux Networking 1 10-24-2003 05:50 AM



1 2 3 4 5 6 7 8 9 10 11