1. 26 6月, 2018 1 次提交
    • M
      X.509: unpack RSA signatureValue field from BIT STRING · b65c32ec
      Maciej S. Szmigiero 提交于
      The signatureValue field of a X.509 certificate is encoded as a BIT STRING.
      For RSA signatures this BIT STRING is of so-called primitive subtype, which
      contains a u8 prefix indicating a count of unused bits in the encoding.
      
      We have to strip this prefix from signature data, just as we already do for
      key data in x509_extract_key_data() function.
      
      This wasn't noticed earlier because this prefix byte is zero for RSA key
      sizes divisible by 8. Since BIT STRING is a big-endian encoding adding zero
      prefixes has no bearing on its value.
      
      The signature length, however was incorrect, which is a problem for RSA
      implementations that need it to be exactly correct (like AMD CCP).
      Signed-off-by: NMaciej S. Szmigiero <mail@maciej.szmigiero.name>
      Fixes: c26fd69f ("X.509: Add a crypto key parser for binary (DER) X.509 certificates")
      Cc: stable@vger.kernel.org
      Signed-off-by: NJames Morris <james.morris@microsoft.com>
      b65c32ec
  2. 23 6月, 2018 1 次提交
  3. 22 6月, 2018 9 次提交
    • L
      Merge tag 'for_v4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 894b8c00
      Linus Torvalds 提交于
      Pull udf, quota, ext2 fixes from Jan Kara:
       "UDF:
         - fix an oops due to corrupted disk image
         - two small cleanups
      
        quota:
         - a fixfor lru handling
         - cleanup
      
        ext2:
         - a warning about a deprecated mount option"
      
      * tag 'for_v4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        udf: Drop unused arguments of udf_delete_aext()
        udf: Provide function for calculating dir entry length
        udf: Detect incorrect directory size
        ext2: add warning when specifying nocheck option
        quota: Cleanup list iteration in dqcache_shrink_scan()
        quota: reclaim least recently used dquots
      894b8c00
    • L
      Merge tag 'drm-fixes-2018-06-22' of git://anongit.freedesktop.org/drm/drm · 1cfea546
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "Just run of the mill fixes,
      
        core:
         - regression fix in device unplug
      
        qxl:
         - regression fix for might sleep in cursor handling
      
        nouveau:
         - regression fix in multi-screen cursor handling
      
        amdgpu:
         - switch off DC by default on Kaveri and older
         - some minor fixes
      
        i915:
         - some GEM regression fixes
         - doublescan mode fixes
      
        sun4i:
         - revert fix for a regression
      
        sii8620 bridge:
         - misc fixes"
      
      * tag 'drm-fixes-2018-06-22' of git://anongit.freedesktop.org/drm/drm: (28 commits)
        drm/bridge/sii8620: fix display of packed pixel modes in MHL2
        drm/amdgpu: Make amdgpu_vram_mgr_bo_invisible_size always accurate
        drm/amdgpu: Refactor amdgpu_vram_mgr_bo_invisible_size helper
        drm/amdgpu: Update pin_size values before unpinning BO
        drm/amdgpu:All UVD instances share one idle_work handle
        drm/amdgpu: Don't default to DC support for Kaveri and older
        drm/amdgpu: Use kvmalloc_array for allocating VRAM manager nodes array
        drm/amd/pp: Fix uninitialized variable
        drm/i915: Enable provoking vertex fix on Gen9 systems.
        drm/i915: Fix context ban and hang accounting for client
        drm/i915: Turn off g4x DP port in .post_disable()
        drm/i915: Disallow interlaced modes on g4x DP outputs
        drm/i915: Fix PIPESTAT irq ack on i965/g4x
        drm/i915: Allow DBLSCAN user modes with eDP/LVDS/DSI
        drm/i915/execlists: Avoid putting the error pointer
        drm/i915: Apply batch location restrictions before pinning
        drm/nouveau/kms/nv50-: cursors always use core channel vram ctxdma
        Revert "drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE"
        drm/atmel-hlcdc: check stride values in the first plane
        drm/bridge/sii8620: fix HDMI cable connection to dongle
        ...
      1cfea546
    • D
      Merge tag 'drm-misc-fixes-2018-06-21' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · f3294568
      Dave Airlie 提交于
      Fixes for v4.18-rc2:
      - A reversion of a commit in drm/sun4i to fix a run-time fault.
      - Various fixes to the sii8620 bridge.
      - Small bugfix to correctly check stride in atmel-hlcdc.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/787d4bef-a579-4046-d0fc-f8c2c5b80c25@linux.intel.com
      f3294568
    • D
      Merge tag 'drm-intel-fixes-2018-06-21' of... · 8325e6e3
      Dave Airlie 提交于
      Merge tag 'drm-intel-fixes-2018-06-21' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      drm/i915 fixes for v4.18-rc2:
      - Mostly cc: stable display fixes, including a DBLSCAN regression fix
      - GEM fixes for this merge window
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      
      Link: https://patchwork.freedesktop.org/patch/msgid/87d0wkuypy.fsf@intel.com
      8325e6e3
    • L
      Merge tag 'nfs-for-4.18-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 27db64f6
      Linus Torvalds 提交于
      Pull NFS client bugfixes from Trond Myklebust:
       "Hightlights include:
      
         - fix an rcu deadlock in nfs_delegation_find_inode()
      
         - fix NFSv4 deadlocks due to not freeing the session slot in
           layoutget
      
         - don't send layoutreturn if the layout is already invalid
      
         - prevent duplicate XID allocation
      
         - flexfiles: Don't tie up all the rpciod threads in resends"
      
      * tag 'nfs-for-4.18-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        pNFS/flexfiles: Process writeback resends from nfsiod context as well
        pNFS/flexfiles: Don't tie up all the rpciod threads in resends
        sunrpc: Prevent duplicate XID allocation
        pNFS: Don't send layoutreturn if the layout is already invalid
        pNFS: Always free the session slot on error in nfs4_layoutget_handle_exception
        NFS: Fix an rcu deadlock in nfs_delegation_find_inode()
      27db64f6
    • L
      Merge tag 'pinctrl-v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · acdf3f93
      Linus Torvalds 提交于
      Pull pin control fixes from Linus Walleij:
       "Some fallout in the pin control subsystem in the first week after the
        merge window, some minor fixes so I'd like to get it to you ASAP.
      
         - fix a serious kernel panic on the Mediatek driver with the external
           interrupt controller.
      
         - fix an uninitialized compiler warning in the owl (actions) driver.
      
         - allocation failure in the pinctrl-single driver.
      
         - pointer overwrite problem in the i.MX driver.
      
         - fix a small compiler warning"
      
      * tag 'pinctrl-v4.18-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: mt7622: fix a kernel panic when pio don't work as EINT controller
        pinctrl: actions: Fix uninitialized error in owl_pin_config_set()
        pinctrl: single: Add allocation failure checking of saved_vals
        pinctrl: devicetree: Fix pctldev pointer overwrite
        pinctrl: mediatek: remove redundant return value check of platform_get_resource()
      acdf3f93
    • L
      Merge tag 'hwmon-for-linus-v4.18-rc2' of... · 303f311e
      Linus Torvalds 提交于
      Merge tag 'hwmon-for-linus-v4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - fix a loop limit in nct6775 driver
      
       - disable fan support for Dell XPS13 9333
      
      * tag 'hwmon-for-linus-v4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (nct6775) Fix loop limit
        hwmon: (dell-smm) Disable fan support for Dell XPS13 9333
      303f311e
    • L
      Merge tag 'acpi-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · f43fc5a0
      Linus Torvalds 提交于
      Pull ACPI fixes from Rafael Wysocki:
       "These fix a suspend/resume regression in the ACPI driver for Intel
        SoCs (LPSS), add a new system wakeup quirk to the ACPI EC driver and
        fix an inline stub of a function in the ACPI processor driver that
        diverged from the original.
      
        Specifics:
      
         - Fix a suspend/resume regression in the ACPI driver for Intel SoCs
           (LPSS) to make it work on systems where some power management
           quirks should only be applied for runtime PM and suspend-to-idle
           and not for suspend-to-RAM (Rafael Wysocki).
      
         - Add a system wakeup quirk for Thinkpad X1 Carbon 6th to the ACPI EC
           driver to avoid drainig battery too fast while suspended to idle on
           those systems (Mika Westerberg).
      
         - Fix an inline stub of acpi_processor_ppc_has_changed() to match the
           original function definition (Brian Norris)"
      
      * tag 'acpi-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI / processor: Finish making acpi_processor_ppc_has_changed() void
        ACPI / EC: Use ec_no_wakeup on Thinkpad X1 Carbon 6th
        ACPI / LPSS: Avoid PM quirks on suspend and resume from S3
      f43fc5a0
    • L
      Merge tag 'pm-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 26c92a38
      Linus Torvalds 提交于
      Pull power management updates from Rafael Wysocki:
       "These are mostly fixes, including some fixes for changes made during
        the recent merge window and some "stable" material, plus some minor
        extensions of the turbostat utility.
      
        Specifics:
      
         - Fix the PM core to avoid introducing a runtime PM usage counter
           imbalance when adding device links during driver probe (Rafael
           Wysocki).
      
         - Fix the operating performance points (OPP) framework to ensure that
           the regulator voltage is always updated as appropriate when
           updating clock rates (Waldemar Rymarkiewicz).
      
         - Fix the intel_pstate driver to use correct max/min limits for cores
           with differing maximum frequences (Srinivas Pandruvada).
      
         - Fix a typo in the intel_pstate driver documentation (Rafael
           Wysocki).
      
         - Fix two issues with the recently added Kryo cpufreq driver (Ilia
           Lin).
      
         - Fix two recent regressions and some other minor issues in the
           turbostat utility and extend it to provide some more diagnostic
           information (Len Brown, Nathan Ciobanu)"
      
      * tag 'pm-4.18-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Documentation: intel_pstate: Fix typo
        tools/power turbostat: version 18.06.20
        tools/power turbostat: add the missing command line switches
        tools/power turbostat: add single character tokens to help
        tools/power turbostat: alphabetize the help output
        tools/power turbostat: fix segfault on 'no node' machines
        tools/power turbostat: add optional APIC X2APIC columns
        tools/power turbostat: decode cpuid.1.HT
        tools/power turbostat: fix show/hide issues resulting from mis-merge
        PM / OPP: Update voltage in case freq == old_freq
        cpufreq: intel_pstate: Fix scaling max/min limits with Turbo 3.0
        cpufreq: kryo: Add module remove and exit
        cpufreq: kryo: Fix possible error code dereference
        PM / core: Fix supplier device runtime PM usage counter imbalance
      26c92a38
  4. 21 6月, 2018 17 次提交
  5. 20 6月, 2018 12 次提交