<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/net, branch v2.6.33.2</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/net?h=v2.6.33.2</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/net?h=v2.6.33.2'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2010-04-01T23:02:14Z</updated>
<entry>
<title>b43: Workaround circular locking in hw-tkip key update callback</title>
<updated>2010-04-01T23:02:14Z</updated>
<author>
<name>Michael Buesch</name>
<email>mb@bu3sch.de</email>
</author>
<published>2010-03-19T15:38:33Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=cb81a2ace8bd4354cc40ff341543a9791719383c'/>
<id>urn:sha1:cb81a2ace8bd4354cc40ff341543a9791719383c</id>
<content type='text'>
commit 96869a39399269a776a94812e9fff3d38b47d838 upstream

The TKIP key update callback is called from the RX path, where the driver
mutex is already locked. This results in a circular locking bug.
Avoid this by removing the lock.

Johannes noted that there is a separate bug: The callback still breaks on SDIO
hardware, because SDIO hardware access needs to sleep, but we are not allowed
to sleep in the callback due to mac80211's RCU locking.

Signed-off-by: Michael Buesch &lt;mb@bu3sch.de&gt;
Tested-by: Larry Finger &lt;Larry.Finger@lwfinger.net&gt;
Reported-by: kecsa@kutfo.hit.bme.hu
Cc: Johannes Berg &lt;johannes@sipsolutions.net&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>r8169: offical fix for CVE-2009-4537 (overlength frame DMAs)</title>
<updated>2010-04-01T23:02:10Z</updated>
<author>
<name>Neil Horman</name>
<email>nhorman@redhat.com</email>
</author>
<published>2010-03-29T20:16:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8c96206544955131f6d7cef09371950f34ebca5a'/>
<id>urn:sha1:8c96206544955131f6d7cef09371950f34ebca5a</id>
<content type='text'>
[ Upstream commit c0cd884af045338476b8e69a61fceb3f34ff22f1 ]

Official patch to fix the r8169 frame length check error.

Based on this initial thread:
http://marc.info/?l=linux-netdev&amp;m=126202972828626&amp;w=1
This is the official patch to fix the frame length problems in the r8169
driver.  As noted in the previous thread, while this patch incurs a performance
hit on the driver, its possible to improve performance dynamically by updating
the mtu and rx_copybreak values at runtime to return performance to what it was
for those NICS which are unaffected by the ideosyncracy (if there are any).

Summary:

    A while back Eric submitted a patch for r8169 in which the proper
allocated frame size was written to RXMaxSize to prevent the NIC from dmaing too
much data.  This was done in commit fdd7b4c3302c93f6833e338903ea77245eb510b4.  A
long time prior to that however, Francois posted
126fa4b9ca5d9d7cb7d46f779ad3bd3631ca387c, which expiclitly disabled the MaxSize
setting due to the fact that the hardware behaved in odd ways when overlong
frames were received on NIC's supported by this driver.  This was mentioned in a
security conference recently:
http://events.ccc.de/congress/2009/Fahrplan//events/3596.en.html

It seems that if we can't enable frame size filtering, then, as Eric correctly
noticed, we can find ourselves DMA-ing too much data to a buffer, causing
corruption.  As a result is seems that we are forced to allocate a frame which
is ready to handle a maximally sized receive.

This obviously has performance issues with it, so to mitigate that issue, this
patch does two things:

1) Raises the copybreak value to the frame allocation size, which should force
appropriately sized packets to get allocated on rx, rather than a full new 16k
buffer.

2) This patch only disables frame filtering initially (i.e., during the NIC
open), changing the MTU results in ring buffer allocation of a size in relation
to the new mtu (along with a warning indicating that this is dangerous).

Because of item (2), individuals who can't cope with the performance hit (or can
otherwise filter frames to prevent the bug), or who have hardware they are sure
is unaffected by this issue, can manually lower the copybreak and reset the mtu
such that performance is restored easily.

Signed-off-by: Neil Horman &lt;nhorman@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>e100: Fix ring parameter change handling regression.</title>
<updated>2010-04-01T23:02:06Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2010-03-15T22:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8fc51479fb9f3b9b06e65ce266488bae55c2965a'/>
<id>urn:sha1:8fc51479fb9f3b9b06e65ce266488bae55c2965a</id>
<content type='text'>
[ Upstream commit 211a0d941b1924e667483f822a55e2cc694cd212 ]

When the PCI pool changes were added to fix resume failures:

commit 98468efddb101f8a29af974101c17ba513b07be1
e100: Use pci pool to work around GFP_ATOMIC order 5 memory allocation failu

and

commit 70abc8cb90e679d8519721e2761d8366a18212a6
e100: Fix broken cbs accounting due to missing memset.

