1. 16 2月, 2010 25 次提交
  2. 13 2月, 2010 2 次提交
  3. 12 2月, 2010 3 次提交
  4. 11 2月, 2010 2 次提交
  5. 08 2月, 2010 1 次提交
    • L
      Fix race in tty_fasync() properly · 80e1e823
      Linus Torvalds 提交于
      This reverts commit 70362511 ("tty: fix race in tty_fasync") and
      commit b04da8bf ("fnctl: f_modown should call write_lock_irqsave/
      restore") that tried to fix up some of the fallout but was incomplete.
      
      It turns out that we really cannot hold 'tty->ctrl_lock' over calling
      __f_setown, because not only did that cause problems with interrupt
      disables (which the second commit fixed), it also causes a potential
      ABBA deadlock due to lock ordering.
      
      Thanks to Tetsuo Handa for following up on the issue, and running
      lockdep to show the problem.  It goes roughly like this:
      
       - f_getown gets filp->f_owner.lock for reading without interrupts
         disabled, so an interrupt that happens while that lock is held can
         cause a lockdep chain from f_owner.lock -> sighand->siglock.
      
       - at the same time, the tty->ctrl_lock -> f_owner.lock chain that
         commit 70362511 introduced, together with the pre-existing
         sighand->siglock -> tty->ctrl_lock chain means that we have a lock
         dependency the other way too.
      
      So instead of extending tty->ctrl_lock over the whole __f_setown() call,
      we now just take a reference to the 'pid' structure while holding the
      lock, and then release it after having done the __f_setown.  That still
      guarantees that 'struct pid' won't go away from under us, which is all
      we really ever needed.
      Reported-and-tested-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Acked-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Acked-by: NAmérico Wang <xiyou.wangcong@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      80e1e823
  6. 07 2月, 2010 4 次提交
  7. 06 2月, 2010 3 次提交
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · 9d9c3a51
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
        ASoC: pandora: Add APLL supply to fix audio output
        ALSA: ice1724 - aureon - fix wm8770 volume offset
        ALSA: cosmetic: make hda intel interrupt name consistent with others
        ALSA: hda - Delay switching to polling mode if an interrupt was missing
        ALSA: ctxfi - fix PTP address initialization
      9d9c3a51
    • J
      hwmon: (w83781d) Request I/O ports individually for probing · b0bcdd3c
      Jean Delvare 提交于
      Different motherboards have different PNP declarations for
      W83781D/W83782D chips. Some declare the whole range of I/O ports (8
      ports), some declare only the useful ports (2 ports at offset 5) and
      some declare fancy ranges, for example 4 ports at offset 4. To
      properly handle all cases, request all ports individually for probing.
      After we have determined that we really have a W83781D or W83782D
      chip, the useful port range will be requested again, as a single
      block.
      
      I did not see a board which needs this yet, but I know of one for lm78
      driver and I'd like to keep the logic of these two drivers in sync.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: stable@kernel.org
      b0bcdd3c
    • J
      hwmon: (lm78) Request I/O ports individually for probing · 197027e6
      Jean Delvare 提交于
      Different motherboards have different PNP declarations for LM78/LM79
      chips. Some declare the whole range of I/O ports (8 ports), some
      declare only the useful ports (2 ports at offset 5) and some declare
      fancy ranges, for example 4 ports at offset 4. To properly handle all
      cases, request all ports individually for probing. After we have
      determined that we really have an LM78 or LM79 chip, the useful port
      range will be requested again, as a single block.
      
      This fixes the driver on the Olivetti M3000 DT 540, at least.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: stable@kernel.org
      197027e6