1. 06 11月, 2010 1 次提交
    • M
      KVM: Write protect memory after slot swap · edde99ce
      Michael S. Tsirkin 提交于
      I have observed the following bug trigger:
      
      1. userspace calls GET_DIRTY_LOG
      2. kvm_mmu_slot_remove_write_access is called and makes a page ro
      3. page fault happens and makes the page writeable
         fault is logged in the bitmap appropriately
      4. kvm_vm_ioctl_get_dirty_log swaps slot pointers
      
      a lot of time passes
      
      5. guest writes into the page
      6. userspace calls GET_DIRTY_LOG
      
      At point (5), bitmap is clean and page is writeable,
      thus, guest modification of memory is not logged
      and GET_DIRTY_LOG returns an empty bitmap.
      
      The rule is that all pages are either dirty in the current bitmap,
      or write-protected, which is violated here.
      
      It seems that just moving kvm_mmu_slot_remove_write_access down
      to after the slot pointer swap should fix this bug.
      
      KVM-Stable-Tag.
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NAvi Kivity <avi@redhat.com>
      edde99ce
  2. 04 11月, 2010 2 次提交
    • W
      vmstat: fix offset calculation on void* · ff8b16d7
      Wu Fengguang 提交于
      Fix regression introduced by commit 79da826a ("writeback: report
      dirty thresholds in /proc/vmstat").
      
      The incorrect pointer arithmetic can result in problems like this:
      
        BUG: unable to handle kernel paging request at 07c06d16
        IP: [<c050c336>] strnlen+0x6/0x20
        Call Trace:
         [<c050a249>] ? string+0x39/0xe0
         [<c042be6b>] ? __wake_up_common+0x4b/0x80
         [<c050afcc>] ? vsnprintf+0x1ec/0x380
         [<c04b380e>] ? seq_printf+0x2e/0x60
         [<c04829a6>] ? vmstat_show+0x26/0x30
         [<c04b3bb6>] ? seq_read+0xa6/0x380
         [<c04b3b10>] ? seq_read+0x0/0x380
         [<c04d5d2f>] ? proc_reg_read+0x5f/0x90
         [<c049c4a1>] ? vfs_read+0xa1/0x140
         [<c04d5cd0>] ? proc_reg_read+0x0/0x90
         [<c049c981>] ? sys_read+0x41/0x70
         [<c0402bd0>] ? sysenter_do_call+0x12/0x26
      Reported-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Cc: Michael Rubin <mrubin@google.com>
      Signed-off-by: NWu Fengguang <fengguang.wu@intel.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      ff8b16d7
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 · 81a6cff6
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6:
        ASoC: tpa6130a2: Get rid of compile warning from tpa6130a2_power
        ALSA: hda - MacBookAir3,1(3,2) alsa support
        ASoC: fix the building issue of missing codec field in 'struct snd_soc_card'
        ALSA: usb-audio - Support for Power/Status LED on Creative USB X-Fi S51
        ALSA: asihpi - Unsafe memory management when allocating control cache
        ASoC: Update WARN uses in wm_hubs
        ASoC: Include cx20442 to SND_SOC_ALL_CODECS
        ASoC: Fix SND_SOC_ALL_CODECS typo for jz4740
        ASoC: Remove volatility from WM8900 POWER1 register
        ALSA: lx6464es - make 1 bit signed bitfield unsigned
        ALSA: cs46xx memory management fixes for cs46xx_dsp_spos_create()
        ALSA: usb - driver neglects kmalloc return value check and may deref NULL
        ASoC: tpa6130a2: Fix unbalanced regulator disables
        ASoC: tlv320dac33: Mode1 FIFO auto configuration fix
        ASoC: tlv320dac33: Limit the US_TO_SAMPLES macro
        ASoC: tlv320dac33: Error handling for broken chip
        ASoC: Check return value of struct_strtoul() in pmdown_time_set()
      81a6cff6
  3. 03 11月, 2010 5 次提交
  4. 02 11月, 2010 9 次提交
  5. 01 11月, 2010 20 次提交
  6. 31 10月, 2010 3 次提交
新手
引导
客服 返回
顶部