1. 21 3月, 2006 21 次提交
  2. 20 3月, 2006 1 次提交
    • R
      [AX.25]: Fix potencial memory hole. · c7c694d1
      Ralf Baechle DL5RB 提交于
      If the AX.25 dialect chosen by the sysadmin is set to DAMA master / 3
      (or DAMA slave / 2, if CONFIG_AX25_DAMA_SLAVE=n) ax25_kick() will fall
      through the switch statement without calling ax25_send_iframe() or any
      other function that would eventually free skbn thus leaking the packet.
      
      Fix by restricting the sysctl inferface to allow only actually supported
      AX.25 dialects.
      
      The system administration mistake needed for this to happen is rather
      unlikely, so this is an uncritical hole.
      
      Coverity #651.
      Signed-off-by: NRalf Baechle DL5RB <ralf@linux-mips.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c7c694d1
  3. 18 3月, 2006 1 次提交
    • J
      [PATCH] ieee80211: Don't update network statistics from off-channel packets. · f44349f2
      James Ketrenos 提交于
      This patch fixes a problem in the ieee80211 probe response and beacon
      reception code that would use the packet statistics for a network even
      if they were received on a channel other than that which the network
      exists on.
      
      This causes a problem in overlapping channels where, for example, a
      strong AP on channel 2 could have its beacons received on channels 1 and
      3, but at much lower signal levels.  If scanning was done sequentially,
      this means the beacon received on channel 3 would update the AP's signal
      level as being much lower than it really is, which subsequently could
      cause that AP to be passed over and an alternate AP selected.
      Signed-off-by: NJames Ketrenos <jketreno@linux.intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      f44349f2
  4. 16 3月, 2006 2 次提交
  5. 14 3月, 2006 3 次提交
  6. 13 3月, 2006 7 次提交
  7. 12 3月, 2006 3 次提交
  8. 09 3月, 2006 1 次提交
    • D
      [PATCH] fix file counting · 529bf6be
      Dipankar Sarma 提交于
      I have benchmarked this on an x86_64 NUMA system and see no significant
      performance difference on kernbench.  Tested on both x86_64 and powerpc.
      
      The way we do file struct accounting is not very suitable for batched
      freeing.  For scalability reasons, file accounting was
      constructor/destructor based.  This meant that nr_files was decremented
      only when the object was removed from the slab cache.  This is susceptible
      to slab fragmentation.  With RCU based file structure, consequent batched
      freeing and a test program like Serge's, we just speed this up and end up
      with a very fragmented slab -
      
      llm22:~ # cat /proc/sys/fs/file-nr
      587730  0       758844
      
      At the same time, I see only a 2000+ objects in filp cache.  The following
      patch I fixes this problem.
      
      This patch changes the file counting by removing the filp_count_lock.
      Instead we use a separate percpu counter, nr_files, for now and all
      accesses to it are through get_nr_files() api.  In the sysctl handler for
      nr_files, we populate files_stat.nr_files before returning to user.
      
      Counting files as an when they are created and destroyed (as opposed to
      inside slab) allows us to correctly count open files with RCU.
      Signed-off-by: NDipankar Sarma <dipankar@in.ibm.com>
      Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      529bf6be
  9. 08 3月, 2006 1 次提交