Skip to content
  1. Feb 15, 2021
  2. Feb 14, 2021
  3. Feb 13, 2021
    • Linus Torvalds's avatar
      Merge tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel · 7989807d
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Four small smb3 fixes to the new mount API (including a particularly
        important one for DFS links).
      
        These were found in testing this week of additional DFS scenarios, and
        a user testing of an apache container problem"
      
      * tag '5.11-rc7-smb3-github' of git://github.com/smfrench/smb3-kernel:
        cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.
        cifs: In the new mount api we get the full devname as source=
        cifs: do not disable noperm if multiuser mount option is not provided
        cifs: fix dfs-links
      7989807d
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block · c6d8570e
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Revert of a patch from this release that caused a regression"
      
      * tag 'io_uring-5.11-2021-02-12' of git://git.kernel.dk/linux-block:
        Revert "io_uring: don't take fs for recvmsg/sendmsg"
      c6d8570e
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-02-12' of git://anongit.freedesktop.org/drm/drm · a81bfdf8
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes for final, there is a ttm regression fix, dp-mst fix,
        one amdgpu revert, two i915 fixes, and some misc fixes for sun4i,
        xlnx, and vc4.
      
        All pretty quiet and don't think we have any known outstanding
        regressions.
      
        ttm:
         - page pool regression fix.
      
        dp_mst:
         - don't report un-attached ports as connected
      
        amdgpu:
         - blank screen fix
      
        i915:
         - ensure Type-C FIA is powered when initializing
         - fix overlay frontbuffer tracking
      
        sun4i:
         - tcon1 sync polarity fix
         - always set HDMI clock rate
         - fix H6 HDMI PHY config
         - fix H6 max frequency
      
        vc4:
         - fix buffer overflow
      
        xlnx:
         - fix memory leak"
      
      * tag 'drm-fixes-2021-02-12' of git://anongit.freedesktop.org/drm/drm:
        drm/ttm: make sure pool pages are cleared
        drm/sun4i: dw-hdmi: Fix max. frequency for H6
        drm/sun4i: Fix H6 HDMI PHY configuration
        drm/sun4i: dw-hdmi: always set clock rate
        drm/sun4i: tcon: set sync polarity for tcon1 channel
        drm/i915: Fix overlay frontbuffer tracking
        Revert "drm/amd/display: Update NV1x SR latency values"
        drm/i915/tgl+: Make sure TypeC FIA is powered up when initializing it
        drm/dp_mst: Don't report ports connected if nothing is attached to them
        drm/xlnx: fix kmemleak by sending vblank_event in atomic_disable
        drm/vc4: hvs: Fix buffer overflow with the dlist handling
      a81bfdf8
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · e77a6817
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
       "Fix buffer overflow in trace event filter.
      
        It was reported that if an trace event was larger than a page and was
        filtered, that it caused memory corruption. The reason is that
        filtered events first go into a buffer to test the filter before being
        written into the ring buffer. Unfortunately, this write did not check
        the size"
      
      * tag 'trace-v5.11-rc7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Check length before giving out the filter buffer
      e77a6817
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 2dbbaae5
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "A single fix for an issue introduced this development cycle: when
        running as a Xen guest on Arm systems the kernel will hang during
        boot"
      
      * tag 'for-linus-5.11-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        arm/xen: Don't probe xenbus as part of an early initcall
      2dbbaae5
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.11-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · f9516259
      Linus Torvalds authored
      Pull RISC-V fix from Palmer Dabbelt:
       "A single fix this week: the removal of the GPIO reset method for the
        Ethernet phy on the HiFive Unleashed.
      
        This returns to relying on the bootloader's phy reset sequence, which
        we'll have to continue doing until we can sort out how to get the
        Linux phy driver to perform the special reset dance required for this
        phy"
      
      * tag 'riscv-for-linus-5.11-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        Revert "dts: phy: add GPIO number and active state used for phy reset"
      f9516259
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 93908500
      Linus Torvalds authored
      Pull arm64 fix from Catalin Marinas:
       "Fix PTRACE_PEEKMTETAGS access to an mmapped region before the first
        write"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page
      93908500
    • Catalin Marinas's avatar
      arm64: mte: Allow PTRACE_PEEKMTETAGS access to the zero page · 68d54cee
      Catalin Marinas authored
      
      
      The ptrace(PTRACE_PEEKMTETAGS) implementation checks whether the user
      page has valid tags (mapped with PROT_MTE) by testing the PG_mte_tagged
      page flag. If this bit is cleared, ptrace(PTRACE_PEEKMTETAGS) returns
      -EIO.
      
      A newly created (PROT_MTE) mapping points to the zero page which had its
      tags zeroed during cpu_enable_mte(). If there were no prior writes to
      this mapping, ptrace(PTRACE_PEEKMTETAGS) fails with -EIO since the zero
      page does not have the PG_mte_tagged flag set.
      
      Set PG_mte_tagged on the zero page when its tags are cleared during
      boot. In addition, to avoid ptrace(PTRACE_PEEKMTETAGS) succeeding on
      !PROT_MTE mappings pointing to the zero page, change the
      __access_remote_tags() check to (vm_flags & VM_MTE) instead of
      PG_mte_tagged.
      
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Fixes: 34bfeea4
      
       ("arm64: mte: Clear the tags when a page is mapped in user-space with PROT_MTE")
      Cc: <stable@vger.kernel.org> # 5.10.x
      Cc: Will Deacon <will@kernel.org>
      Reported-by: default avatarLuis Machado <luis.machado@linaro.org>
      Tested-by: default avatarLuis Machado <luis.machado@linaro.org>
      Reviewed-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
      Link: https://lore.kernel.org/r/20210210180316.23654-1-catalin.marinas@arm.com
      68d54cee
  4. Feb 12, 2021
    • Su Yue's avatar
      btrfs: initialize fs_info::csum_size earlier in open_ctree · 83c68bbc
      Su Yue authored
      User reported that btrfs-progs misc-tests/028-superblock-recover fails:
      
            [TEST/misc]   028-superblock-recover
        unexpected success: mounted fs with corrupted superblock
        test failed for case 028-superblock-recover
      
      The test case expects that a broken image with bad superblock will be
      rejected to be mounted. However, the test image just passed csum check
      of superblock and was successfully mounted.
      
      Commit 55fc29be ("btrfs: use cached value of fs_info::csum_size
      everywhere") replaces all calls to btrfs_super_csum_size by
      fs_info::csum_size. The calls include the place where fs_info->csum_size
      is not initialized. So btrfs_check_super_csum() passes because memcmp()
      with len 0 always returns 0.
      
      Fix it by caching csum size in btrfs_fs_info::csum_size once we know the
      csum type in superblock is valid in open_ctree().
      
      Link: https://github.com/kdave/btrfs-progs/issues/250
      Fixes: 55fc29be
      
       ("btrfs: use cached value of fs_info::csum_size everywhere")
      Signed-off-by: default avatarSu Yue <l@damenly.su>
      Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
      Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
      83c68bbc
    • Alain Volmat's avatar
      i2c: stm32f7: fix configuration of the digital filter · 3d6a3d3a
      Alain Volmat authored
      The digital filter related computation are present in the driver
      however the programming of the filter within the IP is missing.
      The maximum value for the DNF is wrong and should be 15 instead of 16.
      
      Fixes: aeb068c5
      
       ("i2c: i2c-stm32f7: add driver")
      
      Signed-off-by: default avatarAlain Volmat <alain.volmat@foss.st.com>
      Signed-off-by: default avatarPierre-Yves MORDRET <pierre-yves.mordret@foss.st.com>
      Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
      3d6a3d3a
    • Dave Airlie's avatar
      Merge branch 'drm-misc-fixes' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 551c8185
      Dave Airlie authored
      
      
      (I've pulled from a non-tag to get the ttm regression fix)
      drm-misc-fixes-2021-02-10:
       * dp_mst: Don't report un-attached ports as connected
       * sun4i: tcon1 sync polarity fix; Always set HDMI clock rate; Fix
                H6 HDMI PHY config; Fix H6 max frequency
       * vc4: Fix buffer overflow
       * xlnx: Fix memory leak
       * ttm: page pool regression fix.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YCPo6g3gDxD3P//h@linux-uq9g
      551c8185
    • Jernej Skrabec's avatar
      clk: sunxi-ng: mp: fix parent rate change flag check · 245090ab
      Jernej Skrabec authored
      CLK_SET_RATE_PARENT flag is checked on parent clock instead of current
      one. Fix that.
      
      Fixes: 3f790433
      
       ("clk: sunxi-ng: Adjust MP clock parent rate when allowed")
      Reviewed-by: default avatarChen-Yu Tsai <wens@csie.org>
      Tested-by: default avatarAndre Heider <a.heider@gmail.com>
      Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@siol.net>
      Link: https://lore.kernel.org/r/20210209175900.7092-2-jernej.skrabec@siol.net
      Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
      Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
      245090ab
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2021-02-11' of... · 0594bc74
      Dave Airlie authored
      
      Merge tag 'drm-intel-fixes-2021-02-11' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      drm/i915 fixes for v5.11 final:
      - Ensure Type-C FIA is powered when initializing
      - Fix overlay frontbuffer tracking
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87r1lnc78t.fsf@intel.com
      0594bc74
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.11-2021-02-10' of... · d92d3d8f
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-5.11-2021-02-10' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.11-2021-02-10:
      
      amdgpu:
      - Blank screen fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210210223508.4428-1-alexander.deucher@amd.com
      d92d3d8f
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.11-8' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · dcc0b490
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
       "One fix for a regression seen in io_uring, introduced by our support
        for KUAP (Kernel User Access Prevention) with the Hash MMU.
      
        Thanks to Aneesh Kumar K.V, and Zorro Lang"
      
      * tag 'powerpc-5.11-8' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/kuap: Allow kernel thread to access userspace after kthread_use_mm
      dcc0b490
    • Steven Rostedt (VMware)'s avatar
      tracing: Check length before giving out the filter buffer · b220c049
      Steven Rostedt (VMware) authored
      When filters are used by trace events, a page is allocated on each CPU and
      used to copy the trace event fields to this page before writing to the ring
      buffer. The reason to use the filter and not write directly into the ring
      buffer is because a filter may discard the event and there's more overhead
      on discarding from the ring buffer than the extra copy.
      
      The problem here is that there is no check against the size being allocated
      when using this page. If an event asks for more than a page size while being
      filtered, it will get only a page, leading to the caller writing more that
      what was allocated.
      
      Check the length of the request, and if it is more than PAGE_SIZE minus the
      header default back to allocating from the ring buffer directly. The ring
      buffer may reject the event if its too big anyway, but it wont overflow.
      
      Link: https://lore.kernel.org/ath10k/1612839593-2308-1-git-send-email-wgong@codeaurora.org/
      
      Cc: stable@vger.kernel.org
      Fixes: 0fc1b09f
      
       ("tracing: Use temp buffer when filtering events")
      Reported-by: default avatarWen Gong <wgong@codeaurora.org>
      Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
      b220c049
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · c05263df
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
       "This is hopefully the last batch of fixes for this release cycle. We
        have a minor fix for a Kconfig regression as well as fixes for older
        bugs in gpio-ep93xx:
      
         - don't build gpio-mxs unconditionally with COMPILE_TEST enabled
      
         - fix two problems with interrupt handling in gpio-ep93xx"
      
      * tag 'gpio-fixes-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: ep93xx: Fix single irqchip with multi gpiochips
        gpio: ep93xx: fix BUG_ON port F usage
        gpio: mxs: GPIO_MXS should not default to y unconditionally
      c05263df
    • Masahiro Yamada's avatar
      kbuild: fix CONFIG_TRIM_UNUSED_KSYMS build for ppc64 · 29500f15
      Masahiro Yamada authored
      
      
      Stephen Rothwell reported a build error on ppc64 when
      CONFIG_TRIM_UNUSED_KSYMS is enabled.
      
      Jessica Yu pointed out the cause of the error with the reference to the
      ppc64 ELF ABI:
        "Symbol names with a dot (.) prefix are reserved for holding entry
         point addresses. The value of a symbol named ".FN", if it exists,
         is the entry point of the function "FN".
      
      As it turned out, CONFIG_TRIM_UNUSED_KSYMS has never worked for ppc64,
      but this issue has been unnoticed until recently because this option
      depends on !UNUSED_SYMBOLS hence is disabled by all{mod,yes}config.
      (Then, it was uncovered by another patch removing UNUSED_SYMBOLS.)
      
      Removing the dot prefix in scripts/gen_autoksyms.sh fixes the issue.
      Please note it must be done before 'sort -u' because modules have
      both ._mcount and _mcount undefined when CONFIG_FUNCTION_TRACER=y.
      
      Link: https://lore.kernel.org/lkml/20210209210843.3af66662@canb.auug.org.au/
      Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      Tested-by: default avatarJessica Yu <jeyu@kernel.org>
      29500f15
    • Shyam Prasad N's avatar
      cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath. · a738c93f
      Shyam Prasad N authored
      
      
      While debugging another issue today, Steve and I noticed that if a
      subdir for a file share is already mounted on the client, any new
      mount of any other subdir (or the file share root) of the same share
      results in sharing the cifs superblock, which e.g. can result in
      incorrect device name.
      
      While setting prefix path for the root of a cifs_sb,
      CIFS_MOUNT_USE_PREFIX_PATH flag should also be set.
      Without it, prepath is not even considered in some places,
      and output of "mount" and various /proc/<>/*mount* related
      options can be missing part of the device name.
      
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      a738c93f
    • Ronnie Sahlberg's avatar
      cifs: In the new mount api we get the full devname as source= · af1a3d2b
      Ronnie Sahlberg authored
      
      
      so we no longer need to handle or parse the UNC= and prefixpath=
      options that mount.cifs are generating.
      
      This also fixes a bug in the mount command option where the devname
      would be truncated into just //server/share because we were looking
      at the truncated UNC value and not the full path.
      
      I.e.  in the mount command output the devive //server/share/path
      would show up as just //server/share
      
      Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
      Reviewed-by: default avatarShyam Prasad N <nspmangalore@gmail.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      af1a3d2b
  5. Feb 11, 2021