1. 24 Apr, 2020 16 commits
    • Linus Torvalds's avatar
      mm: check that mm is still valid in madvise() · bc0c4d1e
      Linus Torvalds authored
      IORING_OP_MADVISE can end up basically doing mprotect() on the VM of
      another process, which means that it can race with our crazy core dump
      handling which accesses the VM state without holding the mmap_sem
      (because it incorrectly thinks that it is the final user).
      
      This is clearly a core dumping problem, but we've never fixed it the
      right way, and instead have the notion of "check that the mm is still
      ok" using mmget_still_valid() after getting the mmap_sem for writing in
      any situation where we're not the original VM thread.
      
      See commit 04f5866e ("coredump: fix race condition between
      mmget_not_zero()/get_task_mm() and core dumping") for more background on
      this whole mmget_still_valid() thing.  You might want to have a barf bag
      handy when you do.
      
      We're discussing just fixing this properly in the only remaining core
      dumping routines.  But even if we do that, let's make do_madvise() do
      the right thing, and then when we fix core dumping, we can remove all
      these mmget_still_valid() checks.
      Reported-and-tested-by: default avatarJann Horn <jannh@google.com>
      Fixes: c1ca757b ("io_uring: add IORING_OP_MADVISE")
      Acked-by: default avatarJens Axboe <axboe@kernel.dk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bc0c4d1e
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.7-2020-04-24' of git://git.kernel.dk/linux-block · aee1a009
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Single fixup for a change that went into -rc2"
      
      * tag 'io_uring-5.7-2020-04-24' of git://git.kernel.dk/linux-block:
        io_uring: only restore req->work for req that needs do completion
      aee1a009
    • Linus Torvalds's avatar
      Merge tag 'libata-5.7-2020-04-24' of git://git.kernel.dk/linux-block · 81da3d3c
      Linus Torvalds authored
      Pull libata fixlet from Jens Axboe:
       "Minor spelling error fix for libata"
      
      * tag 'libata-5.7-2020-04-24' of git://git.kernel.dk/linux-block:
        ata: sata_inic162x fix a spelling issue
      81da3d3c
    • Linus Torvalds's avatar
      Merge tag 'block-5.7-2020-04-24' of git://git.kernel.dk/linux-block · 3d29cb17
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A few fixes/changes that should go into this release:
      
         - null_blk zoned fixes (Damien)
      
         - blkdev_close() sync improvement (Douglas)
      
         - Fix regression in blk-iocost that impacted (at least) systemtap
           (Waiman)
      
         - Comment fix, header removal (Zhiqiang, Jianpeng)"
      
      * tag 'block-5.7-2020-04-24' of git://git.kernel.dk/linux-block:
        null_blk: Cleanup zoned device initialization
        null_blk: Fix zoned command handling
        block: remove unused header
        blk-iocost: Fix error on iocost_ioc_vrate_adj
        bdev: Reduce time holding bd_mutex in sync in blkdev_close()
        buffer: remove useless comment and WB_REASON_FREE_MORE_MEM, reason.
      3d29cb17
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · da5de55d
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
       "A few tracing fixes:
      
         - Two fixes for memory leaks detected by kmemleak
      
         - Removal of some dead code
      
         - A few local functions turned static"
      
      * tag 'trace-v5.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Convert local functions in tracing_map.c to static
        tracing: Remove DECLARE_TRACE_NOARGS
        ftrace: Fix memory leak caused by not freeing entry in unregister_ftrace_direct()
        tracing: Fix memory leaks in trace_events_hist.c
      da5de55d
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 4544db3f
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Ensure context synchronisation after a write to APIAKey.
      
       - Fix bullet list formatting in Documentation/arm64/amu.rst to
         eliminate doc warnings.
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        Documentation: arm64: fix amu.rst doc warnings
        arm64: sync kernel APIAKey when installing
      4544db3f
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.7' of... · b9916af7
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - fix scripts/config to properly handle ':' in string type CONFIG
         options
      
       - fix unneeded rebuilds of DT schema check rule
      
       - git rid of ordering dependency between <linux/vermagic.h> and
         <linux/module.h> to fix build errors in some network drivers
      
       - clean up generated headers of host arch with 'make ARCH=um mrproper'
      
      * tag 'kbuild-fixes-v5.7' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        h8300: ignore vmlinux.lds
        Documentation: kbuild: fix the section title format
        um: ensure `make ARCH=um mrproper` removes arch/$(SUBARCH)/include/generated/
        arch: split MODULE_ARCH_VERMAGIC definitions out to <asm/vermagic.h>
        kbuild: fix DT binding schema rule again to avoid needless rebuilds
        scripts/config: allow colons in option strings for sed
      b9916af7
    • Linus Torvalds's avatar
      Merge tag 'afs-fixes-20200424' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 9a195628
      Linus Torvalds authored
      Pull misc AFS fixes from David Howells:
       "Three miscellaneous fixes to the afs filesystem:
      
         - Remove some struct members that aren't used, aren't set or aren't
           read, plus a wake up that nothing ever waits for.
      
         - Actually set the AFS_SERVER_FL_HAVE_EPOCH flag so that the code
           that depends on it can work.
      
         - Make a couple of waits uninterruptible if they're done for an
           operation that isn't supposed to be interruptible"
      
      * tag 'afs-fixes-20200424' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        afs: Make record checking use TASK_UNINTERRUPTIBLE when appropriate
        afs: Fix to actually set AFS_SERVER_FL_HAVE_EPOCH
        afs: Remove some unused bits
      9a195628
    • Linus Torvalds's avatar
      Merge tag 'sound-5.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · b4ecf26e
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "This became a slightly big pull request, as the accumulated ASoC fixes
        are included here. Some highlights:
      
         - Revert of ASoC DAI startup changes that caused regression on some
           x86 platforms
      
         - Regression fix in HD-audio power management and driver blacklist
      
         - A collection of ASoC DAPM and topology fixes
      
         - Continued USB-audio fixes and quirks
      
         - Lots of small device-specific fixes
      
         - Rockchip S/PDIF DT stuff update for validation issues"
      
      * tag 'sound-5.7-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (51 commits)
        ALSA: hda: Always use jackpoll helper for jack update after resume
        ALSA: hda/realtek - Add new codec supported for ALC245
        ALSA: usb-audio: Fix usb audio refcnt leak when getting spdif
        ALSA: usb-audio: Add connector notifier delegation
        ALSA: usb-audio: Apply async workaround for Scarlett 2i4 2nd gen
        ASoC: wm8960: Fix wrong clock after suspend & resume
        ALSA: usx2y: Fix potential NULL dereference
        ALSA: usb-audio: Add quirk for Focusrite Scarlett 2i2
        ASoC: wm89xx: Add missing dependency
        ASoC: dapm: fixup dapm kcontrol widget
        ASoC: rsnd: Fix "status check failed" spam for multi-SSI
        ASoC: rsnd: Don't treat master SSI in multi SSI setup as parent
        ASoC: meson: gx-card: fix codec-to-codec link setup
        ASoC: meson: axg-card: fix codec-to-codec link setup
        ALSA: usb-audio: Add static mapping table for ALC1220-VB-based mobos
        ALSA: hda: Remove ASUS ROG Zenith from the blacklist
        ALSA: hda/realtek - Fix unexpected init_amp override
        ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices
        ASoC: SOF: Intel: add min/max channels for SSP on Baytrail/Broadwell
        ASoC: stm32: sai: fix sai probe
        ...
      b4ecf26e
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2020-04-24' of git://anongit.freedesktop.org/drm/drm · 88412a4e
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Weekly regular fixes for drm, The usual rc3 uptick here, but nothing
        too crazy or notable.
      
        core:
         - mst: zero pbn when releasing vcpi slots
      
        amdgpu:
         - Fix resume issue on renoir
         - Thermal fix for older CI dGPUs
         - Fix some fallout from dropping drm load/unload callbacks
      
        i915:
         - Tigerlake Workaround - disabling media recompression (Matt)
         - Fix RPS interrupts for right GPU frequency (Chris)
         - HDCP fix prime check (Oliver)
         - Tigerlake Thunderbolt power well fix (Matt)
         - Tigerlake DP link training fixes (Jose)
         - Documentation sphinx build fix (Jani)
         - Fix enable_dpcd_backlight modparam (Lyude)
      
        analogix-dp:
         - binding fix
      
        meson:
         - remove unneeded error message
      
        bindings:
         - fix warnings
         - fix lvds binding
      
        scheduler:
         - thread racing fix
      
        tidss:
         - use after free fix"
      
      * tag 'drm-fixes-2020-04-24' of git://anongit.freedesktop.org/drm/drm:
        drm/i915/dpcd_bl: Unbreak enable_dpcd_backlight modparam
        drm/i915: fix Sphinx build duplicate label warning
        drm/i915/display: Load DP_TP_CTL/STATUS offset before use it
        drm/i915/tgl: TBT AUX should use TC power well ops
        drm/i915: HDCP: fix Ri prime check done during link check
        drm/i915/gt: Update PMINTRMSK holding fw
        drm/i915/tgl: Add Wa_14010477008:tgl
        drm/tidss: fix crash related to accessing freed memory
        drm/dp_mst: Zero assigned PBN when releasing VCPI slots
        drm/amdgpu/display: give aux i2c buses more meaningful names
        drm/amdgpu/display: fix aux registration (v2)
        drm/amdgpu: Correctly initialize thermal controller for GPUs with Powerplay table v0 (e.g Hawaii)
        drm/amd/powerplay: fix resume failed as smu table initialize early exit
        drm/scheduler: fix drm_sched_get_cleanup_job
        drm/meson: Delete an error message in meson_dw_hdmi_bind()
        drm/bridge: anx6345: set correct BPC for display_info of connector
        dt-bindings: display: allow port and ports in panel-lvds
        dt-bindings: display: xpp055c272: Remove the reg property
        dt-bindings: display: ltk500hd1829: Remove the reg property
        drm/bridge: analogix_dp: Split bind() into probe() and real bind()
      88412a4e
    • David Howells's avatar
      afs: Make record checking use TASK_UNINTERRUPTIBLE when appropriate · c4bfda16
      David Howells authored
      When an operation is meant to be done uninterruptibly (such as
      FS.StoreData), we should not be allowing volume and server record checking
      to be interrupted.
      
      Fixes: d2ddc776 ("afs: Overhaul volume and server record caching and fileserver rotation")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      c4bfda16
    • David Howells's avatar
      afs: Fix to actually set AFS_SERVER_FL_HAVE_EPOCH · 69cf3978
      David Howells authored
      AFS keeps track of the epoch value from the rxrpc protocol to note (a) when
      a fileserver appears to have restarted and (b) when different endpoints of
      a fileserver do not appear to be associated with the same fileserver
      (ie. all probes back from a fileserver from all of its interfaces should
      carry the same epoch).
      
      However, the AFS_SERVER_FL_HAVE_EPOCH flag that indicates that we've
      received the server's epoch is never set, though it is used.
      
      Fix this to set the flag when we first receive an epoch value from a probe
      sent to the filesystem client from the fileserver.
      
      Fixes: 3bf0fb6f ("afs: Probe multiple fileservers simultaneously")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      69cf3978
    • David Howells's avatar
      afs: Remove some unused bits · be59167c
      David Howells authored
      Remove three bits:
      
       (1) afs_server::no_epoch is neither set nor used.
      
       (2) afs_server::have_result is set and a wakeup is applied to it, but
           nothing looks at it or waits on it.
      
       (3) afs_vl_dump_edestaddrreq() prints afs_addr_list::probed, but nothing
           sets it for VL servers.
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      be59167c
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2020-04-23' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · e32b2484
      Dave Airlie authored
      A few resources-related fixes (tidss, dp_mst, scheduler), probe fixes and
      DT bindings adjustments.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200423103224.7hvyr3v7dmuny2bz@gilmour.lan
      e32b2484
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2020-04-23' of... · 11c5ec78
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2020-04-23' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Tigerlake Workaround - disabling media recompression (Matt)
      - Fix RPS interrupts for right GPU frequency (Chris)
      - HDCP fix prime check (Oliver)
      - Tigerlake Thunderbolt power well fix (Matt)
      - Tigerlake DP link training fixes (Jose)
      - Documentation sphinx build fix (Jani)
      - Fix enable_dpcd_backlight modparam (Lyude)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200423190246.GA1710303@intel.com
      11c5ec78
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.7-2020-04-22' of... · c2c39adb
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-5.7-2020-04-22' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.7-2020-04-22:
      
      amdgpu:
      - Fix resume issue on renoir
      - Thermal fix for older CI dGPUs
      - Fix some fallout from dropping drm load/unload callbacks
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20200422224647.617724-1-alexander.deucher@amd.com
      c2c39adb
  2. 23 Apr, 2020 24 commits