Search Linux Wireless

Re: memory clobber in rx path, maybe related to ath9k.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/07/2010 11:29 AM, Luis R. Rodriguez wrote:
On Thu, Oct 7, 2010 at 11:14 AM, Johannes Berg
<johannes@xxxxxxxxxxxxxxxx>  wrote:
On Thu, 2010-10-07 at 10:33 -0700, Ben Greear wrote:
In case it helps, here is a dump of where the corrupted SKB was deleted.

I wonder, do you have a machine with a decent IOMMU? Adding IOMMU
debugging into the mix could help you figure out if it's a DMA problem.

Ben, how much traffic are you RX'ing on these virtual interfaces?

I disabled my user-space application, and this script alone can reproduce
the problem fairly quickly on my system.  You will need to change some
of those first variables.  Just start it and wait a few minutes and
watch the splats show on the console :)

Note that I am not generating any traffic, but the wpa_supplicants are
doing their thing of course...

I'm using the kernel found here:
http://dmz2.candelatech.com/git/gitweb.cgi?p=linux.wireless-testing.ct/.git;a=summary

It's latest wireless-testing with some of my own patches, and some
I've gathered from here an there.  I doubt I'm causing this problem,
but if you can't reproduce it with this script on your kernels,
I can try with base wireless-testing or whatever you are using.


#!/usr/bin/perl

use strict;

my $iw = "./local/sbin/iw";
my $ip = "./local/sbin/ip";
my $wpa_s = "./local/bin/wpa_supplicant";
my $ssid = "candela-n";
my $key = "wpadmz123";

my $phy = "phy0";
my $max = 32;
my $i;
my $bmac = "00:01:02:03:04:";
my $cmd;

# Create stations
for ($i = 0; $i<$max; $i++) {
  runCmd("$iw phy $phy interface add sta$i type station");
  my $mc5 = "$i";
  if (length($mc5) == 1) {
    $mc5 = "0$mc5"; # pad mac octet
  }
  my $mac = "$bmac$mc5";
  runCmd("$ip link set sta$i address $mac");

  runCmd("$iw dev sta$i set power_save off");
}

# Bring them up with WPA
for ($i = 0; $i<$max; $i++) {
  open(FD, ">sta$i" . "_wpa.conf") || die("Couldn't open file: $!\n");
  print FD "
ctrl_interface=/var/run/wpa_supplicant
fast_reauth=1
#can_scan_one=1
network={
    ssid=\"$ssid\"
    proto=WPA
    key_mgmt=WPA-PSK
    psk=\"$key\"
    pairwise=TKIP CCMP
    group=TKIP CCMP
}
";
  runCmd("$wpa_s -B -i sta$i -c sta$i" . "_wpa.conf -P sta$i" . "_wpa.pid -t -f sta$i" . "_wpa.log");
}


sub runCmd {
  my $cmd = shift;
  print "$cmd\n";
  `$cmd`;
}


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux