1. 18 Dec, 2020 18 commits
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.11-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · a0b96314
      Linus Torvalds authored
      Pull xfs updates from Darrick Wong:
       "In this release we add the ability to set a 'needsrepair' flag
        indicating that we /know/ the filesystem requires xfs_repair, but
        other than that, it's the usual strengthening of metadata validation
        and miscellaneous cleanups.
      
        Summary:
      
         - Introduce a "needsrepair" "feature" to flag a filesystem as needing
           a pass through xfs_repair. This is key to enabling filesystem
           upgrades (in xfs_db) that require xfs_repair to make minor
           adjustments to metadata.
      
         - Refactor parameter checking of recovered log intent items so that
           we actually use the same validation code as them that generate the
           intent items.
      
         - Various fixes to online scrub not reacting correctly to directory
           entries pointing to inodes that cannot be igetted.
      
         - Refactor validation helpers for data and rt volume extents.
      
         - Refactor XFS_TRANS_DQ_DIRTY out of existence.
      
         - Fix a longstanding bug where mounting with "uqnoenforce" would
           start user quotas in non-enforcing mode but /proc/mounts would
           display "usrquota", implying that they are being enforced.
      
         - Don't flag dax+reflink inodes as corruption since that is a valid
           (but not fully functional) combination right now.
      
         - Clean up raid stripe validation functions.
      
         - Refactor the inode allocation code to be more straightforward.
      
         - Small prep cleanup for idmapping support.
      
         - Get rid of the xfs_buf_t typedef"
      
      * tag 'xfs-5.11-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux: (40 commits)
        xfs: remove xfs_buf_t typedef
        fs/xfs: convert comma to semicolon
        xfs: open code updating i_mode in xfs_set_acl
        xfs: remove xfs_vn_setattr_nonsize
        xfs: kill ialloced in xfs_dialloc()
        xfs: spilt xfs_dialloc() into 2 functions
        xfs: move xfs_dialloc_roll() into xfs_dialloc()
        xfs: move on-disk inode allocation out of xfs_ialloc()
        xfs: introduce xfs_dialloc_roll()
        xfs: convert noroom, okalloc in xfs_dialloc() to bool
        xfs: don't catch dax+reflink inodes as corruption in verifier
        xfs: fix the forward progress assertion in xfs_iwalk_run_callbacks
        xfs: remove unneeded return value check for *init_cursor()
        xfs: introduce xfs_validate_stripe_geometry()
        xfs: show the proper user quota options
        xfs: remove the unused XFS_B_FSB_OFFSET macro
        xfs: remove unnecessary null check in xfs_generic_create
        xfs: directly return if the delta equal to zero
        xfs: check tp->t_dqinfo value instead of the XFS_TRANS_DQ_DIRTY flag
        xfs: delete duplicated tp->t_dqinfo null check and allocation
        ...
      a0b96314
    • Linus Torvalds's avatar
      Merge tag 'ktest-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest · 4862c741
      Linus Torvalds authored
      Pull ktest updates from Steven Rostedt:
       "No new features. Just a couple of fixes that I had in my local
        repository that fixed issues with sending the result emails"
      
      * tag 'ktest-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
        ktest.pl: Fix the logic for truncating the size of the log file for email
        ktest.pl: If size of log is too big to email, email error message
      4862c741
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2020-12-18' of git://anongit.freedesktop.org/drm/drm · c59c7588
      Linus Torvalds authored
      Pull more drm updates from Daniel Vetter:
       "UAPI Changes:
      
         - Only enable char/agp uapi when CONFIG_DRM_LEGACY is set
      
        Cross-subsystem Changes:
      
         - vma_set_file helper to make vma->vm_file changing less brittle,
           acked by Andrew
      
        Core Changes:
      
         - dma-buf heaps improvements
      
         - pass full atomic modeset state to driver callbacks
      
         - shmem helpers: cached bo by default
      
         - cleanups for fbdev, fb-helpers
      
         - better docs for drm modes and SCALING_FITLER uapi
      
         - ttm: fix dma32 page pool regression
      
        Driver Changes:
      
         - multi-hop regression fixes for amdgpu, radeon, nouveau
      
         - lots of small amdgpu hw enabling fixes (display, pm, ...)
      
         - fixes for imx, mcde, meson, some panels, virtio, qxl, i915, all
           fairly minor
      
         - some cleanups for legacy drm/fbdev drivers"
      
      * tag 'drm-next-2020-12-18' of git://anongit.freedesktop.org/drm/drm: (117 commits)
        drm/qxl: don't allocate a dma_address array
        drm/nouveau: fix multihop when move doesn't work.
        drm/i915/tgl: Fix REVID macros for TGL to fetch correct stepping
        drm/i915: Fix mismatch between misplaced vma check and vma insert
        drm/i915/perf: also include Gen11 in OATAILPTR workaround
        Revert "drm/i915: re-order if/else ladder for hpd_irq_setup"
        drm/amdgpu/disply: fix documentation warnings in display manager
        drm/amdgpu: print mmhub client name for dimgrey_cavefish
        drm/amdgpu: set mode1 reset as default for dimgrey_cavefish
        drm/amd/display: Add get_dig_frontend implementation for DCEx
        drm/radeon: remove h from printk format specifier
        drm/amdgpu: remove h from printk format specifier
        drm/amdgpu: Fix spelling mistake "Heterogenous" -> "Heterogeneous"
        drm/amdgpu: fix regression in vbios reservation handling on headless
        drm/amdgpu/SRIOV: Extend VF reset request wait period
        drm/amdkfd: correct amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu log.
        drm/amd/display: Adding prototype for dccg21_update_dpp_dto()
        drm/amdgpu: print what method we are using for runtime pm
        drm/amdgpu: simplify logic in atpx resume handling
        drm/amdgpu: no need to call pci_ignore_hotplug for _PR3
        ...
      c59c7588
    • Linus Torvalds's avatar
      Merge tag 'thermal-v5.11-2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux · 432c19a8
      Linus Torvalds authored
      Pull thermal fixlet from Daniel Lezcano:
       "A trivial change which fell through the cracks:
      
        Add Alder Lake support ACPI ids (Srinivas Pandruvada)"
      
      * tag 'thermal-v5.11-2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux:
        thermal: int340x: Support Alder Lake
      432c19a8
    • Linus Torvalds's avatar
      Merge tag 's390-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · a0872417
      Linus Torvalds authored
      Pull more s390 updates from Heiko Carstens:
       "This is mainly to decouple udelay() and arch_cpu_idle() and simplify
        both of them.
      
        Summary:
      
         - Always initialize kernel stack backchain when entering the kernel,
           so that unwinding works properly.
      
         - Fix stack unwinder test case to avoid rare interrupt stack
           corruption.
      
         - Simplify udelay() and just let it busy loop instead of implementing
           a complex logic.
      
         - arch_cpu_idle() cleanup.
      
         - Some other minor improvements"
      
      * tag 's390-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/zcrypt: convert comma to semicolon
        s390/idle: allow arch_cpu_idle() to be kprobed
        s390/idle: remove raw_local_irq_save()/restore() from arch_cpu_idle()
        s390/idle: merge enabled_wait() and arch_cpu_idle()
        s390/delay: remove udelay_simple()
        s390/irq: select HAVE_IRQ_EXIT_ON_IRQ_STACK
        s390/delay: simplify udelay
        s390/test_unwind: use timer instead of udelay
        s390/test_unwind: fix CALL_ON_STACK tests
        s390: make calls to TRACE_IRQS_OFF/TRACE_IRQS_ON balanced
        s390: always clear kernel stack backchain before calling functions
      a0872417
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 5ba836eb
      Linus Torvalds authored
      Pull more arm64 updates from Catalin Marinas:
       "These are some some trivial updates that mostly fix/clean-up code
        pushed during the merging window:
      
         - Work around broken GCC 4.9 handling of "S" asm constraint
      
         - Suppress W=1 missing prototype warnings
      
         - Warn the user when a small VA_BITS value cannot map the available
           memory
      
         - Drop the useless update to per-cpu cycles"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Work around broken GCC 4.9 handling of "S" constraint
        arm64: Warn the user when a small VA_BITS value wastes memory
        arm64: entry: suppress W=1 prototype warnings
        arm64: topology: Drop the useless update to per-cpu cycles
      5ba836eb
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.11-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · e2ae6340
      Linus Torvalds authored
      Pull RISC-V updates from Palmer Dabbelt:
       "We have a handful of new kernel features for 5.11:
      
         - Support for the contiguous memory allocator.
      
         - Support for IRQ Time Accounting
      
         - Support for stack tracing
      
         - Support for strict /dev/mem
      
         - Support for kernel section protection
      
        I'm being a bit conservative on the cutoff for this round due to the
        timing, so this is all the new development I'm going to take for this
        cycle (even if some of it probably normally would have been OK). There
        are, however, some fixes on the list that I will likely be sending
        along either later this week or early next week.
      
        There is one issue in here: one of my test configurations
        (PREEMPT{,_DEBUG}=y) fails to boot on QEMU 5.0.0 (from April) as of
        the .text.init alignment patch.
      
        With any luck we'll sort out the issue, but given how many bugs get
        fixed all over the place and how unrelated those features seem my
        guess is that we're just running into something that's been lurking
        for a while and has already been fixed in the newer QEMU (though I
        wouldn't be surprised if it's one of these implicit assumptions we
        have in the boot flow). If it was hardware I'd be strongly inclined to
        look more closely, but given that users can upgrade their simulators
        I'm less worried about it"
      
      * tag 'riscv-for-linus-5.11-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        arm64: Use the generic devmem_is_allowed()
        arm: Use the generic devmem_is_allowed()
        RISC-V: Use the new generic devmem_is_allowed()
        lib: Add a generic version of devmem_is_allowed()
        riscv: Fixed kernel test robot warning
        riscv: kernel: Drop unused clean rule
        riscv: provide memmove implementation
        RISC-V: Move dynamic relocation section under __init
        RISC-V: Protect all kernel sections including init early
        RISC-V: Align the .init.text section
        RISC-V: Initialize SBI early
        riscv: Enable ARCH_STACKWALK
        riscv: Make stack walk callback consistent with generic code
        riscv: Cleanup stacktrace
        riscv: Add HAVE_IRQ_TIME_ACCOUNTING
        riscv: Enable CMA support
        riscv: Ignore Image.* and loader.bin
        riscv: Clean up boot dir
        riscv: Fix compressed Image formats build
        RISC-V: Add kernel image sections to the resource tree
      e2ae6340
    • Daniel Vetter's avatar
      Merge tag 'drm-intel-next-fixes-2020-12-18' of... · 4efd7fab
      Daniel Vetter authored
      Merge tag 'drm-intel-next-fixes-2020-12-18' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
      
      drm/i915 fixes for the merge window
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87zh2bp34m.fsf@intel.com
      4efd7fab
    • Christian König's avatar
      drm/qxl: don't allocate a dma_address array · f96f6259
      Christian König authored
      That seems to be unused.
      
      Daniel: Mike reported a warning when booting with qxl, which this
      patch fixes:
      
      [    1.815561] WARNING: CPU: 7 PID: 355 at drivers/gpu/drm/ttm/ttm_pool.c:365 ttm_pool_alloc+0x41b/0x540 [ttm]
      Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
      Reported-by: default avatarMike Galbraith <efault@gmx.de>
      Tested-by: default avatarMike Galbraith <efault@gmx.de>
      References: https://lore.kernel.org/lkml/7cb43d5b-4e6a-defc-1ab6-5f713ad5a963@amd.com/Reviewed-by: default avatarDavid Airlie <airlied@redhat.com>
      [davnet: bring commit message up to par.]
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201218134243.110884-1-christian.koenig@amd.com
      f96f6259
    • Dave Airlie's avatar
      drm/nouveau: fix multihop when move doesn't work. · 660a5995
      Dave Airlie authored
      As per the radeon/amdgpu fix don't use multihop if hw moves
      aren't enabled.
      Reported-by: default avatarMike Galbraith <efault@gmx.de>
      Tested-by: default avatarMike Galbraith <efault@gmx.de>
      Fixes: 0c8c0659 ("drm/nouveau/ttm: use multihop")
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201217200943.30511-1-airlied@gmail.com
      660a5995
    • Aditya Swarup's avatar
      drm/i915/tgl: Fix REVID macros for TGL to fetch correct stepping · 046f70d3
      Aditya Swarup authored
      Fix TGL REVID macros to fetch correct display/gt stepping based
      on SOC rev id from INTEL_REVID() macro. Previously, we were just
      returning the first element of the revid array instead of using
      the correct index based on SOC rev id.
      
      Fixes: c33298cb ("drm/i915/tgl: Fix stepping WA matching")
      Cc: José Roberto de Souza <jose.souza@intel.com>
      Cc: Matt Roper <matthew.d.roper@intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: default avatarAditya Swarup <aditya.swarup@intel.com>
      Reviewed-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201203072359.156682-1-aditya.swarup@intel.com
      (cherry picked from commit 83dbd74f)
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      046f70d3
    • Chris Wilson's avatar
      drm/i915: Fix mismatch between misplaced vma check and vma insert · 0e53656a
      Chris Wilson authored
      When inserting a VMA, we restrict the placement to the low 4G unless the
      caller opts into using the full range. This was done to allow usersapce
      the opportunity to transition slowly from a 32b address space, and to
      avoid breaking inherent 32b assumptions of some commands.
      
      However, for insert we limited ourselves to 4G-4K, but on verification
      we allowed the full 4G. This causes some attempts to bind a new buffer
      to sporadically fail with -ENOSPC, but at other times be bound
      successfully.
      
      commit 48ea1e32 ("drm/i915/gen9: Set PIN_ZONE_4G end to 4GB - 1
      page") suggests that there is a genuine problem with stateless addressing
      that cannot utilize the last page in 4G and so we purposefully excluded
      it. This means that the quick pin pass may cause us to utilize a buggy
      placement.
      Reported-by: default avatarCQ Tang <cq.tang@intel.com>
      Testcase: igt/gem_exec_params/larger-than-life-batch
      Fixes: 48ea1e32 ("drm/i915/gen9: Set PIN_ZONE_4G end to 4GB - 1 page")
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: CQ Tang <cq.tang@intel.com>
      Reviewed-by: default avatarCQ Tang <cq.tang@intel.com>
      Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
      Cc: <stable@vger.kernel.org> # v4.5+
      Link: https://patchwork.freedesktop.org/patch/msgid/20201216092951.7124-1-chris@chris-wilson.co.uk
      (cherry picked from commit 5f22cc0b)
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      0e53656a
    • Lionel Landwerlin's avatar
      drm/i915/perf: also include Gen11 in OATAILPTR workaround · dd0e2193
      Lionel Landwerlin authored
      CI shows this workaround is also needed on Gen11.
      Signed-off-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Fixes: 059a0beb ("drm/i915/perf: workaround register corruption in OATAILPTR")
      Reviewed-by: default avatarUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201126105155.540350-1-lionel.g.landwerlin@intel.com
      (cherry picked from commit fa5d598b)
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      dd0e2193
    • Chris Wilson's avatar
      Revert "drm/i915: re-order if/else ladder for hpd_irq_setup" · 2ccf2e03
      Chris Wilson authored
      We now use ilk_hpd_irq_setup for all GMCH platforms that do not have
      hotplug. These are early gen3 and gen2 devices that now explode on boot
      as they try to access non-existent registers.
      
      Fixes: 794d61a1 ("drm/i915: re-order if/else ladder for hpd_irq_setup")
      Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Cc: José Roberto de Souza <jose.souza@intel.com>
      Cc: Jani Nikula <jani.nikula@linux.intel.com>
      Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201127145748.29491-1-chris@chris-wilson.co.uk
      (cherry picked from commit e5346a1f)
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      2ccf2e03
    • Linus Torvalds's avatar
      Merge tag 'gpio-v5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio · a409ed15
      Linus Torvalds authored
      Pull GPIO updates from Linus Walleij:
       "This is the bulk of the GPIO changes for the v5.11 kernel cycle:
      
        Core changes:
      
         - Retired the old set-up function for GPIO IRQ chips. All chips now
           use the template struct gpio_irq_chip and pass that to the core to
           be set up alongside the gpio_chip. We can finally get rid of the
           old cruft.
      
         - Some refactoring and clean up of the core code.
      
         - Support edge event timestamps to be stamped using REALTIME (wall
           clock) timestamps. We have found solid use cases for this, so we
           support it.
      
        New drivers:
      
         - MStar MSC313 GPIO driver.
      
         - HiSilicon GPIO driver.
      
        Driver improvements:
      
         - The PCA953x driver now also supports the NXP PCAL9554B/C chips.
      
         - The mockup driver can now be probed from the device tree which is
           pretty useful for virtual prototyping of devices.
      
         - The Rcar driver now supports .get_multiple()
      
         - The MXC driver dropped some legacy and became a pure device tree
           client.
      
         - The Exar driver was moved over to the IDA interface for
           enumerating, and also switched over to using regmap for register
           access"
      
      * tag 'gpio-v5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (87 commits)
        MAINTAINERS: Remove reference to non-existing file
        gpio: hisi: Do not require ACPI for COMPILE_TEST
        MAINTAINERS: Add maintainer for HiSilicon GPIO driver
        gpio: gpio-hisi: Add HiSilicon GPIO support
        gpio: cs5535: Simplify the return expression of cs5535_gpio_probe()
        gpiolib: irq hooks: fix recursion in gpiochip_irq_unmask
        dt-bindings: mt7621-gpio: convert bindings to YAML format
        gpiolib: cdev: Flag invalid GPIOs as used
        gpio: put virtual gpio device into their own submenu
        drivers: gpio: amd8111: use SPDX-License-Identifier
        drivers: gpio: amd8111: prefer dev_err()/dev_info() over raw printk
        drivers: gpio: bt8xx: prefer dev_err()/dev_warn() over of raw printk
        gpio: Add TODO item for debugfs interface
        gpio: just plain warning when nonexisting gpio requested
        tools: gpio: add option to report wall-clock time to gpio-event-mon
        tools: gpio: add support for reporting realtime event clock to lsgpio
        gpiolib: cdev: allow edge event timestamps to be configured as REALTIME
        gpio: msc313: MStar MSC313 GPIO driver
        dt-bindings: gpio: Binding for MStar MSC313 GPIO controller
        dt-bindings: gpio: Add a binding header for the MSC313 GPIO driver
        ...
      a409ed15
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 345b17ac
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - IRQ handling cleanups
      
       - Support for suspend
      
       - Various fixes for UML specific drivers: ubd, vector, xterm
      
      * tag 'for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml: (32 commits)
        um: Fix build w/o CONFIG_PM_SLEEP
        um: time-travel: Correct time event IRQ delivery
        um: irq/sigio: Support suspend/resume handling of workaround IRQs
        um: time-travel: Actually apply "free-until" optimisation
        um: chan_xterm: Fix fd leak
        um: tty: Fix handling of close in tty lines
        um: Monitor error events in IRQ controller
        um: allocate a guard page to helper threads
        um: support some of ARCH_HAS_SET_MEMORY
        um: time-travel: avoid multiple identical propagations
        um: Fetch registers only for signals which need them
        um: Support suspend to RAM
        um: Allow PM with suspend-to-idle
        um: time: Fix read_persistent_clock64() in time-travel
        um: Simplify os_idle_sleep() and sleep longer
        um: Simplify IRQ handling code
        um: Remove IRQ_NONE type
        um: irq: Reduce irq_reg allocation
        um: irq: Clean up and rename struct irq_fd
        um: Clean up alarm IRQ chip name
        ...
      345b17ac
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 787fec8a
      Linus Torvalds authored
      Pull jffs2, ubi and ubifs updates from Richard Weinberger:
       "JFFS2:
         - Fix for a remount regression
         - Fix for an abnormal GC exit
         - Fix for a possible NULL pointer issue while mounting
      
        UBI:
         - Add support ECC-ed NOR flash
         - Removal of dead code
      
        UBIFS:
         - Make node dumping debug code more reliable
         - Various cleanups: less ifdefs, less typos
         - Fix for an info leak"
      
      * tag 'for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        ubifs: ubifs_dump_node: Dump all branches of the index node
        ubifs: ubifs_dump_sleb: Remove unused function
        ubifs: Pass node length in all node dumping callers
        Revert "ubifs: Fix out-of-bounds memory access caused by abnormal value of node_len"
        ubifs: Limit dumping length by size of memory which is allocated for the node
        ubifs: Remove the redundant return in dbg_check_nondata_nodes_order
        jffs2: Fix NULL pointer dereference in rp_size fs option parsing
        ubifs: Fixed print foramt mismatch in ubifs
        ubi: Do not zero out EC and VID on ECC-ed NOR flashes
        jffs2: remove trailing semicolon in macro definition
        ubifs: Fix error return code in ubifs_init_authentication()
        ubifs: wbuf: Don't leak kernel memory to flash
        ubi: Remove useless code in bytes_str_to_int
        ubifs: Fix the printing type of c->big_lpt
        jffs2: Allow setting rp_size to zero during remounting
        jffs2: Fix ignoring mounting options problem during remounting
        jffs2: Fix GC exit abnormally
        ubifs: Code cleanup by removing ifdef macro surrounding
        jffs2: Fix if/else empty body warnings
        ubifs: Delete duplicated words + other fixes
      787fec8a
    • Linus Torvalds's avatar
      Merge tag '5.11-rc-smb3' of git://git.samba.org/sfrench/cifs-2.6 · e13300bd
      Linus Torvalds authored
      Pull cifs updates from Steve French:
       "The largest part are for support of the newer mount API which has been
        needed for cifs/smb3 mounts for a long time due to the new API's
        better handling of remount, and better error reporting. There are
        three additional small cleanup patches for this being tested, that are
        not included yet.
      
        This series also includes addition of support for the SMB3 witness
        protocol which can provide important notifications from the server to
        client on server address or export or network changes. This can be
        useful for example in order to be notified before the failure - when a
        server's IP address changes (in the future it will allow us to support
        server notifications of when a share is moved).
      
        It also includes three patches for stable e.g. some that better handle
        some confusing error messages during session establishment"
      
      * tag '5.11-rc-smb3' of git://git.samba.org/sfrench/cifs-2.6: (55 commits)
        cifs: update internal module version number
        cifs: Fix support for remount when not changing rsize/wsize
        cifs: handle "guest" mount parameter
        cifs: correct four aliased mount parms to allow use of previous names
        cifs: Tracepoints and logs for tracing credit changes.
        cifs: fix use after free in cifs_smb3_do_mount()
        cifs: fix rsize/wsize to be negotiated values
        cifs: Fix some error pointers handling detected by static checker
        smb3: remind users that witness protocol is experimental
        cifs: update super_operations to show_devname
        cifs: fix uninitialized variable in smb3_fs_context_parse_param
        cifs: update mnt_cifs_flags during reconfigure
        cifs: move update of flags into a separate function
        cifs: remove ctx argument from cifs_setup_cifs_sb
        cifs: do not allow changing posix_paths during remount
        cifs: uncomplicate printing the iocharset parameter
        cifs: don't create a temp nls in cifs_setup_ipc
        cifs: simplify handling of cifs_sb/ctx->local_nls
        cifs: we do not allow changing username/password/unc/... during remount
        cifs: add initial reconfigure support
        ...
      e13300bd
  2. 17 Dec, 2020 22 commits
    • Linus Torvalds's avatar
      Merge tag 'net-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · d64c6f96
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Current release - always broken:
      
         - net/smc: fix access to parent of an ib device
      
         - devlink: use _BITUL() macro instead of BIT() in the UAPI header
      
         - handful of mptcp fixes
      
        Previous release - regressions:
      
         - intel: AF_XDP: clear the status bits for the next_to_use descriptor
      
         - dpaa2-eth: fix the size of the mapped SGT buffer
      
        Previous release - always broken:
      
         - mptcp: fix security context on server socket
      
         - ethtool: fix string set id check
      
         - ethtool: fix error paths in ethnl_set_channels()
      
         - lan743x: fix rx_napi_poll/interrupt ping-pong
      
         - qca: ar9331: fix sleeping function called from invalid context bug"
      
      * tag 'net-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (32 commits)
        net/sched: sch_taprio: reset child qdiscs before freeing them
        nfp: move indirect block cleanup to flower app stop callback
        octeontx2-af: Fix undetected unmap PF error check
        net: nixge: fix spelling mistake in Kconfig: "Instuments" -> "Instruments"
        qlcnic: Fix error code in probe
        mptcp: fix pending data accounting
        mptcp: push pending frames when subflow has free space
        mptcp: properly annotate nested lock
        mptcp: fix security context on server socket
        net/mlx5: Fix compilation warning for 32-bit platform
        mptcp: clear use_ack and use_map when dropping other suboptions
        devlink: use _BITUL() macro instead of BIT() in the UAPI header
        net: korina: fix return value
        net/smc: fix access to parent of an ib device
        ethtool: fix error paths in ethnl_set_channels()
        nfc: s3fwrn5: Remove unused NCI prop commands
        nfc: s3fwrn5: Remove the delay for NFC sleep
        phy: fix kdoc warning
        tipc: do sanity check payload of a netlink message
        use __netdev_notify_peers in hyperv
        ...
      d64c6f96
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://github.com/openrisc/linux · 0c6c8878
      Linus Torvalds authored
      Pull OpenRISC updates from Stafford Horne:
      
       - New drivers and OpenRISC support for the LiteX platform
      
       - A bug fix to support userspace gdb debugging
      
       - Fixes one compile issue with blk-iocost
      
      * tag 'for-linus' of git://github.com/openrisc/linux:
        openrisc: add local64.h to fix blk-iocost build
        openrisc: fix trap for debugger breakpoint signalling
        openrisc: add support for LiteX
        drivers/tty/serial: add LiteUART driver
        dt-bindings: serial: document LiteUART bindings
        drivers/soc/litex: add LiteX SoC Controller driver
        dt-bindings: soc: document LiteX SoC Controller bindings
        dt-bindings: vendor: add vendor prefix for LiteX
      0c6c8878
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 8a5be36b
      Linus Torvalds authored
      Pull powerpc updates from Michael Ellerman:
      
       - Switch to the generic C VDSO, as well as some cleanups of our VDSO
         setup/handling code.
      
       - Support for KUAP (Kernel User Access Prevention) on systems using the
         hashed page table MMU, using memory protection keys.
      
       - Better handling of PowerVM SMT8 systems where all threads of a core
         do not share an L2, allowing the scheduler to make better scheduling
         decisions.
      
       - Further improvements to our machine check handling.
      
       - Show registers when unwinding interrupt frames during stack traces.
      
       - Improvements to our pseries (PowerVM) partition migration code.
      
       - Several series from Christophe refactoring and cleaning up various
         parts of the 32-bit code.
      
       - Other smaller features, fixes & cleanups.
      
      Thanks to: Alan Modra, Alexey Kardashevskiy, Andrew Donnellan, Aneesh
      Kumar K.V, Ard Biesheuvel, Athira Rajeev, Balamuruhan S, Bill Wendling,
      Cédric Le Goater, Christophe Leroy, Christophe Lombard, Colin Ian King,
      Daniel Axtens, David Hildenbrand, Frederic Barrat, Ganesh Goudar,
      Gautham R. Shenoy, Geert Uytterhoeven, Giuseppe Sacco, Greg Kurz,
      Harish, Jan Kratochvil, Jordan Niethe, Kaixu Xia, Laurent Dufour,
      Leonardo Bras, Madhavan Srinivasan, Mahesh Salgaonkar, Mathieu
      Desnoyers, Nathan Lynch, Nicholas Piggin, Oleg Nesterov, Oliver
      O'Halloran, Oscar Salvador, Po-Hsu Lin, Qian Cai, Qinglang Miao, Randy
      Dunlap, Ravi Bangoria, Sachin Sant, Sandipan Das, Sebastian Andrzej
      Siewior , Segher Boessenkool, Srikar Dronamraju, Tyrel Datwyler, Uwe
      Kleine-König, Vincent Stehlé, Youling Tang, and Zhang Xiaoxu.
      
      * tag 'powerpc-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux: (304 commits)
        powerpc/32s: Fix cleanup_cpu_mmu_context() compile bug
        powerpc: Add config fragment for disabling -Werror
        powerpc/configs: Add ppc64le_allnoconfig target
        powerpc/powernv: Rate limit opal-elog read failure message
        powerpc/pseries/memhotplug: Quieten some DLPAR operations
        powerpc/ps3: use dma_mapping_error()
        powerpc: force inlining of csum_partial() to avoid multiple csum_partial() with GCC10
        powerpc/perf: Fix Threshold Event Counter Multiplier width for P10
        powerpc/mm: Fix hugetlb_free_pmd_range() and hugetlb_free_pud_range()
        KVM: PPC: Book3S HV: Fix mask size for emulated msgsndp
        KVM: PPC: fix comparison to bool warning
        KVM: PPC: Book3S: Assign boolean values to a bool variable
        powerpc: Inline setup_kup()
        powerpc/64s: Mark the kuap/kuep functions non __init
        KVM: PPC: Book3S HV: XIVE: Add a comment regarding VP numbering
        powerpc/xive: Improve error reporting of OPAL calls
        powerpc/xive: Simplify xive_do_source_eoi()
        powerpc/xive: Remove P9 DD1 flag XIVE_IRQ_FLAG_EOI_FW
        powerpc/xive: Remove P9 DD1 flag XIVE_IRQ_FLAG_MASK_FW
        powerpc/xive: Remove P9 DD1 flag XIVE_IRQ_FLAG_SHIFT_BUG
        ...
      8a5be36b
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 09c0796a
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
       "The major update to this release is that there's a new arch config
        option called CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS.
      
        Currently, only x86_64 enables it. All the ftrace callbacks now take a
        struct ftrace_regs instead of a struct pt_regs. If the architecture
        has HAVE_DYNAMIC_FTRACE_WITH_ARGS enabled, then the ftrace_regs will
        have enough information to read the arguments of the function being
        traced, as well as access to the stack pointer.
      
        This way, if a user (like live kernel patching) only cares about the
        arguments, then it can avoid using the heavier weight "regs" callback,
        that puts in enough information in the struct ftrace_regs to simulate
        a breakpoint exception (needed for kprobes).
      
        A new config option that audits the timestamps of the ftrace ring
        buffer at most every event recorded.
      
        Ftrace recursion protection has been cleaned up to move the protection
        to the callback itself (this saves on an extra function call for those
        callbacks).
      
        Perf now handles its own RCU protection and does not depend on ftrace
        to do it for it (saving on that extra function call).
      
        New debug option to add "recursed_functions" file to tracefs that
        lists all the places that triggered the recursion protection of the
        function tracer. This will show where things need to be fixed as
        recursion slows down the function tracer.
      
        The eval enum mapping updates done at boot up are now offloaded to a
        work queue, as it caused a noticeable pause on slow embedded boards.
      
        Various clean ups and last minute fixes"
      
      * tag 'trace-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (33 commits)
        tracing: Offload eval map updates to a work queue
        Revert: "ring-buffer: Remove HAVE_64BIT_ALIGNED_ACCESS"
        ring-buffer: Add rb_check_bpage in __rb_allocate_pages
        ring-buffer: Fix two typos in comments
        tracing: Drop unneeded assignment in ring_buffer_resize()
        tracing: Disable ftrace selftests when any tracer is running
        seq_buf: Avoid type mismatch for seq_buf_init
        ring-buffer: Fix a typo in function description
        ring-buffer: Remove obsolete rb_event_is_commit()
        ring-buffer: Add test to validate the time stamp deltas
        ftrace/documentation: Fix RST C code blocks
        tracing: Clean up after filter logic rewriting
        tracing: Remove the useless value assignment in test_create_synth_event()
        livepatch: Use the default ftrace_ops instead of REGS when ARGS is available
        ftrace/x86: Allow for arguments to be passed in to ftrace_regs by default
        ftrace: Have the callbacks receive a struct ftrace_regs instead of pt_regs
        MAINTAINERS: assign ./fs/tracefs to TRACING
        tracing: Fix some typos in comments
        ftrace: Remove unused varible 'ret'
        ring-buffer: Add recording of ring buffer recursion into recursed_functions
        ...
      09c0796a
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · 312dcaf9
      Linus Torvalds authored
      Pull modules updates from Jessica Yu:
       "Summary of modules changes for the 5.11 merge window:
      
         - Fix a race condition between systemd/udev and the module loader.
      
           The module loader was sending a uevent before the module was fully
           initialized (i.e., before its init function has been called). This
           means udev can start processing the module uevent before the module
           has finished initializing, and some udev rules expect that the
           module has initialized already upon receiving the uevent.
      
           This resulted in some systemd mount units failing if udev processes
           the event faster than the module can finish init. This is fixed by
           delaying the uevent until after the module has called its init
           routine.
      
         - Make the linker array sections for kernel params and module version
           attributes more robust by switching to use the alignment of the
           type in question.
      
           Namely, linker section arrays will be constructed using the
           alignment required by the struct (using __alignof__()) as opposed
           to a specific value such as sizeof(void *) or sizeof(long). This is
           less likely to cause breakages should the size of the type ever
           change (Johan Hovold)
      
         - Fix module state inconsistency by setting it back to GOING when a
           module fails to load and is on its way out (Miroslav Benes)
      
         - Some comment and code cleanups (Sergey Shtylyov)"
      
      * tag 'modules-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        module: delay kobject uevent until after module init call
        module: drop semicolon from version macro
        init: use type alignment for kernel parameters
        params: clean up module-param macros
        params: use type alignment for kernel parameters
        params: drop redundant "unused" attributes
        module: simplify version-attribute handling
        module: drop version-attribute alignment
        module: fix comment style
        module: add more 'kernel-doc' comments
        module: fix up 'kernel-doc' comments
        module: only handle errors with the *switch* statement in module_sig_check()
        module: avoid *goto*s in module_sig_check()
        module: merge repetitive strings in module_sig_check()
        module: set MODULE_STATE_GOING state when a module fails to load
      312dcaf9
    • Linus Torvalds's avatar
      Merge tag 'dmaengine-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine · 6daa9043
      Linus Torvalds authored
      Pull dmaengine updates from Vinod Koul:
       "The last dmaengine updates for this year :)
      
        This contains couple of new drivers, new device support and updates to
        bunch of drivers.
      
        New drivers/devices:
         - Qualcomm ADM driver
         - Qualcomm GPI driver
         - Allwinner A100 DMA support
         - Microchip Sama7g5 support
         - Mediatek MT8516 apdma
      
        Updates:
         - more updates to idxd driver and support for IAX config
         - runtime PM support for dw driver
         - TI drivers"
      
      * tag 'dmaengine-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine: (75 commits)
        soc: ti: k3-ringacc: Use correct error casting in k3_ringacc_dmarings_init
        dmaengine: ti: k3-udma-glue: Add support for K3 PKTDMA
        dmaengine: ti: k3-udma: Initial support for K3 PKTDMA
        dmaengine: ti: k3-udma: Add support for BCDMA channel TPL handling
        dmaengine: ti: k3-udma: Initial support for K3 BCDMA
        soc: ti: k3-ringacc: add AM64 DMA rings support.
        dmaengine: ti: Add support for k3 event routers
        dmaengine: ti: k3-psil: Add initial map for AM64
        dmaengine: ti: k3-psil: Extend psil_endpoint_config for K3 PKTDMA
        dt-bindings: dma: ti: Add document for K3 PKTDMA
        dt-bindings: dma: ti: Add document for K3 BCDMA
        dmaengine: dmatest: Use dmaengine_get_dma_device
        dmaengine: doc: client: Update for dmaengine_get_dma_device() usage
        dmaengine: Add support for per channel coherency handling
        dmaengine: of-dma: Add support for optional router configuration callback
        dmaengine: ti: k3-udma-glue: Configure the dma_dev for rings
        dmaengine: ti: k3-udma-glue: Get the ringacc from udma_dev
        dmaengine: ti: k3-udma-glue: Add function to get device pointer for DMA API
        dmaengine: ti: k3-udma: Add support for second resource range from sysfw
        dmaengine: ti: k3-udma: Wait for peer teardown completion if supported
        ...
      6daa9043
    • Linus Torvalds's avatar
      Merge tag 'mailbox-v5.11' of git://git.linaro.org/landing-teams/working/fujitsu/integration · 83005cd6
      Linus Torvalds authored
      Pull mailbox updates from Jassi Brar:
      
       - arm: added mhu-v2 controller driver
      
       - arm_mhu_db: fix kfree by using devm_ variant
      
       - stm32-ipcc: misc cleanup
      
      * tag 'mailbox-v5.11' of git://git.linaro.org/landing-teams/working/fujitsu/integration:
        mailbox: arm_mhuv2: Add driver
        dt-bindings: mailbox : arm,mhuv2: Add bindings
        mailbox: stm32-ipcc: cast void pointers to unsigned long
        mailbox: stm32-ipcc: remove duplicate error message
        mailbox: stm32-ipcc: add COMPILE_TEST dependency
        mailbox: arm_mhu_db: Fix mhu_db_shutdown by replacing kfree with devm_kfree
      83005cd6
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 74f602dc
      Linus Torvalds authored
      Pull NFS client updates from Trond Myklebust:
       "Highlights include:
      
        Features:
      
         - NFSv3: Add emulation of lookupp() to improve open_by_filehandle()
           support
      
         - A series of patches to improve readdir performance, particularly
           with large directories
      
         - Basic support for using NFS/RDMA with the pNFS files and flexfiles
           drivers
      
         - Micro-optimisations for RDMA
      
         - RDMA tracing improvements
      
        Bugfixes:
      
         - Fix a long standing bug with xs_read_xdr_buf() when receiving
           partial pages (Dan Aloni)
      
         - Various fixes for getxattr and listxattr, when used over non-TCP
           transports
      
         - Fixes for containerised NFS from Sargun Dhillon
      
         - switch nfsiod to be an UNBOUND workqueue (Neil Brown)
      
         - READDIR should not ask for security label information if there is
           no LSM policy (Olga Kornievskaia)
      
         - Avoid using interval-based rebinding with TCP in lockd (Calum
           Mackay)
      
         - A series of RPC and NFS layer fixes to support the NFSv4.2
           READ_PLUS code
      
         - A couple of fixes for pnfs/flexfiles read failover
      
        Cleanups:
      
         - Various cleanups for the SUNRPC xdr code in conjunction with the
           READ_PLUS fixes"
      
      * tag 'nfs-for-5.11-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (90 commits)
        NFS/pNFS: Fix a typo in ff_layout_resend_pnfs_read()
        pNFS/flexfiles: Avoid spurious layout returns in ff_layout_choose_ds_for_read
        NFSv4/pnfs: Add tracing for the deviceid cache
        fs/lockd: convert comma to semicolon
        NFSv4.2: fix error return on memory allocation failure
        NFSv4.2/pnfs: Don't use READ_PLUS with pNFS yet
        NFSv4.2: Deal with potential READ_PLUS data extent buffer overflow
        NFSv4.2: Don't error when exiting early on a READ_PLUS buffer overflow
        NFSv4.2: Handle hole lengths that exceed the READ_PLUS read buffer
        NFSv4.2: decode_read_plus_hole() needs to check the extent offset
        NFSv4.2: decode_read_plus_data() must skip padding after data segment
        NFSv4.2: Ensure we always reset the result->count in decode_read_plus()
        SUNRPC: When expanding the buffer, we may need grow the sparse pages
        SUNRPC: Cleanup - constify a number of xdr_buf helpers
        SUNRPC: Clean up open coded setting of the xdr_stream 'nwords' field
        SUNRPC: _copy_to/from_pages() now check for zero length
        SUNRPC: Cleanup xdr_shrink_bufhead()
        SUNRPC: Fix xdr_expand_hole()
        SUNRPC: Fixes for xdr_align_data()
        SUNRPC: _shift_data_left/right_pages should check the shift length
        ...
      74f602dc
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-5.11-rc1' of git://github.com/ceph/ceph-client · be695ee2
      Linus Torvalds authored
      Pull ceph updates from Ilya Dryomov:
       "The big ticket item here is support for msgr2 on-wire protocol, which
        adds the option of full in-transit encryption using AES-GCM algorithm
        (myself).
      
        On top of that we have a series to avoid intermittent errors during
        recovery with recover_session=clean and some MDS request encoding work
        from Jeff, a cap handling fix and assorted observability improvements
        from Luis and Xiubo and a good number of cleanups.
      
        Luis also ran into a corner case with quotas which sadly means that we
        are back to denying cross-quota-realm renames"
      
      * tag 'ceph-for-5.11-rc1' of git://github.com/ceph/ceph-client: (59 commits)
        libceph: drop ceph_auth_{create,update}_authorizer()
        libceph, ceph: make use of __ceph_auth_get_authorizer() in msgr1
        libceph, ceph: implement msgr2.1 protocol (crc and secure modes)
        libceph: introduce connection modes and ms_mode option
        libceph, rbd: ignore addr->type while comparing in some cases
        libceph, ceph: get and handle cluster maps with addrvecs
        libceph: factor out finish_auth()
        libceph: drop ac->ops->name field
        libceph: amend cephx init_protocol() and build_request()
        libceph, ceph: incorporate nautilus cephx changes
        libceph: safer en/decoding of cephx requests and replies
        libceph: more insight into ticket expiry and invalidation
        libceph: move msgr1 protocol specific fields to its own struct
        libceph: move msgr1 protocol implementation to its own file
        libceph: separate msgr1 protocol implementation
        libceph: export remaining protocol independent infrastructure
        libceph: export zero_page
        libceph: rename and export con->flags bits
        libceph: rename and export con->state states
        libceph: make con->state an int
        ...
      be695ee2
    • Linus Torvalds's avatar
      Merge tag 'ovl-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs · 92dbc9de
      Linus Torvalds authored
      Pull overlayfs updates from Miklos Szeredi:
      
       - Allow unprivileged mounting in a user namespace.
      
         For quite some time the security model of overlayfs has been that
         operations on underlying layers shall be performed with the
         privileges of the mounting task.
      
         This way an unprvileged user cannot gain privileges by the act of
         mounting an overlayfs instance. A full audit of all function calls
         made by the overlayfs code has been performed to see whether they
         conform to this model, and this branch contains some fixes in this
         regard.
      
       - Support running on copied filesystem images by optionally disabling
         UUID verification.
      
       - Bug fixes as well as documentation updates.
      
      * tag 'ovl-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs:
        ovl: unprivieged mounts
        ovl: do not get metacopy for userxattr
        ovl: do not fail because of O_NOATIME
        ovl: do not fail when setting origin xattr
        ovl: user xattr
        ovl: simplify file splice
        ovl: make ioctl() safe
        ovl: check privs before decoding file handle
        vfs: verify source area in vfs_dedupe_file_range_one()
        vfs: move cap_convert_nscap() call into vfs_setxattr()
        ovl: fix incorrect extent info in metacopy case
        ovl: expand warning in ovl_d_real()
        ovl: document lower modification caveats
        ovl: warn about orphan metacopy
        ovl: doc clarification
        ovl: introduce new "uuid=off" option for inodes index feature
        ovl: propagate ovl_fs to ovl_decode_real_fh and ovl_encode_real_fh
      92dbc9de
    • Linus Torvalds's avatar
      Merge tag 'fuse-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · 65de0b89
      Linus Torvalds authored
      Pull fuse updates from Miklos Szeredi:
      
       - Improve performance of virtio-fs in mixed read/write workloads
      
       - Try to revalidate cache before returning EEXIST on exclusive create
      
       - Add a couple of miscellaneous bug fixes as well as some code cleanups
      
      * tag 'fuse-update-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        fuse: fix bad inode
        fuse: support SB_NOSEC flag to improve write performance
        fuse: add a flag FUSE_OPEN_KILL_SUIDGID for open() request
        fuse: don't send ATTR_MODE to kill suid/sgid for handle_killpriv_v2
        fuse: setattr should set FATTR_KILL_SUIDGID
        fuse: set FUSE_WRITE_KILL_SUIDGID in cached write path
        fuse: rename FUSE_WRITE_KILL_PRIV to FUSE_WRITE_KILL_SUIDGID
        fuse: introduce the notion of FUSE_HANDLE_KILLPRIV_V2
        fuse: always revalidate if exclusive create
        virtiofs: clean up error handling in virtio_fs_get_tree()
        fuse: add fuse_sb_destroy() helper
        fuse: simplify get_fuse_conn*()
        fuse: get rid of fuse_mount refcount
        virtiofs: simplify sb setup
        virtiofs fix leak in setup
        fuse: launder page should wait for page writeback
      65de0b89
    • Linus Torvalds's avatar
      Merge tag 'f2fs-for-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs · ff49c86f
      Linus Torvalds authored
      Pull f2fs updates from Jaegeuk Kim:
       "In this round, we've made more work into per-file compression support.
      
        For example, F2FS_IOC_GET | SET_COMPRESS_OPTION provides a way to
        change the algorithm or cluster size per file. F2FS_IOC_COMPRESS |
        DECOMPRESS_FILE provides a way to compress and decompress the existing
        normal files manually.
      
        There is also a new mount option, compress_mode=fs|user, which can
        control who compresses the data.
      
        Chao also added a checksum feature with a mount option so that
        we are able to detect any corrupted cluster.
      
        In addition, Daniel contributed casefolding with encryption patch,
        which will be used for Android devices.
      
        Summary:
      
        Enhancements:
         - add ioctls and mount option to manage per-file compression feature
         - support casefolding with encryption
         - support checksum for compressed cluster
         - avoid IO starvation by replacing mutex with rwsem
         - add sysfs, max_io_bytes, to control max bio size
      
        Bug fixes:
         - fix use-after-free issue when compression and fsverity are enabled
         - fix consistency corruption during fault injection test
         - fix data offset for lseek
         - get rid of buffer_head which has 32bits limit in fiemap
         - fix some bugs in multi-partitions support
         - fix nat entry count calculation in shrinker
         - fix some stat information
      
        And, we've refactored some logics and fix minor bugs as well"
      
      * tag 'f2fs-for-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs: (36 commits)
        f2fs: compress: fix compression chksum
        f2fs: fix shift-out-of-bounds in sanity_check_raw_super()
        f2fs: fix race of pending_pages in decompression
        f2fs: fix to account inline xattr correctly during recovery
        f2fs: inline: fix wrong inline inode stat
        f2fs: inline: correct comment in f2fs_recover_inline_data
        f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()
        f2fs: convert to F2FS_*_INO macro
        f2fs: introduce max_io_bytes, a sysfs entry, to limit bio size
        f2fs: don't allow any writes on readonly mount
        f2fs: avoid race condition for shrinker count
        f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE
        f2fs: add compress_mode mount option
        f2fs: Remove unnecessary unlikely()
        f2fs: init dirty_secmap incorrectly
        f2fs: remove buffer_head which has 32bits limit
        f2fs: fix wrong block count instead of bytes
        f2fs: use new conversion functions between blks and bytes
        f2fs: rename logical_to_blk and blk_to_logical
        f2fs: fix kbytes written stat for multi-device case
        ...
      ff49c86f
    • Linus Torvalds's avatar
      Merge tag 'for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · b97d4c42
      Linus Torvalds authored
      Pull ext2, reiserfs, quota and writeback updates from Jan Kara:
      
       - a couple of quota fixes (mostly for problems found by syzbot)
      
       - several ext2 cleanups
      
       - one fix for reiserfs crash on corrupted image
      
       - a fix for spurious warning in writeback code
      
      * tag 'for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        writeback: don't warn on an unregistered BDI in __mark_inode_dirty
        fs: quota: fix array-index-out-of-bounds bug by passing correct argument to vfs_cleanup_quota_inode()
        reiserfs: add check for an invalid ih_entry_count
        ext2: Fix fall-through warnings for Clang
        fs/ext2: Use ext2_put_page
        docs: filesystems: Reduce ext2.rst to one top-level heading
        quota: Sanity-check quota file headers on load
        quota: Don't overflow quota file offsets
        ext2: Remove unnecessary blank
        fs/quota: update quota state flags scheme with project quota flags
      b97d4c42
    • Davide Caratti's avatar
      net/sched: sch_taprio: reset child qdiscs before freeing them · 44d4775c
      Davide Caratti authored
      syzkaller shows that packets can still be dequeued while taprio_destroy()
      is running. Let sch_taprio use the reset() function to cancel the advance
      timer and drop all skbs from the child qdiscs.
      
      Fixes: 5a781ccb ("tc: Add support for configuring the taprio scheduler")
      Link: https://syzkaller.appspot.com/bug?id=f362872379bf8f0017fb667c1ab158f2d1e764ae
      Reported-by: syzbot+8971da381fb5a31f542d@syzkaller.appspotmail.com
      Signed-off-by: default avatarDavide Caratti <dcaratti@redhat.com>
      Acked-by: default avatarVinicius Costa Gomes <vinicius.gomes@intel.com>
      Link: https://lore.kernel.org/r/63b6d79b0e830ebb0283e020db4df3cdfdfb2b94.1608142843.git.dcaratti@redhat.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      44d4775c
    • Simon Horman's avatar
      nfp: move indirect block cleanup to flower app stop callback · 5b33afee
      Simon Horman authored
      The indirect block cleanup may cause control messages to be sent
      if offloaded flows are present. However, by the time the flower app
      cleanup callback is called txbufs are no longer available and attempts
      to send control messages result in a NULL-pointer dereference in
      nfp_ctrl_tx_one().
      
      This problem may be resolved by moving the indirect block cleanup
      to the stop callback, where txbufs are still available.
      
      As suggested by Jakub Kicinski and Louis Peens.
      
      Fixes: a1db2178 ("net: flow_offload: fix flow_indr_dev_unregister path")
      Signed-off-by: default avatarSimon Horman <simon.horman@netronome.com>
      Signed-off-by: default avatarLouis Peens <louis.peens@netronome.com>
      Link: https://lore.kernel.org/r/20201216145701.30005-1-simon.horman@netronome.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5b33afee
    • Colin Ian King's avatar
      octeontx2-af: Fix undetected unmap PF error check · d8a4ea35
      Colin Ian King authored
      Currently the check for an unmap PF error is always going to be false
      because intr_val is a 32 bit int and is being bit-mask checked against
      1ULL << 32.  Fix this by making intr_val a u64 to match the type at it
      is copied from, namely npa_event_context->npa_af_rvu_ge.
      
      Addresses-Coverity: ("Operands don't affect result")
      Fixes: f1168d1e ("octeontx2-af: Add devlink health reporters for NPA")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Acked-by: default avatarGeorge Cherian <george.cherian@marvell.com>
      Link: https://lore.kernel.org/r/20201216123604.15369-1-colin.king@canonical.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      d8a4ea35
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 14bd41e4
      Linus Torvalds authored
      Pull fsnotify updates from Jan Kara:
       "A few fsnotify fixes from Amir fixing fallout from big fsnotify
        overhaul a few months back and an improvement of defaults limiting
        maximum number of inotify watches from Waiman"
      
      * tag 'fsnotify_for_v5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fsnotify: fix events reported to watching parent and child
        inotify: convert to handle_inode_event() interface
        fsnotify: generalize handle_inode_event()
        inotify: Increase default inotify.max_user_watches limit to 1048576
      14bd41e4
    • Colin Ian King's avatar
    • Dan Carpenter's avatar
      qlcnic: Fix error code in probe · 0d528486
      Dan Carpenter authored
      Return -EINVAL if we can't find the correct device.  Currently it
      returns success.
      
      Fixes: 13159183 ("qlcnic: 83xx base driver")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Link: https://lore.kernel.org/r/X9nHbMqEyI/xPfGd@mwandaSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0d528486
    • Jakub Kicinski's avatar
      Merge branch 'mptcp-a-bunch-of-assorted-fixes' · 86eb09b6
      Jakub Kicinski authored
      Paolo Abeni says:
      
      ====================
      mptcp: a bunch of assorted fixes
      
      This series pulls a few fixes for the MPTCP datapath.
      Most issues addressed here has been recently introduced
      with the recent reworks, with the notable exception of
      the first patch, which addresses an issue present since
      the early days
      ====================
      
      Link: https://lore.kernel.org/r/cover.1608114076.git.pabeni@redhat.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      86eb09b6
    • Paolo Abeni's avatar
      mptcp: fix pending data accounting · 13e16037
      Paolo Abeni authored
      When sendmsg() needs to wait for memory, the pending data
      is not updated. That causes a drift in forward memory allocation,
      leading to stall and/or warnings at socket close time.
      
      This change addresses the above issue moving the pending data
      counter update inside the sendmsg() main loop.
      
      Fixes: 6e628cd3 ("mptcp: use mptcp release_cb for delayed tasks")
      Reviewed-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      13e16037
    • Paolo Abeni's avatar
      mptcp: push pending frames when subflow has free space · 219d0499
      Paolo Abeni authored
      When multiple subflows are active, we can receive a
      window update on subflow with no write space available.
      MPTCP will try to push frames on such subflow and will
      fail. Pending frames will be pushed only after receiving
      a window update on a subflow with some wspace available.
      
      Overall the above could lead to suboptimal aggregate
      bandwidth usage.
      
      Instead, we should try to push pending frames as soon as
      the subflow reaches both conditions mentioned above.
      
      We can finally enable self-tests with asymmetric links,
      as the above makes them finally pass.
      
      Fixes: 6f8a612a ("mptcp: keep track of advertised windows right edge")
      Reviewed-by: default avatarMat Martineau <mathew.j.martineau@linux.intel.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      219d0499