This introduced a problem that can happen if the TX ring size
is increased.  We need to size the PCI pool using cbs-&gt;max
instead of the default cbs-&gt;count value.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>bonding: fix device leak on error in bond_create()</title>
<updated>2010-04-01T23:02:05Z</updated>
<author>
<name>Patrick McHardy</name>
<email>kaber@trash.net</email>
</author>
<published>2010-02-27T10:52:05Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=45e74e6561f0da79a417be5424d2c1bf26ae79ba'/>
<id>urn:sha1:45e74e6561f0da79a417be5424d2c1bf26ae79ba</id>
<content type='text'>
[ Upstream commit 8d6184e4881b423522136aeb3ec1cbd9c35e8813 ]

When the register_netdevice() call fails, the newly allocated device is
not freed.

Signed-off-by: Patrick McHardy &lt;kaber@trash.net&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>l2tp: Fix UDP socket reference count bugs in the pppol2tp driver</title>
<updated>2010-04-01T23:02:01Z</updated>
<author>
<name>James Chapman</name>
<email>jchapman@katalix.com</email>
</author>
<published>2010-03-16T06:29:20Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3a8010e6225a3548e9921d986a53ae93bda433fa'/>
<id>urn:sha1:3a8010e6225a3548e9921d986a53ae93bda433fa</id>
<content type='text'>
[ Upstream commit c3259c8a7060d480e8eb2166da0a99d6879146b4 ]

This patch fixes UDP socket refcnt bugs in the pppol2tp driver.

A bug can cause a kernel stack trace when a tunnel socket is closed.

A way to reproduce the issue is to prepare the UDP socket for L2TP (by
opening a tunnel pppol2tp socket) and then close it before any L2TP
sessions are added to it. The sequence is

Create UDP socket
Create tunnel pppol2tp socket to prepare UDP socket for L2TP
  pppol2tp_connect: session_id=0, peer_session_id=0
L2TP SCCRP control frame received (tunnel_id==0)
  pppol2tp_recv_core: sock_hold()
  pppol2tp_recv_core: sock_put
L2TP ZLB control frame received (tunnel_id=nnn)
  pppol2tp_recv_core: sock_hold()
  pppol2tp_recv_core: sock_put
Close tunnel management socket
  pppol2tp_release: session_id=0, peer_session_id=0
Close UDP socket
  udp_lib_close: BUG

The addition of sock_hold() in pppol2tp_connect() solves the problem.

For data frames, two sock_put() calls were added to plug a refcnt leak
per received data frame. The ref that is grabbed at the top of
pppol2tp_recv_core() must always be released, but this wasn't done for
accepted data frames or data frames discarded because of bad UDP
checksums. This leak meant that any UDP socket that had passed L2TP
data traffic (i.e. L2TP data frames, not just L2TP control frames)
using pppol2tp would not be released by the kernel.

WARNING: at include/net/sock.h:435 udp_lib_unhash+0x117/0x120()
Pid: 1086, comm: openl2tpd Not tainted 2.6.33-rc1 #8
Call Trace:
 [&lt;c119e9b7&gt;] ? udp_lib_unhash+0x117/0x120
 [&lt;c101b871&gt;] ? warn_slowpath_common+0x71/0xd0
 [&lt;c119e9b7&gt;] ? udp_lib_unhash+0x117/0x120
 [&lt;c101b8e3&gt;] ? warn_slowpath_null+0x13/0x20
 [&lt;c119e9b7&gt;] ? udp_lib_unhash+0x117/0x120
 [&lt;c11598a7&gt;] ? sk_common_release+0x17/0x90
 [&lt;c11a5e33&gt;] ? inet_release+0x33/0x60
 [&lt;c11577b0&gt;] ? sock_release+0x10/0x60
 [&lt;c115780f&gt;] ? sock_close+0xf/0x30
 [&lt;c106e542&gt;] ? __fput+0x52/0x150
 [&lt;c106b68e&gt;] ? filp_close+0x3e/0x70
 [&lt;c101d2e2&gt;] ? put_files_struct+0x62/0xb0
 [&lt;c101eaf7&gt;] ? do_exit+0x5e7/0x650
 [&lt;c1081623&gt;] ? mntput_no_expire+0x13/0x70
 [&lt;c106b68e&gt;] ? filp_close+0x3e/0x70
 [&lt;c101eb8a&gt;] ? do_group_exit+0x2a/0x70
 [&lt;c101ebe1&gt;] ? sys_exit_group+0x11/0x20
 [&lt;c10029b0&gt;] ? sysenter_do_call+0x12/0x26

Signed-off-by: James Chapman &lt;jchapman@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>l2tp: Fix oops in pppol2tp_xmit</title>
<updated>2010-04-01T23:02:00Z</updated>
<author>
<name>James Chapman</name>
<email>jchapman@katalix.com</email>
</author>
<published>2010-03-16T06:46:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e76f69dbee1d94e88a47c7d811c17647d0326ab3'/>
<id>urn:sha1:e76f69dbee1d94e88a47c7d811c17647d0326ab3</id>
<content type='text'>
[ Upstream commit 3feec9095d12e311b7d4eb7fe7e5dfa75d4a72a5 ]

