1. 05 Jul, 2010 27 commits
  2. 01 Jun, 2010 3 commits
  3. 26 May, 2010 10 commits
    • Greg Kroah-Hartman's avatar
      Linux 2.6.32.14 · 7b7a917a
      Greg Kroah-Hartman authored
      7b7a917a
    • Greg Kroah-Hartman's avatar
      Revert "parisc: Set PCI CLS early in boot." · 763f2ee6
      Greg Kroah-Hartman authored
      This reverts the following patch, which shouldn't have been applied
      to the .32 stable tree as it causes problems.
      
      
        commit 5fd4514b upstream.
      
        Set the PCI CLS early in the boot process to prevent
        device failures. In pcibios_set_master use the new
        pci_cache_line_size instead of a hard-coded value.
      Signed-off-by: default avatarCarlos O'Donell <carlos@codesourcery.com>
      Reviewed-by: default avatarGrant Grundler <grundler@google.com>
      Signed-off-by: default avatarKyle McMartin <kyle@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      763f2ee6
    • Herbert Xu's avatar
      crypto: authenc - Add EINPROGRESS check · 0ddd1167
      Herbert Xu authored
      commit 180ce7e8 upstream.
      
      When Steffen originally wrote the authenc async hash patch, he
      correctly had EINPROGRESS checks in place so that we did not invoke
      the original completion handler with it.
      
      Unfortuantely I told him to remove it before the patch was applied.
      
      As only MAY_BACKLOG request completion handlers are required to
      handle EINPROGRESS completions, those checks are really needed.
      
      This patch restores them.
      Reported-by: default avatarSebastian Andrzej Siewior <sebastian@breakpoint.cc>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0ddd1167
    • Luis R. Rodriguez's avatar
      Revert "ath9k: fix lockdep warning when unloading module" on stable kernels · 4ee20bc2
      Luis R. Rodriguez authored
      Johannes' patch 34e89507 titled:
      
      	mac80211: allow station add/remove to sleep
      
      changed the way mac80211 adds and removes peers. The new
      sta_add() / sta_remove() callbacks allowed the driver callbacks
      to sleep. Johannes also ported ath9k to use sta_add() / sta_remove()
      via the patch 4ca77860 titled:
      
      	ath9k: convert to new station add/remove callbacks
      
      but this patch forgot to address a change in locking issue which
      Ming Lei eventually found on his 2.6.33-wl #12 build. The 2.6.33-wl
      build includes code for the 802.11 subsystem for 2.6.34 though so did
      already have the above two patches (ath9k_sta_remove() on his trace),
      the 2.6.33 kernel did not however have these two patches. Ming eventually
      cured his lockdep warnign via the patch a9f042cb titled:
      
      	ath9k: fix lockdep warning when unloading module
      
      This went in to 2.6.34 and although it was not marked as a stable
      fix it did get trickled down and applied on both 2.6.33 and 2.6.32.
      
      In review, the culprits:
      
      	mac80211: allow station add/remove to sleep
      git describe --contains 34e89507
      v2.6.34-rc1~233^2~49^2~107
      
      	ath9k: convert to new station add/remove callbacks
      git describe --contains 4ca77860
      v2.6.34-rc1~233^2~49^2~10
      
      	ath9k: fix lockdep warning when unloading module
      
      This last one trickled down to 2.6.33 (OK), 2.6.33 (invalid) and 2.6.32 (invalid).
      
      git describe --contains a9f042cb
      v2.6.34-rc2~48^2~77^2~7
      git describe --contains 0524bcfa
      v2.6.33.2~125
      git describe --contains 0dcc9985
      v2.6.32.11~79
      
      The patch titled "ath9k: fix lockdep warning when unloading module"
      should be reverted on both 2.6.33 and 2.6.32 as it is invalid and
      actually ended up causing the following warning:
      
      ADDRCONF(NETDEV_CHANGE): wlan31: link becomes ready
      phy0: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 txop=0
      phy0: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 txop=0
      phy0: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 txop=94
      phy0: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 txop=47
      phy0: device now idle
      ------------[ cut here ]------------
      WARNING: at kernel/softirq.c:143 local_bh_enable_ip+0x7b/0xa0()
      Hardware name: 7660A14
      Modules linked in: ath9k(-) mac80211 ath cfg80211 <whatever-bleh-etc>
      Pid: 2003, comm: rmmod Not tainted 2.6.32.11 #6
      Call Trace:
       [<ffffffff8105d178>] warn_slowpath_common+0x78/0xb0
       [<ffffffff8105d1bf>] warn_slowpath_null+0xf/0x20
       [<ffffffff81063f8b>] local_bh_enable_ip+0x7b/0xa0
       [<ffffffff815121e4>] _spin_unlock_bh+0x14/0x20
       [<ffffffffa034aea5>] ath_tx_node_cleanup+0x185/0x1b0 [ath9k]
       [<ffffffffa0345597>] ath9k_sta_notify+0x57/0xb0 [ath9k]
       [<ffffffffa02ac51a>] __sta_info_unlink+0x15a/0x260 [mac80211]
       [<ffffffffa02ac658>] sta_info_unlink+0x38/0x60 [mac80211]
       [<ffffffffa02b3fbe>] ieee80211_set_disassoc+0x1ae/0x210 [mac80211]
       [<ffffffffa02b42d9>] ieee80211_mgd_deauth+0x109/0x110 [mac80211]
       [<ffffffffa02ba409>] ieee80211_deauth+0x19/0x20 [mac80211]
       [<ffffffffa028160e>] __cfg80211_mlme_deauth+0xee/0x130 [cfg80211]
       [<ffffffff81118540>] ? init_object+0x50/0x90
       [<ffffffffa0285429>] __cfg80211_disconnect+0x159/0x1d0 [cfg80211]
       [<ffffffffa027125f>] cfg80211_netdev_notifier_call+0x10f/0x450 [cfg80211]
       [<ffffffff81514ca7>] notifier_call_chain+0x47/0x90
       [<ffffffff8107f501>] raw_notifier_call_chain+0x11/0x20
       [<ffffffff81442d66>] call_netdevice_notifiers+0x16/0x20
       [<ffffffff8144352d>] dev_close+0x4d/0xa0
       [<ffffffff814439a8>] rollback_registered+0x48/0x120
       [<ffffffff81443a9d>] unregister_netdevice+0x1d/0x70
       [<ffffffffa02b6cc4>] ieee80211_remove_interfaces+0x84/0xc0 [mac80211]
       [<ffffffffa02aa072>] ieee80211_unregister_hw+0x42/0xf0 [mac80211]
       [<ffffffffa0347bde>] ath_detach+0x8e/0x180 [ath9k]
       [<ffffffffa0347ce1>] ath_cleanup+0x11/0x50 [ath9k]
       [<ffffffffa0351a2c>] ath_pci_remove+0x1c/0x20 [ath9k]
       [<ffffffff8129d712>] pci_device_remove+0x32/0x60
       [<ffffffff81332373>] __device_release_driver+0x53/0xb0
       [<ffffffff81332498>] driver_detach+0xc8/0xd0
       [<ffffffff81331405>] bus_remove_driver+0x85/0xe0
       [<ffffffff81332a5a>] driver_unregister+0x5a/0x90
       [<ffffffff8129da00>] pci_unregister_driver+0x40/0xb0
       [<ffffffffa03518d0>] ath_pci_exit+0x10/0x20 [ath9k]
       [<ffffffffa0353cd5>] ath9k_exit+0x9/0x2a [ath9k]
       [<ffffffff81092838>] sys_delete_module+0x1a8/0x270
       [<ffffffff8107ebe9>] ? up_read+0x9/0x10
       [<ffffffff81011f82>] system_call_fastpath+0x16/0x1b
      ---[ end trace fad957019ffdd40b ]---
      phy0: Removed STA 00:22:6b:56:fd:e8
      phy0: Destroyed STA 00:22:6b:56:fd:e8
      wlan31: deauthenticating from 00:22:6b:56:fd:e8 by local choice (reason=3)
      ath9k 0000:16:00.0: PCI INT A disabled
      
      The original lockdep fixed an issue where due to the new changes
      the driver was not disabling the bottom halves but it is incorrect
      to do this on the older kernels since IRQs are already disabled.
      
      Cc: Ming Lei <tom.leiming@gmail.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: John W. Linville <linville@tuxdriver.com>
      Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      4ee20bc2
    • Ryusuke Konishi's avatar
      nilfs2: fix sync silent failure · 7823f8d6
      Ryusuke Konishi authored
      commit 973bec34 upstream.
      
      As of 32a88aa1, __sync_filesystem() will return 0 if s_bdi is not set.
      And nilfs does not set s_bdi anywhere.  I noticed this problem by the
      warning introduced by the recent commit 5129a469 ("Catch filesystem
      lacking s_bdi").
      
       WARNING: at fs/super.c:959 vfs_kern_mount+0xc5/0x14e()
       Hardware name: PowerEdge 2850
       Modules linked in: nilfs2 loop tpm_tis tpm tpm_bios video shpchp pci_hotplug output dcdbas
       Pid: 3773, comm: mount.nilfs2 Not tainted 2.6.34-rc6-debug #38
       Call Trace:
        [<c1028422>] warn_slowpath_common+0x60/0x90
        [<c102845f>] warn_slowpath_null+0xd/0x10
        [<c1095936>] vfs_kern_mount+0xc5/0x14e
        [<c1095a03>] do_kern_mount+0x32/0xbd
        [<c10a811e>] do_mount+0x671/0x6d0
        [<c1073794>] ? __get_free_pages+0x1f/0x21
        [<c10a684f>] ? copy_mount_options+0x2b/0xe2
        [<c107b634>] ? strndup_user+0x48/0x67
        [<c10a81de>] sys_mount+0x61/0x8f
        [<c100280c>] sysenter_do_call+0x12/0x32
      
      This ensures to set s_bdi for nilfs and fixes the sync silent failure.
      Signed-off-by: default avatarRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
      Acked-by: default avatarJens Axboe <jens.axboe@oracle.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7823f8d6
    • Kees Cook's avatar
      mmap_min_addr check CAP_SYS_RAWIO only for write · 734c542a
      Kees Cook authored
      commit 4ae69e6b upstream.
      
      Redirecting directly to lsm, here's the patch discussed on lkml:
      http://lkml.org/lkml/2010/4/22/219
      
      The mmap_min_addr value is useful information for an admin to see without
      being root ("is my system vulnerable to kernel NULL pointer attacks?") and
      its setting is trivially easy for an attacker to determine by calling
      mmap() in PAGE_SIZE increments starting at 0, so trying to keep it private
      has no value.
      
      Only require CAP_SYS_RAWIO if changing the value, not reading it.
      
      Comment from Serge :
      
        Me, I like to write my passwords with light blue pen on dark blue
        paper, pasted on my window - if you're going to get my password, you're
        gonna get a headache.
      Signed-off-by: default avatarKees Cook <kees.cook@canonical.com>
      Acked-by: default avatarSerge Hallyn <serue@us.ibm.com>
      Signed-off-by: default avatarJames Morris <jmorris@namei.org>
      (cherry picked from commit 822cceec)
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      734c542a
    • Tomas Henzl's avatar
      megaraid_sas: fix for 32bit apps · 9e79d530
      Tomas Henzl authored
      commit b3dc1a21 upstream.
      
      It looks like this patch -
      
      commit 7b2519af
      Author: Yang, Bo <Bo.Yang@lsi.com>
      Date:   Tue Oct 6 14:52:20 2009 -0600
      
          [SCSI] megaraid_sas: fix 64 bit sense pointer truncation
      
      has caused a problem for 32bit programs with 64bit os -
      
      http://bugzilla.kernel.org/show_bug.cgi?id=15001
      
      fix by converting the user space 32bit pointer to a 64 bit one when
      needed.
      
      [jejb: fix up some 64 bit warnings]
      Signed-off-by: default avatarTomas Henzl <thenzl@redhat.com>
      Cc: Bo Yang <Bo.Yang@lsi.com>
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      9e79d530
    • David Howells's avatar
      CacheFiles: Fix error handling in cachefiles_determine_cache_security() · 58e4a597
      David Howells authored
      commit 7ac512aa upstream.
      
      cachefiles_determine_cache_security() is expected to return with a
      security override in place.  However, if set_create_files_as() fails, we
      fail to do this.  In this case, we should just reinstate the security
      override that was set by the caller.
      
      Furthermore, if set_create_files_as() fails, we should dispose of the
      new credentials we were in the process of creating.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      58e4a597
    • Christian Lamparter's avatar
      p54: disable channels with incomplete calibration data sets · 7bb08a1c
      Christian Lamparter authored
      commit 93a59d75 upstream.
      
      James Grossmann [1] reported that p54 spews out confusing
      messages instead of preventing the mayhem from happening.
      
      the reason is that "p54: generate channel list dynamically"
      is not perfect. It didn't discard incomplete channel data
      sets and therefore p54 advertised to support them as well.
      
      [1]: http://marc.info/?l=linux-wireless&m=125699830215890
      
      Cc: Larry Finger <Larry.Finger@lwfinger.net>
      Reported-by: default avatarJames Grossmann <cctsurf@gmail.com>
      Signed-off-by: default avatarChristian Lamparter <chunkeey@web.de>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      7bb08a1c
    • Wey-Yi Guy's avatar
      iwlwifi: clear all the stop_queue flag after load firmware · 79ec1d30
      Wey-Yi Guy authored
      commit a9e10fb9 upstream.
      
      All the queues are awake and ready to use after loading firmware,
      for firmware reload case, if any queues was stopped before
      reload, mac80211 will wake those queues after restart hardware, so make
      sure all the flag used to keep track of the queue status are
      reset correctly.
      Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      79ec1d30