Skip to contentSkip to conversation

Kernel unaligned access - tcp_transmit_skb

BUG Marcel van Nies 3 participants 5 messages Dec 10, 2007 – Dec 11, 2007

lore
Share & tools
lore
#0 lore raw

Hi ,

On my SUN Ultra 60 I use OpenVPN in tcp-client mode. I use TAP devices to setup the tunnel.

I noticed I receive these five messages whenever the tunnel is up.

Kernel unaligned access at TPC[632208] tcp_transmit_skb+0x170/0x8a0 Kernel unaligned access at TPC[632210] tcp_transmit_skb+0x178/0x8a0 Kernel unaligned access at TPC[63251c] tcp_transmit_skb+0x484/0x8a0 Kernel unaligned access at TPC[632524] tcp_transmit_skb+0x48c/0x8a0 Kernel unaligned access at TPC[63252c] tcp_transmit_skb+0x494/0x8a0

They repeat every N seconds (depends on keepalive setting on server-side).

After some rebooting I found out that the bug is introduced in 2.6.23.4. Up to and including 2.6.23.3 everything is fine.

A 2.6.23.3 kernel with only this additional patch (from 2.6.23.4) 'TCP: Fix size calculation in sk_stream_alloc_pskb'
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=commit;hŸcba4716e6ebbb0d7e0ec84bff6dd2c36c847b3
has the bug too.

Regards,
Marcel

#1 lore raw

From: "Marcel van Nies" <[email protected]>
Date: Mon, 10 Dec 2007 23:06:09 +0100

Quoted 13 lines

On my SUN Ultra 60 I use OpenVPN in tcp-client mode. I use TAP devices to setup the tunnel.

I noticed I receive these five messages whenever the tunnel is up.

Kernel unaligned access at TPC[632208] tcp_transmit_skb+0x170/0x8a0 Kernel unaligned access at TPC[632210] tcp_transmit_skb+0x178/0x8a0 Kernel unaligned access at TPC[63251c] tcp_transmit_skb+0x484/0x8a0 Kernel unaligned access at TPC[632524] tcp_transmit_skb+0x48c/0x8a0 Kernel unaligned access at TPC[63252c] tcp_transmit_skb+0x494/0x8a0

They repeat every N seconds (depends on keepalive setting on server-side).

Quoted 7 lines

After some rebooting I found out that the bug is introduced in 2.6.23.4. Up to and including 2.6.23.3 everything is fine.

A 2.6.23.3 kernel with only this additional patch (from 2.6.23.4) 'TCP: Fix size calculation in sk_stream_alloc_pskb'
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=commit;hŸcba4716e6ebbb0d7e0ec84bff6dd2c36c847b3
has the bug too.

That patch ought to have fixed it.

Herbert, any ideas?

#2 lore raw
In reply to Marcel van Nies
Quoted 9 lines · David Miller
Quoted 5 lines

A 2.6.23.3 kernel with only this additional patch (from 2.6.23.4) 'TCP: Fix size calculation in sk_stream_alloc_pskb'
http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.23.y.git;a=commit;hŸcba4716e6ebbb0d7e0ec84bff6dd2c36c847b3
has the bug too.

That patch ought to have fixed it.

Herbert, any ideas?

Hmm, he's missing this patch which isn't in stable yet. I sent it to stable on the 29th of November after Linus returned.

commit 21df56c6e2372e09c916111efb6c14c372a5ab2e

Author: Herbert Xu <[email protected]>
Date:   Sun Nov 18 18:48:08 2007 -0800

[TCP]: Fix TCP header misalignment

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt