1. 30 11月, 2009 1 次提交
    • A
      core: Fix user return notifier on fork() · 8e7cac79
      Avi Kivity 提交于
      fork() clones all thread_info flags, including
      TIF_USER_RETURN_NOTIFY; if the new task is first scheduled on a cpu
      which doesn't have user return notifiers set, this causes user
      return notifiers to trigger without any way of clearing itself.
      
      This is easy to trigger with a forky workload on the host in
      parallel with kvm, resulting in a cpu in an endless loop on the
      verge of returning to userspace.
      
      Fix by dropping the TIF_USER_RETURN_NOTIFY immediately after fork.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      LKML-Reference: <1259505288-16559-1-git-send-email-avi@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      8e7cac79
  2. 02 11月, 2009 1 次提交
    • S
      x86: Fix user return notifier put_cpu_var() invocation · 3c912b6e
      Stephen Rothwell 提交于
      Today's linux-next build (x86_64 allmodconfig) failed like this:
      
        kernel/user-return-notifier.c: In function
        'fire_user_return_notifiers': kernel/user-return-notifier.c:45:
        error: expected expression before ')' token
      
      Introduced by commit 7c68af6e
      ("core, x86: Add user return notifiers") from the tip and kvm trees
      but revealed by commit e0fdb0e0
      ("percpu: add __percpu for sparse") from the percpu tree.
      
      Before that percpu tree commit, "put_cpu_var()" would compile
      without error (even though it really needs a parameter).
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Avi Kivity <avi@redhat.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Christoph Lameter <cl@linux-foundation.org>
      LKML-Reference: <20091102161722.eea4358d.sfr@canb.auug.org.au>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      3c912b6e
  3. 26 10月, 2009 1 次提交
  4. 02 10月, 2009 1 次提交
    • A
      core, x86: Add user return notifiers · 7c68af6e
      Avi Kivity 提交于
      Add a general per-cpu notifier that is called whenever the kernel is
      about to return to userspace.  The notifier uses a thread_info flag
      and existing checks, so there is no impact on user return or context
      switch fast paths.
      
      This will be used initially to speed up KVM task switching by lazily
      updating MSRs.
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      LKML-Reference: <1253342422-13811-1-git-send-email-avi@redhat.com>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      7c68af6e
  5. 01 10月, 2009 32 次提交
  6. 30 9月, 2009 4 次提交
    • L
      Merge branch 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6 · 9c1fe834
      Linus Torvalds 提交于
      * 'pm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/suspend-2.6:
        PM / yenta: Fix cardbus suspend/resume regression
        PM / PCMCIA: Drop second argument of pcmcia_socket_dev_suspend()
      9c1fe834
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 5a4c8d75
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (33 commits)
        sony-laptop: re-read the rfkill state when resuming from suspend
        sony-laptop: check for rfkill hard block at load time
        wext: add back wireless/ dir in sysfs for cfg80211 interfaces
        wext: Add bound checks for copy_from_user
        mac80211: improve/fix mlme messages
        cfg80211: always get BSS
        iwlwifi: fix 3945 ucode info retrieval after failure
        iwlwifi: fix memory leak in command queue handling
        iwlwifi: fix debugfs buffer handling
        cfg80211: don't set privacy w/o key
        cfg80211: wext: don't display BSSID unless associated
        net: Add explicit bound checks in net/socket.c
        bridge: Fix double-free in br_add_if.
        isdn: fix netjet/isdnhdlc build errors
        atm: dereference of he_dev->rbps_virt in he_init_group()
        ax25: Add missing dev_put in ax25_setsockopt
        Revert "sit: stateless autoconf for isatap"
        net: fix double skb free in dcbnl
        net: fix nlmsg len size for skb when error bit is set.
        net: fix vlan_get_size to include vlan_flags size
        ...
      5a4c8d75
    • L
      Merge branch 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · e15daf6c
      Linus Torvalds 提交于
      * 'drm-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (25 commits)
        drm/radeon/kms: Convert R520 to new init path and associated cleanup
        drm/radeon/kms: Convert RV515 to new init path and associated cleanup
        drm: fix radeon DRM warnings when !CONFIG_DEBUG_FS
        drm: fix drm_fb_helper warning when !CONFIG_MAGIC_SYSRQ
        drm/r600: fix memory leak introduced with 64k malloc avoidance fix.
        drm/kms: make fb helper work for all drivers.
        drm/radeon/r600: fix offset handling in CS parser
        drm/radeon/kms/r600: fix forcing pci mode on agp cards
        drm/radeon/kms: fix for the extra pages copying.
        drm/radeon/kms/r600: add support for vline relocs
        drm/radeon/kms: fix some bugs in vline reloc
        drm/radeon/kms/r600: clamp vram to aperture size
        drm/kms: protect against fb helper not being created.
        drm/r600: get values from the passed in IB not the copy.
        drm: create gitignore file for radeon
        drm/radeon/kms: remove unneeded master create/destroy functions.
        drm/kms: start adding command line interface using fb.
        fb: change rules for global rules match.
        drm/radeon/kms: don't require up to 64k allocations. (v2)
        drm/radeon/kms: enable dac load detection by default.
        ...
      
      Trivial conflicts in drivers/gpu/drm/radeon/radeon_asic.h due to adding
      '->vga_set_state' function pointers.
      e15daf6c
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu · 07892acf
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu:
        percpu: make allocation failures more verbose
        percpu: make pcpu_setup_first_chunk() failures more verbose
        percpu: make embedding first chunk allocator check vmalloc space size
        sparc64: implement page mapping percpu first chunk allocator
        percpu: make pcpu_build_alloc_info() clear static buffers
        percpu: fix unit_map[] verification in pcpu_setup_first_chunk()
      07892acf