Skip to content
  1. Dec 20, 2020
  2. Dec 19, 2020
    • Kent Overstreet's avatar
      mm/filemap: fix infinite loop in generic_file_buffered_read() · 3644e2d2
      Kent Overstreet authored
      
      
      If iter->count is 0 and iocb->ki_pos is page aligned, this causes
      nr_pages to be 0.
      
      Then in generic_file_buffered_read_get_pages() find_get_pages_contig()
      returns 0 - because we asked for 0 pages, so we call
      generic_file_buffered_read_no_cached_page() which attempts to add a page
      to the page cache, which fails with -EEXIST, and then we loop. Oops...
      
      Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
      Reported-by: default avatarJens Axboe <axboe@kernel.dk>
      Reviewed-by: default avatarJens Axboe <axboe@kernel.dk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3644e2d2
    • 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
  3. Dec 18, 2020