When transmitting L2TP frames, we derive the outgoing interface's UDP
checksum hardware assist capabilities from the tunnel dst dev. This
can sometimes be NULL, especially when routing protocols are used and
routing changes occur. This patch just checks for NULL dst or dev
pointers when checking for netdev hardware assist features.

BUG: unable to handle kernel NULL pointer dereference at 0000000c
IP: [&lt;f89d074c&gt;] pppol2tp_xmit+0x341/0x4da [pppol2tp]
*pde = 00000000
Oops: 0000 [#1] SMP
last sysfs file: /sys/class/net/lo/operstate
Modules linked in: pppol2tp pppox ppp_generic slhc ipv6 dummy loop snd_hda_codec_atihdmi snd_hda_intel snd_hda_codec snd_pcm snd_timer snd soundcore snd_page_alloc evdev psmouse serio_raw processor button i2c_piix4 i2c_core ati_agp agpgart pcspkr ext3 jbd mbcache sd_mod ide_pci_generic atiixp ide_core ahci ata_generic floppy ehci_hcd ohci_hcd libata e1000e scsi_mod usbcore nls_base thermal fan thermal_sys [last unloaded: scsi_wait_scan]

Pid: 0, comm: swapper Not tainted (2.6.32.8 #1)
EIP: 0060:[&lt;f89d074c&gt;] EFLAGS: 00010297 CPU: 3
EIP is at pppol2tp_xmit+0x341/0x4da [pppol2tp]
EAX: 00000000 EBX: f64d1680 ECX: 000005b9 EDX: 00000000
ESI: f6b91850 EDI: f64d16ac EBP: f6a0c4c0 ESP: f70a9cac
 DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
Process swapper (pid: 0, ti=f70a8000 task=f70a31c0 task.ti=f70a8000)
Stack:
 000005a9 000005b9 f734c400 f66652c0 f7352e00 f67dc800 00000000 f6b91800
&lt;0&gt; 000005a3 f70ef6c4 f67dcda9 000005a3 f89b192e 00000246 000005a3 f64d1680
&lt;0&gt; f63633e0 f6363320 f64d1680 f65a7320 f65a7364 f65856c0 f64d1680 f679f02f
Call Trace:
 [&lt;f89b192e&gt;] ? ppp_push+0x459/0x50e [ppp_generic]
 [&lt;f89b217f&gt;] ? ppp_xmit_process+0x3b6/0x430 [ppp_generic]
 [&lt;f89b2306&gt;] ? ppp_start_xmit+0x10d/0x120 [ppp_generic]
 [&lt;c11c15cb&gt;] ? dev_hard_start_xmit+0x21f/0x2b2
 [&lt;c11d0947&gt;] ? sch_direct_xmit+0x48/0x10e
 [&lt;c11c19a0&gt;] ? dev_queue_xmit+0x263/0x3a6
 [&lt;c11e2a9f&gt;] ? ip_finish_output+0x1f7/0x221
 [&lt;c11df682&gt;] ? ip_forward_finish+0x2e/0x30
 [&lt;c11de645&gt;] ? ip_rcv_finish+0x295/0x2a9
 [&lt;c11c0b19&gt;] ? netif_receive_skb+0x3e9/0x404
 [&lt;f814b791&gt;] ? e1000_clean_rx_irq+0x253/0x2fc [e1000e]
 [&lt;f814cb7a&gt;] ? e1000_clean+0x63/0x1fc [e1000e]
 [&lt;c1047eff&gt;] ? sched_clock_local+0x15/0x11b
 [&lt;c11c1095&gt;] ? net_rx_action+0x96/0x195
 [&lt;c1035750&gt;] ? __do_softirq+0xaa/0x151
 [&lt;c1035828&gt;] ? do_softirq+0x31/0x3c
 [&lt;c10358fe&gt;] ? irq_exit+0x26/0x58
 [&lt;c1004b21&gt;] ? do_IRQ+0x78/0x89
 [&lt;c1003729&gt;] ? common_interrupt+0x29/0x30
 [&lt;c101ac28&gt;] ? native_safe_halt+0x2/0x3
 [&lt;c1008c54&gt;] ? default_idle+0x55/0x75
 [&lt;c1009045&gt;] ? c1e_idle+0xd2/0xd5
 [&lt;c100233c&gt;] ? cpu_idle+0x46/0x62
Code: 8d 45 08 f0 ff 45 08 89 6b 08 c7 43 68 7e fb 9c f8 8a 45 24 83 e0 0c 3c 04 75 09 80 63 64 f3 e9 b4 00 00 00 8b 43 18 8b 4c 24 04 &lt;8b&gt; 40 0c 8d 79 11 f6 40 44 0e 8a 43 64 75 51 6a 00 8b 4c 24 08
EIP: [&lt;f89d074c&gt;] pppol2tp_xmit+0x341/0x4da [pppol2tp] SS:ESP 0068:f70a9cac
CR2: 000000000000000c

Signed-off-by: James Chapman &lt;jchapman@katalix.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ath9k: Enable IEEE80211_HW_REPORTS_TX_ACK_STATUS flag for ath9k</title>
<updated>2010-04-01T23:01:57Z</updated>
<author>
<name>Vivek Natarajan</name>
<email>vnatarajan@atheros.com</email>
</author>
<published>2010-03-11T21:03:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e6ebbf99c171ca872ec1eb546230cb8a42873494'/>
<id>urn:sha1:e6ebbf99c171ca872ec1eb546230cb8a42873494</id>
<content type='text'>
commit 05df49865be08b30e7ba91b9d3d94d7d52dd3033 upstream.

Signed-off-by: Vivek Natarajan &lt;vnatarajan@atheros.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Luis R. Rodriguez &lt;lrodriguez@atheros.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ath9k: configure the beacon only if the STA is associated</title>
<updated>2010-04-01T23:01:57Z</updated>
<author>
<name>Senthil Balasubramanian</name>
<email>senthilkumar@atheros.com</email>
</author>
<published>2010-02-03T17:20:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=7c74e3f2e97f7bdcb56b72919201af941ea0b4e6'/>
<id>urn:sha1:7c74e3f2e97f7bdcb56b72919201af941ea0b4e6</id>
<content type='text'>
commit 1a20034a73a40b8056731f9db0c535cec2961eb7 upstream.

beacons configuration SHOULD be done only if the STA is associated.

Signed-off-by: Senthil Balasubramanian &lt;senthilkumar@atheros.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Luis R. Rodriguez &lt;lrodriguez@atheros.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ath9k: Enable TIM timer interrupt only when needed.</title>
<updated>2010-04-01T23:01:56Z</updated>
<author>
<name>Senthil Balasubramanian</name>
<email>senthilkumar@atheros.com</email>
</author>
<published>2010-03-11T20:10:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=eb4265ff035b929a44fe58b8f2fd09a45e7fea07'/>
<id>urn:sha1:eb4265ff035b929a44fe58b8f2fd09a45e7fea07</id>
<content type='text'>
commit 3f7c5c10e9dc6bf90179eb9f7c06151d508fb324 upstream.

The TIM timer interrupt is enabled even before the ACK of nullqos
is received which is unnecessary.

Also clean up the CONF_PS part of config callback properly for
better readability.

Signed-off-by: Senthil Balasubramanian &lt;senthilkumar@atheros.com&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Luis R. Rodriguez &lt;lrodriguez@atheros.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>ath9k: fix BUG_ON triggered by PAE frames</title>
<updated>2010-04-01T23:01:49Z</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2010-03-12T03:02:43Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c439578e379c3ffe8ffe4669f2e2af7ecfca74f1'/>
<id>urn:sha1:c439578e379c3ffe8ffe4669f2e2af7ecfca74f1</id>
<content type='text'>
commit 4fdec031b9169b3c17938b9c4168f099f457169c upstream.

When I initially stumbled upon sequence number problems with PAE frames
in ath9k, I submitted a patch to remove all special cases for PAE
frames and let them go through the normal transmit path.
Out of concern about crypto incompatibility issues, this change was
merged instead:

commit 6c8afef551fef87a3bf24f8a74c69a7f2f72fc82
Author: Sujith &lt;Sujith.Manoharan@atheros.com&gt;
Date:   Tue Feb 9 10:07:00 2010 +0530

    ath9k: Fix sequence numbers for PAE frames

After a lot of testing, I'm able to reliably trigger a driver crash on
rekeying with current versions with this change in place.
It seems that the driver does not support sending out regular MPDUs with
the same TID while an A-MPDU session is active.
This leads to duplicate entries in the TID Tx buffer, which hits the
following BUG_ON in ath_tx_addto_baw():

    index  = ATH_BA_INDEX(tid-&gt;seq_start, bf-&gt;bf_seqno);
    cindex = (tid-&gt;baw_head + index) &amp; (ATH_TID_MAX_BUFS - 1);

    BUG_ON(tid-&gt;tx_buf[cindex] != NULL);

I believe until we actually have a reproducible case of an
incompatibility with another AP using no PAE special cases, we should
simply get rid of this mess.

This patch completely fixes my crash issues in STA mode and makes it
stay connected without throughput drops or connectivity issues even
when the AP is configured to a very short group rekey interval.

Signed-off-by: Felix Fietkau &lt;nbd@openwrt.org&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
</feed>
