1. 08 Apr, 2010 4 commits
  2. 07 Apr, 2010 5 commits
  3. 06 Apr, 2010 3 commits
  4. 03 Apr, 2010 1 commit
  5. 02 Apr, 2010 18 commits
  6. 01 Apr, 2010 1 commit
  7. 31 Mar, 2010 5 commits
  8. 30 Mar, 2010 3 commits
    • Steven J. Magnani's avatar
      net: Fix oops from tcp_collapse() when using splice() · baff42ab
      Steven J. Magnani authored
      tcp_read_sock() can have a eat skbs without immediately advancing copied_seq.
      This can cause a panic in tcp_collapse() if it is called as a result
      of the recv_actor dropping the socket lock.
      
      A userspace program that splices data from a socket to either another
      socket or to a file can trigger this bug.
      Signed-off-by: default avatarSteven J. Magnani <steve@digidescorp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      baff42ab
    • Daniel Mack's avatar
      net/wireless/libertas: do not call wiphy_unregister() w/o wiphy_register() · 73714004
      Daniel Mack authored
      The libertas driver calls wiphy_unregister() without a prior
      wiphy_register() when a devices fails initialization. Fix this by
      introducing a private flag.
      
      [    9.310000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
      
      [...]
      
      [    9.330000] [<c0311310>] (wiphy_unregister+0xfc/0x19c) from [<bf00c9ec>] (lbs_cfg_free+0x70/0x9c [libertas])
      [    9.330000] [<bf00c9ec>] (lbs_cfg_free+0x70/0x9c [libertas]) from [<bf014fdc>] (lbs_remove_card+0x180/0x210 [libertas])
      [    9.330000] [<bf014fdc>] (lbs_remove_card+0x180/0x210 [libertas]) from [<bf035394>] (if_sdio_probe+0xdc4/0xef4 [libertas_sdio])
      [    9.330000] [<bf035394>] (if_sdio_probe+0xdc4/0xef4 [libertas_sdio]) from [<c0230d14>] (sdio_bus_probe+0xd4/0xf0)
      [    9.330000] [<c0230d14>] (sdio_bus_probe+0xd4/0xf0) from [<c01a6034>] (driver_probe_device+0xa4/0x174)
      [    9.330000] [<c01a6034>] (driver_probe_device+0xa4/0x174) from [<c01a6164>] (__driver_attach+0x60/0x84)
      [    9.330000] [<c01a6164>] (__driver_attach+0x60/0x84) from [<c01a5854>] (bus_for_each_dev+0x4c/0x8c)
      [    9.330000] [<c01a5854>] (bus_for_each_dev+0x4c/0x8c) from [<c01a50e4>] (bus_add_driver+0xa0/0x228)
      [    9.330000] [<c01a50e4>] (bus_add_driver+0xa0/0x228) from [<c01a6470>] (driver_register+0xc0/0x150)
      [    9.330000] [<c01a6470>] (driver_register+0xc0/0x150) from [<bf03a06c>] (if_sdio_init_module+0x6c/0x108 [libertas_sdio])
      [    9.330000] [<bf03a06c>] (if_sdio_init_module+0x6c/0x108 [libertas_sdio]) from [<c00263ac>] (do_one_initcall+0x5c/0x1bc)
      [    9.330000] [<c00263ac>] (do_one_initcall+0x5c/0x1bc) from [<c0069f80>] (sys_init_module+0xc0/0x1f0)
      [    9.330000] [<c0069f80>] (sys_init_module+0xc0/0x1f0) from [<c0026f00>] (ret_fast_syscall+0x0/0x30)
      Signed-off-by: default avatarDaniel Mack <daniel@caiaq.de>
      Cc: Dan Williams <dcbw@redhat.com>
      Cc: John W. Linville <linville@tuxdriver.com>
      Cc: Holger Schurig <hs4233@mail.mn-solutions.de>
      Cc: Bing Zhao <bzhao@marvell.com>
      Cc: libertas-dev@lists.infradead.org
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      73714004
    • Dan Carpenter's avatar
      iwlwifi: range checking issue · 8e1a53c6
      Dan Carpenter authored
      IWL_RATE_COUNT is 13 and IWL_RATE_COUNT_LEGACY is 12.
      
      IWL_RATE_COUNT_LEGACY is the right one here because iwl3945_rates
      doesn't support 60M and also that's how "rates" is defined in
      iwlcore_init_geos() from drivers/net/wireless/iwlwifi/iwl-core.c.
      
              rates = kzalloc((sizeof(struct ieee80211_rate) * IWL_RATE_COUNT_LEGACY),
                              GFP_KERNEL);
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Cc: stable@kernel.org
      Acked-by: default avatarZhu Yi <yi.zhu@intel.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      8e1a53c6