Skip to content
  1. Aug 23, 2012
    • Avi Kivity's avatar
      KVM: x86 emulator: use stack size attribute to mask rsp in stack ops · 5ad105e5
      Avi Kivity authored
      The sub-register used to access the stack (sp, esp, or rsp) is not
      determined by the address size attribute like other memory references,
      but by the stack segment's B bit (if not in x86_64 mode).
      
      Fix by using the existing stack_mask() to figure out the correct mask.
      
      This long-existing bug was exposed by a combination of a27685c3
      
      
      (emulate invalid guest state by default), which causes many more
      instructions to be emulated, and a seabios change (possibly a bug) which
      causes the high 16 bits of esp to become polluted across calls to real
      mode software interrupts.
      
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
      Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
      5ad105e5
  2. Aug 22, 2012
    • Takuya Yoshikawa's avatar
      KVM: MMU: Fix mmu_shrink() so that it can free mmu pages as intended · 35f2d16b
      Takuya Yoshikawa authored
      Although the possible race described in
      
        commit 85b70591
        KVM: MMU: fix shrinking page from the empty mmu
      
      was correct, the real cause of that issue was a more trivial bug of
      mmu_shrink() introduced by
      
        commit 19526396
      
      
        KVM: MMU: do not iterate over all VMs in mmu_shrink()
      
      Here is the bug:
      
      	if (kvm->arch.n_used_mmu_pages > 0) {
      		if (!nr_to_scan--)
      			break;
      		continue;
      	}
      
      We skip VMs whose n_used_mmu_pages is not zero and try to shrink others:
      in other words we try to shrink empty ones by mistake.
      
      This patch reverses the logic so that mmu_shrink() can free pages from
      the first VM whose n_used_mmu_pages is not zero.  Note that we also add
      comments explaining the role of nr_to_scan which is not practically
      important now, hoping this will be improved in the future.
      
      Signed-off-by: default avatarTakuya Yoshikawa <yoshikawa.takuya@oss.ntt.co.jp>
      Cc: Gleb Natapov <gleb@redhat.com>
      Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
      35f2d16b
  3. Aug 16, 2012
  4. Aug 05, 2012
  5. Aug 04, 2012
    • Linus Torvalds's avatar
      Merge branch 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · e7882d6c
      Linus Torvalds authored
      Pull VFS fixes and cleanups from Al Viro.
      
      Most of this is the series to remove sync_supers() and the
      ->write_supers VFS callback from Artem Bityutskiy.  One commit to do the
      actual removal work, a whole series of commits to fix up stale comments
      etc all over the tree.
      
      There's also a regression fix for an incorrect use of mnt_drop_write()
      in do_dentry_open().
      
      * 'for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        missed mnt_drop_write() in do_dentry_open()
        UBIFS: nuke pdflush from comments
        gfs2: nuke pdflush from comments
        drbd: nuke pdflush from comments
        nilfs2: nuke write_super from comments
        hfs: nuke write_super from comments
        vfs: nuke pdflush from comments
        jbd/jbd2: nuke write_super from comments
        btrfs: nuke pdflush from comments
        btrfs: nuke write_super from comments
        ext4: nuke pdflush from comments
        ext4: nuke write_super from comments
        ext3: nuke write_super from comments
        Documentation: fix the VM knobs descritpion WRT pdflush
        Documentation: get rid of write_super
        vfs: kill write_super and sync_supers
      e7882d6c
    • Al Viro's avatar
      missed mnt_drop_write() in do_dentry_open() · fe7c8051
      Al Viro authored
      
      
      This one ought to be __mnt_drop_write(), to match __mnt_want_write()
      in the beginning...
      
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      fe7c8051
    • Artem Bityutskiy's avatar
      UBIFS: nuke pdflush from comments · 5c57f20b
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from UBIFS comments.
      
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      5c57f20b
    • Artem Bityutskiy's avatar
      gfs2: nuke pdflush from comments · e76e0ec9
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from gfs comments.
      
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      e76e0ec9
    • Artem Bityutskiy's avatar
      drbd: nuke pdflush from comments · d97482ed
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from drbd comments.
      
      Cc: drbd-dev@lists.linbit.com
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      d97482ed
    • Artem Bityutskiy's avatar
      nilfs2: nuke write_super from comments · 166ac34b
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from ntfs.
      
      Cc: KONISHI Ryusuke <konishi.ryusuke@lab.ntt.co.jp>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      166ac34b
    • Artem Bityutskiy's avatar
      hfs: nuke write_super from comments · 50640bcc
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from hfs.
      
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      50640bcc
    • Artem Bityutskiy's avatar
      vfs: nuke pdflush from comments · 0d5c3eba
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from vfs comments.
      
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      0d5c3eba
    • Artem Bityutskiy's avatar
      jbd/jbd2: nuke write_super from comments · 12810ad7
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from various jbd and jbd2.
      
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Jan Kara <jack@suse.cz>
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      12810ad7
    • Artem Bityutskiy's avatar
      btrfs: nuke pdflush from comments · b2570314
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from btrfs comments.
      
      Cc: Chris Mason <chris.mason@fusionio.com>
      Cc: linux-btrfs@vger.kernel.org
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      b2570314
    • Artem Bityutskiy's avatar
      btrfs: nuke write_super from comments · 34eaadaf
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from btrfs.
      
      Cc: Chris Mason <chris.mason@fusionio.com>
      Cc: linux-btrfs@vger.kernel.org
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      34eaadaf
    • Artem Bityutskiy's avatar
      ext4: nuke pdflush from comments · f6463b0d
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, so this patch removes references to pdflush
      from ext4 comments.
      
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Cc: Andreas Dilger <adilger.kernel@dilger.ca>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      f6463b0d
    • Artem Bityutskiy's avatar
      ext4: nuke write_super from comments · 7652bdfc
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from ext3.
      
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Cc: Andreas Dilger <adilger.kernel@dilger.ca>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      7652bdfc
    • Artem Bityutskiy's avatar
      ext3: nuke write_super from comments · d3009c6c
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from ext3.
      
      Cc: Jan Kara <jack@suse.cz>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Andreas Dilger <adilger.kernel@dilger.ca>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      d3009c6c
    • Artem Bityutskiy's avatar
      Documentation: fix the VM knobs descritpion WRT pdflush · 6601fac8
      Artem Bityutskiy authored
      
      
      The pdflush thread is long gone, however we still mention it incorrectly in the
      kernel documentation. This patch fixes the situation.
      
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      6601fac8
    • Artem Bityutskiy's avatar
      Documentation: get rid of write_super · 34e5053f
      Artem Bityutskiy authored
      
      
      The '->write_super' superblock method is gone, and this patch removes all the
      references to 'write_super' from various pieces of the kernel documentation.
      
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      34e5053f
    • Artem Bityutskiy's avatar
      vfs: kill write_super and sync_supers · f0cd2dbb
      Artem Bityutskiy authored
      
      
      Finally we can kill the 'sync_supers' kernel thread along with the
      '->write_super()' superblock operation because all the users are gone.
      Now every file-system is supposed to self-manage own superblock and
      its dirty state.
      
      The nice thing about killing this thread is that it improves power management.
      Indeed, 'sync_supers' is a source of monotonic system wake-ups - it woke up
      every 5 seconds no matter what - even if there were no dirty superblocks and
      even if there were no file-systems using this service (e.g., btrfs and
      journalled ext4 do not need it). So it was wasting power most of the time. And
      because the thread was in the core of the kernel, all systems had to have it.
      So I am quite happy to make it go away.
      
      Interestingly, this thread is a left-over from the pdflush kernel thread which
      was a self-forking kernel thread responsible for all the write-back in old
      Linux kernels. It was turned into per-block device BDI threads, and
      'sync_supers' was a left-over. Thus, R.I.P, pdflush as well.
      
      Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      f0cd2dbb
    • Linus Torvalds's avatar
      Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux · d8579fd8
      Linus Torvalds authored
      Pull ACPI and power management fixes from Len Brown:
       "A 3.3 sleep regression fixed, numa bugfix, plus some minor cleanups"
      
      * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
        ACPI processor: Fix tick_broadcast_mask online/offline regression
        ACPI: Only count valid srat memory structures
        ACPI: Untangle a return statement for better readability
        ACPI / PCI: Do not try to acquire _OSC control if that is hopeless
        ACPI: delete _GTS/_BFS support
        ACPI/x86: revert 'x86, acpi: Call acpi_enter_sleep_state via an asmlinkage C function from assembler'
        ACPI: replace strlen("string") with sizeof("string") -1
        ACPI / PM: Fix build warning in sleep.c for CONFIG_ACPI_SLEEP unset
      d8579fd8
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.open-osd.org/linux-open-osd · d42d1dab
      Linus Torvalds authored
      Pull exofs update from Boaz Harrosh:
       "They are all mostly fixes, except the most important patch by Artem
        Bityutskiy which removes the use of s_dirt.  After this patch s_dirt
        can be completely removed from the tree."
      
      * 'for-linus' of git://git.open-osd.org/linux-open-osd:
        ore: Fix out-of-bounds access in _ios_obj()
        exofs: Use proper max_IO calculations from ore
        exofs: Fix __r4w_get_page when offset is beyond i_size
        exofs: stop using s_dirt
        exofs: readpage_strip: Add a BUG_ON to check for PageLocked(page)
      d42d1dab
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/virt/kvm/kvm · d79095ee
      Linus Torvalds authored
      Pull KVM bug fixes from Marcelo Tosatti:
       - Fix DS/ES segment register corruption on x86_32.
       - Fix kvmclock wallclock migration offset.
       - Fix PIT interrupt ACK vs system reset logic bug.
      
      * git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: VMX: Fix ds/es corruption on i386 with preemption
        KVM: x86: apply kvmclock offset to guest wall clock time
        KVM: PIC: call ack notifiers for irqs that are dropped form irr
      d79095ee
    • Linus Torvalds's avatar
      Merge tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · d667319a
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A bunch of small fixes for ASoC, mainly against regressions due to the
        defaulting regmap i/o, in addition to a HD-audio fixup."
      
      * tag 'sound-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ASoC: core: Fix check before defaulting to regmap
        ALSA: hda - Support dock on Lenovo Thinkpad T530 with ALC269VC
        ASoC: wm8962: Allow VMID time to fully ramp
        ASoC: AC97 doesn't use regmap by default
        ASoC: sgtl5000: enable VAG_POWER for LINE_IN
        ASoC: ab8500: Inform SoC Core that we have our own I/O arrangements
        ASoC: omap: Add missing modules aliases to get sound working on omap devices
        sound: tegra_alc5632: Adjust to of_get_named_gpio() change
        sound: tegra_wm8903: Adjust to of_get_named_gpio() change
        ASoC: mc13783: Provide codec->control_data
        ASoC: ux500: Include the correct header files
        ASoC: wm8994: Hold runtime PM reference while handling mic and jack IRQs
        ASoC: sgtl5000: remove unneeded snd_soc_dapm_new_widgets in probe
        ASoC: mxs-saif: set a base clock rate for EXTMASTER mode work
        ASoC: mxs-saif: fix clock prepare and enable unbalance issue
        ASoC: wm8994: Ensure there are enough BCLKs for four channels
      d667319a
    • Linus Torvalds's avatar
      Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · c4e62d67
      Linus Torvalds authored
      Pull futex fixes from Ingo Molnar:
       "A couple of futex fixes from Darren Hart: two bugs reported by Dave
        Jones (found with his trinity test) and Dan Carpenter through static
        analysis.  The third found while debugging the first two."
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        futex: Forbid uaddr == uaddr2 in futex_wait_requeue_pi()
        futex: Fix bug in WARN_ON for NULL q.pi_state
        futex: Test for pi_mutex on fault in futex_wait_requeue_pi()
      c4e62d67
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 1ca0049f
      Linus Torvalds authored
      Pull x86 fixes from Ingo Molnar:
       "Various fixes"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86-64, kcmp: The kcmp system call can be common
        arch/x86/kernel/kdebugfs.c: Ensure a consistent return value in error case
        x86/mce: Add quirk for instruction recovery on Sandy Bridge processors
        x86/mce: Move MCACOD defines from mce-severity.c to <asm/mce.h>
        x86/ioapic: Fix NULL pointer dereference on CPU hotplug after disabling irqs
        x86, nops: Missing break resulting in incorrect selection on Intel
        x86: CONFIG_CC_STACKPROTECTOR=y is no longer experimental
      1ca0049f
    • Linus Torvalds's avatar
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · ddc5057c
      Linus Torvalds authored
      Pull timer fixes from Ingo Molnar:
       "One regression fix, and a couple of cleanups that clean up the code
        flow in areas that had high-profile bugs recently."
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        time: Remove all direct references to timekeeper
        time: Clean up offs_real/wall_to_mono and offs_boot/total_sleep_time updates
        time: Clean up stray newlines
        time/jiffies: Rename ACTHZ to SHIFTED_HZ
        time/jiffies: Allow CLOCK_TICK_RATE to be undefined
        time: Fix casting issue in tk_set_xtime and tk_xtime_add
      ddc5057c
    • Linus Torvalds's avatar
      Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · fcc1d2a9
      Linus Torvalds authored
      Pull scheduler fixes from Ingo Molnar:
       "Fixes and two late cleanups"
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched/cleanups: Add load balance cpumask pointer to 'struct lb_env'
        sched: Fix comment about PREEMPT_ACTIVE bit location
        sched: Fix minor code style issues
        sched: Use task_rq_unlock() in __sched_setscheduler()
        sched/numa: Add SD_PERFER_SIBLING to CPU domain
      fcc1d2a9
    • Linus Torvalds's avatar
      Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · bd463a06
      Linus Torvalds authored
      Pull perf fixes from Ingo Molnar:
       "Fix merge window fallout and fix sleep profiling (this was always
        broken, so it's not a fix for the merge window - we can skip this one
        from the head of the tree)."
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/trace: Add ability to set a target task for events
        perf/x86: Fix USER/KERNEL tagging of samples properly
        perf/x86/intel/uncore: Make UNCORE_PMU_HRTIMER_INTERVAL 64-bit
      bd463a06
    • Linus Torvalds's avatar
      Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 148311d2
      Linus Torvalds authored
      Pull irq fix from Ingo Molnar.
      
      * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        genirq: Allow irq chips to mark themself oneshot safe
      148311d2
    • Linus Torvalds's avatar
      Merge tag 'for_linux-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb · d97e1dcd
      Linus Torvalds authored
      Pull KGDB/KDB/usb-dbgp fixes and cleanups from Jason Wessel:
       "There are no new features, those will be delayed to the 3.7 window.
        There are only fixes/cleanup against the usual kernel churn and we are
        removing more lines than we add:
      
         - usb-dbgp - increase the controller wait time to come out of halt.
         - kdb - Remove unused KDB_FLAG_ONLY_DO_DUMP code and cpu in more prompt
         - debug core - pass NMI type on archs that provide NMI types"
      
      * tag 'for_linux-3.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb:
        USB: echi-dbgp: increase the controller wait time to come out of halt.
        kernel/debug: Make use of KGDB_REASON_NMI
        kdb: Remove cpu from the more prompt
        kdb: Remove unused KDB_FLAG_ONLY_DO_DUMP
      d97e1dcd
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · 587a9e1f
      Linus Torvalds authored
      Pull m68k updates from Geert Uytterhoeven.
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        m68k: Make sys_atomic_cmpxchg_32 work on classic m68k
        m68k/apollo: Rename "timer" to "apollo_timer"
        zorro: Remove unused zorro_bus.devices
        m68k: Remove never used asm/shm.h
        m68k/sun3: Remove unselectable code in prom_init()
        m68k: Use asm-generic version of <asm/sections.h>
        m68k: Replace m68k-specific _[se]bss by generic __bss_{start,stop}
        mtd/uclinux: Use generic __bss_stop instead of _ebss
        m68knommu: Allow ColdFire CPUs to use unaligned accesses
        m68k: Remove five unused headers
        m68k: CPU32 does not support unaligned accesses
        m68k: Introduce config option CPU_HAS_NO_UNALIGNED
        m68k: delay, muldi3 - Use CONFIG_CPU_HAS_NO_MULDIV64
        m68k: Move CPU_HAS_* config options
        m68k: Remove duplicate FPU config option
        m68knommu: Clean up printing of sections
        m68k: Use asm-generic version of <asm/types.h>
        m68k: Use Kbuild logic to import asm-generic headers
      587a9e1f
  6. Aug 03, 2012