All of lore.kernel.org
 help / color / mirror / Atom feed
* Oops in tun: bisected to  Limit amount of queued packets per device
@ 2009-04-09  7:52 Christian Borntraeger
  2009-04-09  9:38 ` Herbert Xu
  0 siblings, 1 reply; 7+ messages in thread
From: Christian Borntraeger @ 2009-04-09  7:52 UTC (permalink / raw)
  To: Herbert Xu; +Cc: David S. Miller, netdev

Hello Herbert,

with my kvm test scenario on s390 I get the following oops:
Unable to handle kernel pointer dereference at virtual kernel address 0000000400000000
Oops: 003b [#1] SMP
Modules linked in: kvm dm_multipath sunrpc qeth_l2 dm_mod qeth ccwgroup
CPU: 0 Not tainted 2.6.29-kvm-06607-ga317a1e-dirty #8
Process kuli (pid: 14827, task: 00000000b3df8138, ksp: 00000000b4703a98)
Krnl PSW : 0404e00180000000 0000000000171278 (__lock_acquire+0x3d4/0x191c)
           R:0 T:1 IO:0 EX:0 Key:0 M:1 W:0 P:0 AS:3 CC:2 PM:0 EA:3
Krnl GPRS: 0000000000000001 0000000000000001 0000000000000001 0000000000000001
           0000000000000000 0000000000000000 0000000000000002 0000000000000000
           00000000b3df8138 00000000b3126c30 0000000000000000 00000000bfeb3498
           0000000400000137 0000000000527600 00000000bfeb3590 00000000bfeb3498
Krnl Code: 000000000017126c: a784fe66             brc     8,170f38
           0000000000171270: 41c0c138             la      %r12,312(%r12)
           0000000000171274: a7180001             lhi     %r1,1
          >0000000000171278: 5820c000             l       %r2,0(%r12)
           000000000017127c: 1832                 lr      %r3,%r2
           000000000017127e: 1a31                 ar      %r3,%r1
           0000000000171280: ba23c000             cs      %r2,%r3,0(%r12)
           0000000000171284: a744fffc             brc     4,17127c
Call Trace:
([<0000000000170270>] trace_hardirqs_on+0x2c/0x3c)
 [<0000000000172858>] lock_acquire+0x98/0xc0
 [<000000000051e9c8>] _spin_lock_irqsave+0x64/0xac
 [<0000000000127354>] __wake_up_sync+0x38/0x78
 [<00000000003a3dda>] tun_sock_write_space+0x5e/0xb4
 [<000000000040f924>] sock_wfree+0xb4/0xb8
 [<000000000041487a>] skb_release_head_state+0x82/0x134
 [<0000000000414460>] __kfree_skb+0x2c/0x120
 [<0000000000414660>] kfree_skb+0x88/0xcc
 [<00000000003a3938>] tun_net_xmit+0xbc/0x22c
 [<000000000041fd56>] dev_hard_start_xmit+0x2a6/0x324
 [<00000000004381f8>] __qdisc_run+0x164/0x2a0
 [<000000000042020c>] dev_queue_xmit+0x2b8/0x444
 [<00000000004fb1dc>] br_dev_queue_push_xmit+0x94/0xd4
 [<00000000004fb2aa>] br_forward_finish+0x8e/0xa0
 [<0000000000501718>] br_nf_forward_finish+0x160/0x174
 [<0000000000501bca>] br_nf_forward_arp+0x17a/0x184
 [<000000000043e18c>] nf_iterate+0x9c/0xe4
 [<000000000043e29e>] nf_hook_slow+0xca/0x16c
 [<00000000004fb358>] __br_forward+0x9c/0x100
 [<00000000004fb07a>] br_flood+0xb6/0x10c
 [<00000000004fb0fe>] br_flood_forward+0x2e/0x3c
 [<00000000004fc4a4>] br_handle_frame_finish+0x1d0/0x1e4
 [<00000000004fc716>] br_handle_frame+0x25e/0x270
 [<000000000041e848>] netif_receive_skb+0x278/0x484
 [<000000000041eb26>] process_backlog+0xd2/0x140
 [<000000000041cb78>] net_rx_action+0xf4/0x1a8
 [<0000000000143fdc>] __do_softirq+0xc0/0x1a0
 [<0000000000110af4>] do_softirq+0x9c/0xf0
([<0000000000110ab4>] do_softirq+0x5c/0xf0)
 [<000000000041f73e>] netif_rx_ni+0x3a/0x4c
 [<00000000003a4cc2>] tun_chr_aio_write+0x3fa/0x4d8
 [<00000000001e7b58>] do_sync_readv_writev+0xd8/0x130
 [<00000000001e842a>] do_readv_writev+0xe2/0x238
 [<00000000001e85f2>] vfs_writev+0x72/0x88
 [<00000000001e8660>] SyS_writev+0x58/0xb0
 [<0000000000117866>] sysc_noemu+0x10/0x16
 [<0000004161704d28>] 0x4161704d28


I was able to bisect the problem to 
commit 33dccbb050bbe35b88ca8cf1228dcf3e4d4b3554
Author: Herbert Xu <herbert@gondor.apana.org.au>
Date:   Thu Feb 5 21:25:32 2009 -0800

    tun: Limit amount of queued packets per device

Reverting the patch fixes the problem. Do you have any idea whats wrong?

Christian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-09  7:52 Oops in tun: bisected to Limit amount of queued packets per device Christian Borntraeger
@ 2009-04-09  9:38 ` Herbert Xu
  2009-04-09 10:39   ` Christian Borntraeger
  2009-04-22 20:34   ` Andreas Schwab
  0 siblings, 2 replies; 7+ messages in thread
