1. 28 Oct, 2015 1 commit
    • Ard Biesheuvel's avatar
      efi: Use correct type for struct efi_memory_map::phys_map · 44511fb9
      Ard Biesheuvel authored
      We have been getting away with using a void* for the physical
      address of the UEFI memory map, since, even on 32-bit platforms
      with 64-bit physical addresses, no truncation takes place if the
      memory map has been allocated by the firmware (which only uses
      1:1 virtually addressable memory), which is usually the case.
      
      However, commit:
      
        0f96a99d ("efi: Add "efi_fake_mem" boot option")
      
      adds code that clones and modifies the UEFI memory map, and the
      clone may live above 4 GB on 32-bit platforms.
      
      This means our use of void* for struct efi_memory_map::phys_map has
      graduated from 'incorrect but working' to 'incorrect and
      broken', and we need to fix it.
      
      So redefine struct efi_memory_map::phys_map as phys_addr_t, and
      get rid of a bunch of casts that are now unneeded.
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Reviewed-by: default avatarMatt Fleming <matt@codeblueprint.co.uk>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: izumi.taku@jp.fujitsu.com
      Cc: kamezawa.hiroyu@jp.fujitsu.com
      Cc: linux-efi@vger.kernel.org
      Cc: matt.fleming@intel.com
      Link: http://lkml.kernel.org/r/1445593697-1342-1-git-send-email-ard.biesheuvel@linaro.orgSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      44511fb9
  2. 27 Oct, 2015 1 commit
  3. 25 Oct, 2015 1 commit
  4. 14 Oct, 2015 3 commits
    • Ingo Molnar's avatar
      Merge tag 'efi-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mfleming/efi into core/efi · 790a2ee2
      Ingo Molnar authored
      Pull v4.4 EFI updates from Matt Fleming:
      
        - Make the EFI System Resource Table (ESRT) driver explicitly
          non-modular by ripping out the module_* code since Kconfig doesn't
          allow it to be built as a module anyway. (Paul Gortmaker)
      
        - Make the x86 efi=debug kernel parameter, which enables EFI debug
          code and output, generic and usable by arm64. (Leif Lindholm)
      
        - Add support to the x86 EFI boot stub for 64-bit Graphics Output
          Protocol frame buffer addresses. (Matt Fleming)
      
        - Detect when the UEFI v2.5 EFI_PROPERTIES_TABLE feature is enabled
          in the firmware and set an efi.flags bit so the kernel knows when
          it can apply more strict runtime mapping attributes - Ard Biesheuvel
      
        - Auto-load the efi-pstore module on EFI systems, just like we
          currently do for the efivars module. (Ben Hutchings)
      
        - Add "efi_fake_mem" kernel parameter which allows the system's EFI
          memory map to be updated with additional attributes for specific
          memory ranges. This is useful for testing the kernel code that handles
          the EFI_MEMORY_MORE_RELIABLE memmap bit even if your firmware
          doesn't include support. (Taku Izumi)
      
      Note: there is a semantic conflict between the following two commits:
      
        8a53554e ("x86/efi: Fix multiple GOP device support")
        ae2ee627 ("efifb: Add support for 64-bit frame buffer addresses")
      
      I fixed up the interaction in the merge commit, changing the type of
      current_fb_base from u32 to u64.
      Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
      790a2ee2
    • Ingo Molnar's avatar
    • Kővágó, Zoltán's avatar
      x86/efi: Fix multiple GOP device support · 8a53554e
      Kővágó, Zoltán authored
      When multiple GOP devices exists, but none of them implements
      ConOut, the code should just choose the first GOP (according to
      the comments). But currently 'fb_base' will refer to the last GOP,
      while other parameters to the first GOP, which will likely
      result in a garbled display.
      
      I can reliably reproduce this bug using my ASRock Z87M Extreme4
      motherboard with CSM and integrated GPU disabled, and two PCIe
      video cards (NVidia GT640 and GTX980), booting from efi-stub
      (booting from grub works fine).  On the primary display the
      ASRock logo remains and on the secondary screen it is garbled
      up completely.
      Signed-off-by: default avatarKővágó, Zoltán <DirtY.iCE.hu@gmail.com>
      Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
      Cc: <stable@vger.kernel.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Link: http://lkml.kernel.org/r/1444659236-24837-2-git-send-email-matt@codeblueprint.co.ukSigned-off-by: default avatarIngo Molnar <mingo@kernel.org>
      8a53554e
  5. 13 Oct, 2015 5 commits
    • Linus Torvalds's avatar
      Merge tag 'nfsd-4.3-2' of git://linux-nfs.org/~bfields/linux · 5b5f1455
      Linus Torvalds authored
      Pull nfsd fixes from Bruce Fields:
       "Two nfsd fixes, one for an RDMA crash, one for a pnfs/block protocol
        bug"
      
      * tag 'nfsd-4.3-2' of git://linux-nfs.org/~bfields/linux:
        svcrdma: Fix NFS server crash triggered by 1MB NFS WRITE
        nfsd/blocklayout: accept any minlength
      5b5f1455
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 6006d452
      Linus Torvalds authored
      Pull crypto fixes from Herbert Xu:
       "This fixes the following issues:
      
         - Fix AVX detection to prevent use of non-existent AESNI.
      
         - Some SPARC ciphers did not set their IV size which may lead to
           memory corruption"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: ahash - ensure statesize is non-zero
        crypto: camellia_aesni_avx - Fix CPU feature checks
        crypto: sparc - initialize blkcipher.ivsize
      6006d452
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 75542253
      Linus Torvalds authored
      Pull IOMMU fixes from Joerg Roedel:
       "A few fixes piled up:
      
         - Fix for a suspend/resume issue where PCI probing code overwrote
           dev->irq for the MSI irq of the AMD IOMMU.
      
         - Fix for a kernel crash when a 32 bit PCI device was assigned to a
           KVM guest.
      
         - Fix for a possible memory leak in the VT-d driver
      
         - A couple of fixes for the ARM-SMMU driver"
      
      * tag 'iommu-fixes-v4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/amd: Fix NULL pointer deref on device detach
        iommu/amd: Prevent binding other PCI drivers to IOMMU PCI devices
        iommu/vt-d: Fix memory leak in dmar_insert_one_dev_info()
        iommu/arm-smmu: Use correct address mask for CMD_TLBI_S2_IPA
        iommu/arm-smmu: Ensure IAS is set correctly for AArch32-capable SMMUs
        iommu/io-pgtable-arm: Don't use dma_to_phys()
      75542253
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 06d1ee32
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "I got a bit behind last week, so here is a delayed fixes pull:
      
         - a bunch of radeon/amd gpu fixes
         - some nouveau regression fixes (ppc bios reading and runtime pm fix)
         - one drm core oops fix
         - two qxl locking fixes
         - one qxl regression fix"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm/nouveau/bios: fix OF loading
        drm/nouveau/fbcon: take runpm reference when userspace has an open fd
        drm/nouveau/nouveau: Disable AGP for SiS 761
        drm/nouveau/display: allow up to 16k width/height for fermi+
        drm/nouveau/bios: translate devinit pri/sec i2c bus to internal identifiers
        drm: Fix locking for sysfs dpms file
        drm/amdgpu: fix memory leak in amdgpu_vm_update_page_directory
        drm/amdgpu: fix 32-bit compiler warning
        drm/qxl: avoid dependency lock
        drm/qxl: avoid buffer reservation in qxl_crtc_page_flip
        drm/qxl: fix framebuffer dirty rectangle tracking.
        drm/amdgpu: flag iceland as experimental
        drm/amdgpu: check before checking pci bridge registers
        drm/amdgpu: fix num_crtc on CZ
        drm/amdgpu: restore the fbdev mode in lastclose
        drm/radeon: restore the fbdev mode in lastclose
        drm/radeon: add quirk for ASUS R7 370
        drm/amdgpu: add pm sysfs files late
        drm/radeon: add pm sysfs files late
      06d1ee32
    • Russell King's avatar
      crypto: ahash - ensure statesize is non-zero · 8996eafd
      Russell King authored
      Unlike shash algorithms, ahash drivers must implement export
      and import as their descriptors may contain hardware state and
      cannot be exported as is.  Unfortunately some ahash drivers did
      not provide them and end up causing crashes with algif_hash.
      
      This patch adds a check to prevent these drivers from registering
      ahash algorithms until they are fixed.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      8996eafd
  6. 12 Oct, 2015 18 commits
  7. 11 Oct, 2015 9 commits
  8. 10 Oct, 2015 2 commits
    • Linus Torvalds's avatar
      Merge tag 'usb-4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 4a06c8ac
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB and PHY fixes and quirk updates for 4.3-rc5.
      
        Nothing major here, full details in the shortlog, and all of these
        have been in linux-next for a while"
      
      * tag 'usb-4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: Add device quirk for Logitech PTZ cameras
        USB: chaoskey read offset bug
        USB: Add reset-resume quirk for two Plantronics usb headphones.
        usb: renesas_usbhs: Add support for R-Car H3
        usb: renesas_usbhs: fix build warning if 64-bit architecture
        usb: gadget: bdc: fix memory leak
        phy: berlin-sata: Fix module autoload for OF platform driver
        phy: rockchip-usb: power down phy when rockchip phy probe
        phy: qcom-ufs: fix build error when the component is built as a module
      4a06c8ac
    • Linus Torvalds's avatar
      Merge tag 'tty-4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 97d0c931
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are a few bug fixes for the tty core that resolve reported
        issues, and some serial driver fixes as well (including the
        much-reported imx driver problem)
      
        All of these have been in linux-next with no reported problems"
      
      * tag 'tty-4.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        drivers/tty: require read access for controlling terminal
        serial: 8250: add uart_config entry for PORT_RT2880
        tty: fix data race on tty_buffer.commit
        tty: fix data race in tty_buffer_flush
        tty: fix data race in flush_to_ldisc
        tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c
        serial: atmel: fix error path of probe function
        tty: don't leak cdev in tty_cdev_add()
        Revert "serial: imx: remove unbalanced clk_prepare"
      97d0c931