1. 26 Oct, 2013 35 commits
  2. 10 Sep, 2013 5 commits
    • Ben Hutchings's avatar
      Linux 3.2.51 · c3f403c2
      Ben Hutchings authored
      c3f403c2
    • David Vrabel's avatar
      x86/xen: do not identity map UNUSABLE regions in the machine E820 · 89ca702c
      David Vrabel authored
      commit 3bc38cbc upstream.
      
      If there are UNUSABLE regions in the machine memory map, dom0 will
      attempt to map them 1:1 which is not permitted by Xen and the kernel
      will crash.
      
      There isn't anything interesting in the UNUSABLE region that the dom0
      kernel needs access to so we can avoid making the 1:1 mapping and
      treat it as RAM.
      
      We only do this for dom0, as that is where tboot case shows up.
      A PV domU could have an UNUSABLE region in its pseudo-physical map
      and would need to be handled in another patch.
      
      This fixes a boot failure on hosts with tboot.
      
      tboot marks a region in the e820 map as unusable and the dom0 kernel
      would attempt to map this region and Xen does not permit unusable
      regions to be mapped by guests.
      
        (XEN)  0000000000000000 - 0000000000060000 (usable)
        (XEN)  0000000000060000 - 0000000000068000 (reserved)
        (XEN)  0000000000068000 - 000000000009e000 (usable)
        (XEN)  0000000000100000 - 0000000000800000 (usable)
        (XEN)  0000000000800000 - 0000000000972000 (unusable)
      
      tboot marked this region as unusable.
      
        (XEN)  0000000000972000 - 00000000cf200000 (usable)
        (XEN)  00000000cf200000 - 00000000cf38f000 (reserved)
        (XEN)  00000000cf38f000 - 00000000cf3ce000 (ACPI data)
        (XEN)  00000000cf3ce000 - 00000000d0000000 (reserved)
        (XEN)  00000000e0000000 - 00000000f0000000 (reserved)
        (XEN)  00000000fe000000 - 0000000100000000 (reserved)
        (XEN)  0000000100000000 - 0000000630000000 (usable)
      Signed-off-by: default avatarDavid Vrabel <david.vrabel@citrix.com>
      [v1: Altered the patch and description with domU's with UNUSABLE regions]
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      89ca702c
    • Dominik Dingel's avatar
      KVM: s390: move kvm_guest_enter,exit closer to sie · 13380d46
      Dominik Dingel authored
      commit 2b29a9fd upstream.
      
      Any uaccess between guest_enter and guest_exit could trigger a page fault,
      the page fault handler would handle it as a guest fault and translate a
      user address as guest address.
      Signed-off-by: default avatarDominik Dingel <dingel@linux.vnet.ibm.com>
      Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      [bwh: Backported to 3.2: adjust context and add the rc variable]
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      13380d46
    • Nicholas Bellinger's avatar
      target: Fix trailing ASCII space usage in INQUIRY vendor+model · 721ab147
      Nicholas Bellinger authored
      commit ee60bddb upstream.
      
      This patch fixes spc_emulate_inquiry_std() to add trailing ASCII
      spaces for INQUIRY vendor + model fields following SPC-4 text:
      
        "ASCII data fields described as being left-aligned shall have any
         unused bytes at the end of the field (i.e., highest offset) and
         the unused bytes shall be filled with ASCII space characters (20h)."
      
      This addresses a problem with Falconstor NSS multipathing.
      Reported-by: default avatarTomas Molota <tomas.molota@lightstorm.sk>
      Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
      [bwh: Backported to 3.2, based on Nicholas's versions for 3.0 and 3.4]
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      721ab147
    • Takashi Iwai's avatar
      ALSA: opti9xx: Fix conflicting driver object name · 9f9c4293
      Takashi Iwai authored
      commit fb615499 upstream.
      
      The recent commit to delay the release of kobject triggered NULL
      dereferences of opti9xx drivers.  The cause is that all
      snd-opti92x-ad1848, snd-opti92x-cs4231 and snd-opti93x drivers
      register the PnP card driver with the very same name, and also
      snd-opti92x-ad1848 and -cs4231 drivers register the ISA driver with
      the same name, too.  When these drivers are built in, quick
      "register-release-and-re-register" actions occur, and this results in
      Oops because of the same name is assigned to the kobject.
      
      The fix is simply to assign individual names.  As a bonus, by using
      KBUILD_MODNAME, the patch reduces more lines than it adds.
      
      The fix is based on the suggestion by Russell King.
      Reported-and-tested-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
      9f9c4293