1. 03 9月, 2009 1 次提交
    • R
      NET: Fix possible corruption in bpqether driver · 3eb00275
      Ralf Baechle 提交于
      The bpq ether driver is modifying the data art of the skb by first
      dropping the KISS byte (a command byte for the radio) then prepending the
      length + 4 of the remaining AX.25 packet to be transmitted as a little
      endian 16-bit number.  If the high byte of the length has a different
      value than the dropped KISS byte users of clones of the skb may observe
      this as corruption.  This was observed with by running listen(8) -a which
      uses a packet socket which clones transmit packets.  The corruption will
      then typically be displayed for as a KISS "TX Delay" command for AX.25
      packets in the range of 252..508 bytes or any other KISS command for
      yet larger packets.
      
      Fixed by using skb_cow to create a private copy should the skb be cloned.
      Using skb_cow also allows us to cleanup the old logic to ensure sufficient
      headroom in the skb.
      
      While at it, replace a return of 0 from bpq_xmit with the proper constant
      NETDEV_TX_OK which is now being used everywhere else in this function.
      
      Affected: all 2.2, 2.4 and 2.6 kernels.
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      Reported-by: NJann Traschewski <jann@gmx.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3eb00275
  2. 01 9月, 2009 1 次提交
  3. 06 7月, 2009 1 次提交
  4. 17 6月, 2009 1 次提交
  5. 13 6月, 2009 1 次提交
  6. 10 3月, 2009 1 次提交
  7. 18 2月, 2009 2 次提交
    • H
      drivers/net/hamradio: fix sparse warning: context imbalance · e334f564
      Hannes Eder 提交于
      Impact: Attribute functions with __acquires(...) resp. __releases(...).
      
      Fix this sparse warnings:
        drivers/net/hamradio/bpqether.c:387:13: warning: context imbalance in 'bpq_seq_start' - wrong count at exit
        drivers/net/hamradio/bpqether.c:419:13: warning: context imbalance in 'bpq_seq_stop' - unexpected unlock
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e334f564
    • H
      drivers/net/hamradio: fix warning: format not a string literal and no ... · eb33ae24
      Hannes Eder 提交于
      Impact: Use 'static const char[]' instead of 'static char[]' and while
      being at it fix an issue in 'mkiss_init_driver', where in case of an
      error the status code was not passed to printk.
      
      Fix this warnings:
        drivers/net/hamradio/6pack.c: In function 'sixpack_init_driver':
        drivers/net/hamradio/6pack.c:802: warning: format not a string literal and no format arguments
        drivers/net/hamradio/bpqether.c: In function 'bpq_init_driver':
        drivers/net/hamradio/bpqether.c:609: warning: format not a string literal and no format arguments
        drivers/net/hamradio/mkiss.c: In function 'mkiss_init_driver':
        drivers/net/hamradio/mkiss.c:988: warning: format not a string literal and no format arguments
        drivers/net/hamradio/mkiss.c:991: warning: format not a string literal and no format arguments
        drivers/net/hamradio/scc.c: In function 'scc_init_driver':
        drivers/net/hamradio/scc.c:2109: warning: format not a string literal and no format arguments
        drivers/net/hamradio/yam.c: In function 'yam_init_driver':
        drivers/net/hamradio/yam.c:1094: warning: format not a string literal and no format arguments
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      eb33ae24
  8. 01 2月, 2009 1 次提交
  9. 22 1月, 2009 3 次提交
  10. 04 11月, 2008 1 次提交
  11. 28 10月, 2008 1 次提交
  12. 23 7月, 2008 1 次提交
  13. 18 7月, 2008 1 次提交
    • D
      netdev: Allocate multiple queues for TX. · e8a0464c
      David S. Miller 提交于
      alloc_netdev_mq() now allocates an array of netdev_queue
      structures for TX, based upon the queue_count argument.
      
      Furthermore, all accesses to the TX queues are now vectored
      through the netdev_get_tx_queue() and netdev_for_each_tx_queue()
      interfaces.  This makes it easy to grep the tree for all
      things that want to get to a TX queue of a net device.
      
      Problem spots which are not really multiqueue aware yet, and
      only work with one queue, can easily be spotted by grepping
      for all netdev_get_tx_queue() calls that pass in a zero index.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e8a0464c
  14. 09 7月, 2008 1 次提交
  15. 26 3月, 2008 1 次提交
  16. 11 10月, 2007 6 次提交
  17. 01 8月, 2007 1 次提交
  18. 26 4月, 2007 1 次提交
  19. 13 2月, 2007 1 次提交
  20. 09 12月, 2006 1 次提交
  21. 11 7月, 2006 1 次提交
  22. 01 7月, 2006 1 次提交
  23. 19 10月, 2005 1 次提交
    • R
      [PATCH] rcu in bpqether driver. · bc0a7438
      Ralf Baechle 提交于
      From Suzanne Wood <suzannew@cs.pdx.edu>:
      
      Clarify RCU implementation in bpqether.c.
      
      Because bpq_new_device() calls list_add_rcu() and bpq_free_device() calls
      list_del_rcu(), substitute list_for_each_entry_rcu() for
      list_for_each_entry() in bpq_get_ax25_dev() and in bpq_seq_start().
      
      Add rcu dereference protection in bpq_seq_next().
      
      The rcu_read_lock()/unlock() in bpq_device_event() are removed because
      netdev event handlers are called with RTNL locking in place.
      
      FYI: bpq_free_device() calls list_del_rcu() which, per list.h, requires
      synchronize_rcu() which can block or call_rcu() or call_rcu_bh() which
      cannot block.  Herbert Xu notes that synchronization is done here by
      unregister_netdevice().  This calls synchronize_net() which in turn uses
      synchronize_rcu().
      Signed-off-by: NRalf Baechle DL5RB <ralf@linux-mips.org>
      Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
      bc0a7438
  24. 13 9月, 2005 1 次提交
  25. 30 8月, 2005 1 次提交
    • D
      [NET]: Kill skb->real_dev · f2ccd8fa
      David S. Miller 提交于
      Bonding just wants the device before the skb_bond()
      decapsulation occurs, so simply pass that original
      device into packet_type->func() as an argument.
      
      It remains to be seen whether we can use this same
      exact thing to get rid of skb->input_dev as well.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f2ccd8fa
  26. 25 4月, 2005 1 次提交
  27. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4