1. 10 7月, 2008 8 次提交
  2. 09 7月, 2008 14 次提交
  3. 08 7月, 2008 5 次提交
  4. 07 7月, 2008 8 次提交
  5. 06 7月, 2008 5 次提交
    • M
      KVM: IOAPIC: Fix level-triggered irq injection hang · 35baff25
      Mark McLoughlin 提交于
      The "remote_irr" variable is used to indicate an interrupt
      which has been received by the LAPIC, but not acked.
      
      In our EOI handler, we unset remote_irr and re-inject the
      interrupt if the interrupt line is still asserted.
      
      However, we do not set remote_irr here, leading to a
      situation where if kvm_ioapic_set_irq() is called, then we go
      ahead and call ioapic_service(). This means that IRR is
      re-asserted even though the interrupt is currently in service
      (i.e. LAPIC IRR is cleared and ISR/TMR set)
      
      The issue with this is that when the currently executing
      interrupt handler finishes and writes LAPIC EOI, then TMR is
      unset and EOI sent to the IOAPIC. Since IRR is now asserted,
      but TMR is not, then when the second interrupt is handled,
      no EOI is sent and if there is any pending interrupt, it is
      not re-injected.
      
      This fixes a hang only seen while running mke2fs -j on an
      8Gb virtio disk backed by a fully sparse raw file, with
      aliguori "avoid fragmented virtio-blk transfers by copying"
      changes.
      Signed-off-by: NMark McLoughlin <markmc@redhat.com>
      Acked-by: NMarcelo Tosatti <mtosatti@redhat.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      35baff25
    • A
      x86: KVM guest: Add memory clobber to hypercalls · ca373932
      Anthony Liguori 提交于
      Hypercalls can modify arbitrary regions of memory.  Make sure to indicate this
      in the clobber list.  This fixes a hang when using KVM_GUEST kernel built with
      GCC 4.3.0.
      
      This was originally spotted and analyzed by Marcelo.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      Signed-off-by: NAvi Kivity <avi@qumranet.com>
      ca373932
    • O
      can: add sanity checks · 7f2d38eb
      Oliver Hartkopp 提交于
      Even though the CAN netlayer only deals with CAN netdevices, the 
      netlayer interface to the userspace and to the device layer should 
      perform some sanity checks.
      
      This patch adds several sanity checks that mainly prevent userspace apps 
      to send broken content into the system that may be misinterpreted by 
      some other userspace application.
      Signed-off-by: NOliver Hartkopp <oliver.hartkopp@volkswagen.de>
      Signed-off-by: NUrs Thuermann <urs.thuermann@volkswagen.de>
      Acked-by: NAndre Naujoks <nautsch@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7f2d38eb
    • L
      Linux 2.6.26-rc9 · b7279469
      Linus Torvalds 提交于
      b7279469
    • A
      Fix pagemap_read() use of struct mm_walk · 5d7e0d2b
      Andrew Morton 提交于
      Fix some issues in pagemap_read noted by Alexey:
      
      - initialize pagemap_walk.mm to "mm" , so the code starts working as
        advertised
      
      - initialize ->private to "&pm" so it wouldn't immediately oops in
        pagemap_pte_hole()
      
      - unstatic struct pagemap_walk, so two threads won't fsckup each other
        (including those started by root, including flipping ->mm when you don't
        have permissions)
      
      - pagemap_read() contains two calls to ptrace_may_attach(), second one
        looks unneeded.
      
      - avoid possible kmalloc(0) and integer wraparound.
      
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: Matt Mackall <mpm@selenic.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      [ Personally, I'd just remove the functionality entirely  - Linus ]
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5d7e0d2b