From: Herbert Xu @ 2009-04-09  9:38 UTC (permalink / raw)
  To: Christian Borntraeger; +Cc: David S. Miller, netdev

On Thu, Apr 09, 2009 at 09:52:01AM +0200, Christian Borntraeger wrote:
> 
> with my kvm test scenario on s390 I get the following oops:
> Unable to handle kernel pointer dereference at virtual kernel address 0000000400000000
> Oops: 003b [#1] SMP
> Modules linked in: kvm dm_multipath sunrpc qeth_l2 dm_mod qeth ccwgroup
> CPU: 0 Not tainted 2.6.29-kvm-06607-ga317a1e-dirty #8
> Process kuli (pid: 14827, task: 00000000b3df8138, ksp: 00000000b4703a98)
> Krnl PSW : 0404e00180000000 0000000000171278 (__lock_acquire+0x3d4/0x191c)

This is weird.  It looks like it's dying on the wake_up_interruptible_sync
in tun_sock_write_space.  However, I can't see how that can cause this.

Were you in the middle of removing the tun module?

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-09  9:38 ` Herbert Xu
@ 2009-04-09 10:39   ` Christian Borntraeger
  2009-04-15 14:30     ` Andreas Schwab
  2009-04-22 20:34   ` Andreas Schwab
  1 sibling, 1 reply; 7+ messages in thread
From: Christian Borntraeger @ 2009-04-09 10:39 UTC (permalink / raw)
  To: Herbert Xu; +Cc: David S. Miller, netdev

Am Thursday 09 April 2009 11:38:17 schrieb Herbert Xu:
> On Thu, Apr 09, 2009 at 09:52:01AM +0200, Christian Borntraeger wrote:
> > with my kvm test scenario on s390 I get the following oops:
> > Unable to handle kernel pointer dereference at virtual kernel address
> > 0000000400000000 Oops: 003b [#1] SMP
> > Modules linked in: kvm dm_multipath sunrpc qeth_l2 dm_mod qeth ccwgroup
> > CPU: 0 Not tainted 2.6.29-kvm-06607-ga317a1e-dirty #8
> > Process kuli (pid: 14827, task: 00000000b3df8138, ksp: 00000000b4703a98)
> > Krnl PSW : 0404e00180000000 0000000000171278
> > (__lock_acquire+0x3d4/0x191c)
>
> This is weird.  It looks like it's dying on the wake_up_interruptible_sync
> in tun_sock_write_space.  However, I can't see how that can cause this.
>
> Were you in the middle of removing the tun module?
>
> Cheers,

No, I was booting up a guest and the guest sent its first packet (arp). I 
forgot to mention, that the tap device is persistent and attached to a 
bridge. Does that give a clue?

Christian

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-09 10:39   ` Christian Borntraeger
@ 2009-04-15 14:30     ` Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2009-04-15 14:30 UTC (permalink / raw)
  To: Christian Borntraeger; +Cc: Herbert Xu, David S. Miller, netdev

Christian Borntraeger <borntraeger@de.ibm.com> writes:

> No, I was booting up a guest and the guest sent its first packet (arp). I 
> forgot to mention, that the tap device is persistent and attached to a 
> bridge. Does that give a clue?

Being persistent appears to make the difference.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-09  9:38 ` Herbert Xu
  2009-04-09 10:39   ` Christian Borntraeger
@ 2009-04-22 20:34   ` Andreas Schwab
  2009-04-23  0:17     ` Herbert Xu
  1 sibling, 1 reply; 7+ messages in thread
From: Andreas Schwab @ 2009-04-22 20:34 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Christian Borntraeger, David S. Miller, netdev

Herbert Xu <herbert@gondor.apana.org.au> writes:

> On Thu, Apr 09, 2009 at 09:52:01AM +0200, Christian Borntraeger wrote:
>> 
>> with my kvm test scenario on s390 I get the following oops:
>> Unable to handle kernel pointer dereference at virtual kernel address 0000000400000000
>> Oops: 003b [#1] SMP
>> Modules linked in: kvm dm_multipath sunrpc qeth_l2 dm_mod qeth ccwgroup
>> CPU: 0 Not tainted 2.6.29-kvm-06607-ga317a1e-dirty #8
>> Process kuli (pid: 14827, task: 00000000b3df8138, ksp: 00000000b4703a98)
>> Krnl PSW : 0404e00180000000 0000000000171278 (__lock_acquire+0x3d4/0x191c)
>
> This is weird.  It looks like it's dying on the wake_up_interruptible_sync
> in tun_sock_write_space.  However, I can't see how that can cause this.

Any news on this?  It is still badly broken in 2.6.30-rc3.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-22 20:34   ` Andreas Schwab
@ 2009-04-23  0:17     ` Herbert Xu
  2009-04-23 10:08       ` Andreas Schwab
  0 siblings, 1 reply; 7+ messages in thread
From: Herbert Xu @ 2009-04-23  0:17 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Christian Borntraeger, David S. Miller, netdev

On Wed, Apr 22, 2009 at 10:34:32PM +0200, Andreas Schwab wrote:
>
> > This is weird.  It looks like it's dying on the wake_up_interruptible_sync
> > in tun_sock_write_space.  However, I can't see how that can cause this.
> 
> Any news on this?  It is still badly broken in 2.6.30-rc3.

I think the fixes are in Dave's tree, waiting to be pushed.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Oops in tun: bisected to  Limit amount of queued packets per device
  2009-04-23  0:17     ` Herbert Xu
@ 2009-04-23 10:08       ` Andreas Schwab
  0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2009-04-23 10:08 UTC (permalink / raw)
  To: Herbert Xu; +Cc: Christian Borntraeger, David S. Miller, netdev

Herbert Xu <herbert@gondor.apana.org.au> writes:

> On Wed, Apr 22, 2009 at 10:34:32PM +0200, Andreas Schwab wrote:
>>
>> > This is weird.  It looks like it's dying on the wake_up_interruptible_sync
>> > in tun_sock_write_space.  However, I can't see how that can cause this.
>> 
>> Any news on this?  It is still badly broken in 2.6.30-rc3.
>
> I think the fixes are in Dave's tree, waiting to be pushed.

Thanks, I've found them.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-23 10:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-09  7:52 Oops in tun: bisected to Limit amount of queued packets per device Christian Borntraeger
2009-04-09  9:38 ` Herbert Xu
2009-04-09 10:39   ` Christian Borntraeger
2009-04-15 14:30     ` Andreas Schwab
2009-04-22 20:34   ` Andreas Schwab
2009-04-23  0:17     ` Herbert Xu
2009-04-23 10:08       ` Andreas Schwab

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.