1. 29 Jul, 2023 4 commits
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2023-07-28-15-52' of... · 122e7943
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2023-07-28-15-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull hotfixes from Andrew Morton:
       "11 hotfixes. Five are cc:stable and the remainder address post-6.4
        issues or aren't considered serious enough to justify backporting"
      
      * tag 'mm-hotfixes-stable-2023-07-28-15-52' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mm/memory-failure: fix hardware poison check in unpoison_memory()
        proc/vmcore: fix signedness bug in read_from_oldmem()
        mailmap: update remaining active codeaurora.org email addresses
        mm: lock VMA in dup_anon_vma() before setting ->anon_vma
        mm: fix memory ordering for mm_lock_seq and vm_lock_seq
        scripts/spelling.txt: remove 'thead' as a typo
        mm/pagewalk: fix EFI_PGT_DUMP of espfix area
        shmem: minor fixes to splice-read implementation
        tmpfs: fix Documentation of noswap and huge mount options
        Revert "um: Use swap() to make code cleaner"
        mm/damon/core-test: initialise context before test in damon_test_set_attrs()
      122e7943
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 20d3f241
      Linus Torvalds authored
      Pull thermal control fixes from Rafael Wysocki:
       "Constify thermal_zone_device_register() parameters, which was omitted
        by mistake, and fix a double free on thermal zone unregistration in
        the generic DT thermal driver (Ahmad Fatoum)"
      
      * tag 'thermal-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: of: fix double-free on unregistration
        thermal: core: constify params in thermal_zone_device_register
      20d3f241
    • Linus Torvalds's avatar
      Merge tag 'pm-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 3632f421
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "Fix the arming of wakeup IRQs in the generic wakeup IRQ code
        (wakeirq), drop unused functions from it and fix up a driver using it
        and trying to work around the IRQ arming issue in a questionable way
        (Johan Hovold)"
      
      * tag 'pm-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        serial: qcom-geni: drop bogus runtime pm state update
        PM: sleep: wakeirq: drop unused enable helpers
        PM: sleep: wakeirq: fix wake irq arming
      3632f421
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.5-rc4' of... · 2f4effd8
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - k10temp: Display negative temperatures for industrial processors
      
       - pmbus core: Fix deadlock, NULL pointer dereference, and chip enable
         detection
      
       - nct7802: Do not display PECI1 temperature if disabled
      
       - nct6775: Fix IN scaling factors and feature detection for
         NCT6798/6799
      
       - oxp-sensors: Fix race condition during device attribute creation
      
       - aquacomputer_d5next: Fix incorrect PWM value readout
      
      * tag 'hwmon-for-v6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (k10temp) Enable AMD3255 Proc to show negative temperature
        hwmon: (pmbus_core) Fix Deadlock in pmbus_regulator_get_status
        hwmon: (pmbus_core) Fix NULL pointer dereference
        hwmon: (pmbus_core) Fix pmbus_is_enabled()
        hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled
        hwmon: (nct6775) Fix IN scaling factors for 6798/6799
        hwmon: (oxp-sensors) Move tt_toggle attribute to dev_groups
        hwmon: (aquacomputer_d5next) Fix incorrect PWM value readout
        hwmon: (nct6775) Fix register for nct6799
      2f4effd8
  2. 28 Jul, 2023 23 commits
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · c06f9091
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "Several smaller driver fixes and a core RDMA CM regression fix:
      
         - Fix improperly accepting flags from userspace in mlx4
      
         - Add missing DMA barriers for irdma
      
         - Fix two kcsan warnings in irdma
      
         - Report the correct CQ op code to userspace in irdma
      
         - Report the correct MW bind error code for irdma
      
         - Load the destination address in RDMA CM to resolve a recent
           regression
      
         - Fix a QP regression in mthca
      
         - Remove a race processing completions in bnxt_re resulting in a
           crash
      
         - Fix driver unloading races with interrupts and tasklets in bnxt_re
      
         - Fix missing error unwind in rxe"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/irdma: Report correct WC error
        RDMA/irdma: Fix op_type reporting in CQEs
        RDMA/rxe: Fix an error handling path in rxe_bind_mw()
        RDMA/bnxt_re: Fix hang during driver unload
        RDMA/bnxt_re: Prevent handling any completions after qp destroy
        RDMA/mthca: Fix crash when polling CQ for shared QPs
        RDMA/core: Update CMA destination address on rdma_resolve_addr
        RDMA/irdma: Fix data race on CQP request done
        RDMA/irdma: Fix data race on CQP completion stats
        RDMA/irdma: Add missing read barriers
        RDMA/mlx4: Make check for invalid flags stricter
      c06f9091
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-v6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd · 2b17e90d
      Linus Torvalds authored
      Pull tpm fixes from Jarkko Sakkinen:
       "I picked up three small scale updates that I think would improve the
        quality of the release"
      
      * tag 'tpmdd-v6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        tpm_tis: Explicitly check for error code
        tpm: Switch i2c drivers back to use .probe()
        security: keys: perform capable check only on privileged operations
      2b17e90d
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · f837f0a3
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - A couple of SME updates for recent fixes (one of which went to
         stable): reverting the flushing of the SME hardware state along with
         the thread flushing and making sure we have the correct vector length
         before reallocating.
      
       - An ACPI/IORT fix to avoid skipping ID mappings whose "number of IDs"
         is 0 (the spec reports the number of IDs in the mapping range minus
         1).
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info()
        arm64/sme: Set new vector length before reallocating
        arm64/fpsimd: Don't flush SME register hardware state along with thread
      f837f0a3
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.5a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 81eef890
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - A fix for a performance problem in QubesOS, adding a way to drain the
         queue of grants experiencing delayed unmaps faster
      
       - A patch enabling the use of static event channels from user mode,
         which was omitted when introducing supporting static event channels
      
       - A fix for a problem where Xen related code didn't check properly for
         running in a Xen environment, resulting in a WARN splat
      
      * tag 'for-linus-6.5a-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: speed up grant-table reclaim
        xen/evtchn: Introduce new IOCTL to bind static evtchn
        xenbus: check xen_domain in xenbus_probe_initcall
      81eef890
    • Alexander Steffen's avatar
      tpm_tis: Explicitly check for error code · 513253f8
      Alexander Steffen authored
      recv_data either returns the number of received bytes, or a negative value
      representing an error code. Adding the return value directly to the total
      number of received bytes therefore looks a little weird, since it might add
      a negative error code to a sum of bytes.
      
      The following check for size < expected usually makes the function return
      ETIME in that case, so it does not cause too many problems in practice. But
      to make the code look cleaner and because the caller might still be
      interested in the original error code, explicitly check for the presence of
      an error code and pass that through.
      
      Cc: stable@vger.kernel.org
      Fixes: cb535425 ("[PATCH] tpm: spacing cleanups 2")
      Signed-off-by: default avatarAlexander Steffen <Alexander.Steffen@infineon.com>
      Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      513253f8
    • Uwe Kleine-König's avatar
      tpm: Switch i2c drivers back to use .probe() · be6f48a7
      Uwe Kleine-König authored
      After commit b8a1a4cd ("i2c: Provide a temporary .probe_new()
      call-back type"), all drivers being converted to .probe_new() and then
      03c835f4 ("i2c: Switch .probe() to not take an id parameter")
      convert back to (the new) .probe() to be able to eventually drop
      .probe_new() from struct i2c_driver.
      Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      be6f48a7
    • Christian Göttsche's avatar
      security: keys: perform capable check only on privileged operations · 2d7f105e
      Christian Göttsche authored
      If the current task fails the check for the queried capability via
      `capable(CAP_SYS_ADMIN)` LSMs like SELinux generate a denial message.
      Issuing such denial messages unnecessarily can lead to a policy author
      granting more privileges to a subject than needed to silence them.
      
      Reorder CAP_SYS_ADMIN checks after the check whether the operation is
      actually privileged.
      Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
      Reviewed-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      Signed-off-by: default avatarJarkko Sakkinen <jarkko@kernel.org>
      2d7f105e
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.5-rc4' of https://github.com/ceph/ceph-client · e62e26d3
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "A patch to reduce the potential for erroneous RBD exclusive lock
        blocklisting (fencing) with a couple of prerequisites and a fixup to
        prevent metrics from being sent to the MDS even just once after that
        has been disabled by the user. All marked for stable"
      
      * tag 'ceph-for-6.5-rc4' of https://github.com/ceph/ceph-client:
        rbd: retrieve and check lock owner twice before blocklisting
        rbd: harden get_lock_owner_info() a bit
        rbd: make get_lock_owner_info() return a single locker or NULL
        ceph: never send metrics if disable_send_metrics is set
      e62e26d3
    • Linus Torvalds's avatar
      Merge tag '9p-fixes-6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · 28d79b74
      Linus Torvalds authored
      Pull 9p fixes from Eric Van Hensbergen:
       "Misc set of fixes for 9p.
      
        Most of these clean up warnings we've gotten out of compilation tools,
        but several of them were from inspection while hunting down a couple
        of regressions.
      
        The most important one is 75b39682 ("fs/9p: remove unnecessary and
        overrestrictive check") which caused a regression for some folks by
        restricting mmap in any case where writeback caches weren't enabled.
      
        Most of the other bugs caught via inspection were type mismatches"
      
      * tag '9p-fixes-6.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
        fs/9p: Remove unused extern declaration
        9p: remove dead stores (variable set again without being read)
        9p: virtio: skip incrementing unused variable
        9p: virtio: make sure 'offs' is initialized in zc_request
        9p: virtio: fix unlikely null pointer deref in handle_rerror
        9p: fix ignored return value in v9fs_dir_release
        fs/9p: remove unnecessary invalidate_inode_pages2
        fs/9p: fix type mismatch in file cache mode helper
        fs/9p: fix typo in comparison logic for cache mode
        fs/9p: remove unnecessary and overrestrictive check
        fs/9p: Fix a datatype used with V9FS_DIRECT_IO
      28d79b74
    • Linus Torvalds's avatar
      Merge tag 'block-6.5-2023-07-28' of git://git.kernel.dk/linux · 818680d1
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A few fixes that should go into the current kernel release, mainly:
      
         - Set of fixes for dasd (Stefan)
      
         - Handle interruptible waits returning because of a signal for ublk
           (Ming)"
      
      * tag 'block-6.5-2023-07-28' of git://git.kernel.dk/linux:
        ublk: return -EINTR if breaking from waiting for existed users in DEL_DEV
        ublk: fail to recover device if queue setup is interrupted
        ublk: fail to start device if queue setup is interrupted
        block: Fix a source code comment in include/uapi/linux/blkzoned.h
        s390/dasd: print copy pair message only for the correct error
        s390/dasd: fix hanging device after request requeue
        s390/dasd: use correct number of retries for ERP requests
        s390/dasd: fix hanging device after quiesce/resume
      818680d1
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.5-2023-07-28' of git://git.kernel.dk/linux · 9c655058
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single tweak to a patch from last week, to avoid having idle
        cqring waits be attributed as iowait"
      
      * tag 'io_uring-6.5-2023-07-28' of git://git.kernel.dk/linux:
        io_uring: gate iowait schedule on having pending requests
      9c655058
    • Linus Torvalds's avatar
      Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · 0299a13a
      Linus Torvalds authored
      Pull iommufd fixes from Jason Gunthorpe:
       "Two user triggerable problems:
      
         - Syzkaller found a way to trigger a WARN_ON and leak memory by
           racing destroy with other actions
      
         - There is still a bug in the "batch carry" stuff that gets invoked
           for complex cases with accesses and unmapping of huge pages. The
           test suite found this (triggers rarely)"
      
      * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
        iommufd: Set end correctly when doing batch carry
        iommufd: IOMMUFD_DESTROY should not increase the refcount
      0299a13a
    • Linus Torvalds's avatar
      Merge tag 'for-6.5/dm-fixes' of... · c75981a1
      Linus Torvalds authored
      Merge tag 'for-6.5/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix double free on memory allocation failure in DM integrity target's
         integrity_recalc()
      
       - Fix locking in DM raid target's raid_ctr() and around call to
         md_stop()
      
       - Fix DM cache target's cleaner policy to always allow work to be
         queued for writeback; even if cache isn't idle.
      
      * tag 'for-6.5/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm cache policy smq: ensure IO doesn't prevent cleaner policy progress
        dm raid: protect md_stop() with 'reconfig_mutex'
        dm raid: clean up four equivalent goto tags in raid_ctr()
        dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
        dm integrity: fix double free on memory allocation failure
      c75981a1
    • Linus Torvalds's avatar
      Merge tag 'sound-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 6fb9f7f8
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of device-specific small fixes such as ASoC Realtek codec
        fixes for PM issues, ASoC nau8821 quirk additions, and usual HD- and
        USB-audio quirks"
      
      * tag 'sound-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek: Support ASUS G713PV laptop
        ALSA: usb-audio: Update for native DSD support quirks
        ALSA: usb-audio: Add quirk for Microsoft Modern Wireless Headset
        ALSA: hda/relatek: Enable Mute LED on HP 250 G8
        ASoC: atmel: Fix the 8K sample parameter in I2SC master
        ASoC: rt711-sdca: fix for JD event handling in ClockStop Mode0
        ASoC: rt711: fix for JD event handling in ClockStop Mode0
        ASoC: rt722-sdca: fix for JD event handling in ClockStop Mode0
        ASoC: rt712-sdca: fix for JD event handling in ClockStop Mode0
        ASoc: codecs: ES8316: Fix DMIC config
        ASoC: rt5682-sdw: fix for JD event handling in ClockStop Mode0
        ASoC: wm8904: Fill the cache for WM8904_ADC_TEST_0 register
        ASoC: nau8821: Add DMI quirk mechanism for active-high jack-detect
        ASoC: da7219: Check for failure reading AAD IRQ events
        ASoC: da7219: Flush pending AAD IRQ when suspending
        ALSA: seq: remove redundant unsigned comparison to zero
        ASoC: fsl_spdif: Silence output on stop
      6fb9f7f8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-07-28' of git://anongit.freedesktop.org/drm/drm · 17bf3df9
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular scheduled fixes, msm and amdgpu leading the way, with some
        i915 and a single misc fbdev, all seems fine.
      
        fbdev:
         - remove unused function
      
        amdgpu:
         - gfxhub partition fix
         - Fix error handling in psp_sw_init()
         - SMU13 fix
         - DCN 3.1 fix
         - DCN 3.2 fix
         - Fix for display PHY programming sequence
         - DP MST error handling fix
         - GFX 9.4.3 fix
      
        amdkfd:
         - GFX11 trap handling fix
      
        i915:
         - Use shmem for dpt objects
         - Fix an error handling path in igt_write_huge()
      
        msm:
         - display:
            - Fix to correct the UBWC programming for decoder version 4.3 seen
              on SM8550
            - Add the missing flush and fetch bits for DMA4 and DMA5 SSPPs.
            - Fix to drop the unused dpu_core_perf_data_bus_id enum from the
              code
            - Drop the unused dsi_phy_14nm_17mA_regulators from QCM 2290 DSI
              cfg.
         - gpu:
            - Fix warn splat for newer devices without revn
            - Remove name/revn for a690.. we shouldn't be populating these for
              newer devices, for consistency, but it slipped through review
            - Fix a6xx gpu snapshot BINDLESS_DATA size (was listed in bytes
              instead of dwords, causing AHB faults on a6xx gen4/a660-family)
            - Disallow submit with fence id 0"
      
      * tag 'drm-fixes-2023-07-28' of git://anongit.freedesktop.org/drm/drm: (22 commits)
        drm/msm: Disallow submit with fence id 0
        drm/amdgpu: Restore HQD persistent state register
        drm/amd/display: Unlock on error path in dm_handle_mst_sideband_msg_ready_event()
        drm/amd/display: Exit idle optimizations before attempt to access PHY
        drm/amd/display: Don't apply FIFO resync W/A if rdivider = 0
        drm/amd/display: Guard DCN31 PHYD32CLK logic against chip family
        drm/amd/smu: use AverageGfxclkFrequency* to replace previous GFX Curr Clock
        drm/amd: Fix an error handling mistake in psp_sw_init()
        drm/amdgpu: Fix infinite loop in gfxhub_v1_2_xcc_gart_enable (v2)
        drm/amdkfd: fix trap handling work around for debugging
        drm/fb-helper: Remove unused inline function drm_fb_helper_defio_init()
        drm/i915: Fix an error handling path in igt_write_huge()
        drm/i915/dpt: Use shmem for dpt objects
        drm/msm: Fix hw_fence error path cleanup
        drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
        drm/msm/adreno: Fix snapshot BINDLESS_DATA size
        drm/msm/a690: Remove revn and name
        drm/msm/adreno: Fix warn splat for devices without revn
        drm/msm/dsi: Drop unused regulators from QCM2290 14nm DSI PHY config
        drm/msm/dpu: drop enum dpu_core_perf_data_bus_id
        ...
      17bf3df9
    • Linus Torvalds's avatar
      Merge tag 'cxl-fixes-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · f24767ca
      Linus Torvalds authored
      Pull cxl fixes from Vishal Verma:
      
       - Update MAINTAINERS for cxl
      
       - A few static analysis fixes
      
       - Fix a Kconfig dependency for CONFIG_FW_LOADER
      
      * tag 'cxl-fixes-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
        tools/testing/cxl: Remove unused SZ_512G macro
        cxl/acpi: Return 'rc' instead of '0' in cxl_parse_cfmws()
        cxl/acpi: Fix a use-after-free in cxl_parse_cfmws()
        cxl: Update MAINTAINERS
        cxl/mem: Fix a double shift bug
        cxl: fix CONFIG_FW_LOADER dependency
      f24767ca
    • Mike Rapoport (IBM)'s avatar
      Revert "mm,memblock: reset memblock.reserved to system init state to prevent UAF" · c442a957
      Mike Rapoport (IBM) authored
      This reverts commit 9e46e4dc.
      
      kbuild reports a warning in memblock_remove_region() because of a false
      positive caused by partial reset of the memblock state.
      
      Doing the full reset will remove the false positives, but will allow
      late use of memblock_free() to go unnoticed, so it is better to revert
      the offending commit.
      
         WARNING: CPU: 0 PID: 1 at mm/memblock.c:352 memblock_remove_region (kbuild/src/x86_64/mm/memblock.c:352 (discriminator 1))
         Modules linked in:
         CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.5.0-rc3-00001-g9e46e4dc #2
         RIP: 0010:memblock_remove_region (kbuild/src/x86_64/mm/memblock.c:352 (discriminator 1))
         Call Trace:
           memblock_discard (kbuild/src/x86_64/mm/memblock.c:383)
           page_alloc_init_late (kbuild/src/x86_64/include/linux/find.h:208 kbuild/src/x86_64/include/linux/nodemask.h:266 kbuild/src/x86_64/mm/mm_init.c:2405)
           kernel_init_freeable (kbuild/src/x86_64/init/main.c:1325 kbuild/src/x86_64/init/main.c:1546)
           kernel_init (kbuild/src/x86_64/init/main.c:1439)
           ret_from_fork (kbuild/src/x86_64/arch/x86/kernel/process.c:145)
           ret_from_fork_asm (kbuild/src/x86_64/arch/x86/entry/entry_64.S:298)
      Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
      Closes: https://lore.kernel.org/oe-lkp/202307271656.447aa17e-oliver.sang@intel.comSigned-off-by: default avatar"Mike Rapoport (IBM)" <rppt@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c442a957
    • Jann Horn's avatar
      mm/mempolicy: Take VMA lock before replacing policy · 6c21e066
      Jann Horn authored
      mbind() calls down into vma_replace_policy() without taking the per-VMA
      locks, replaces the VMA's vma->vm_policy pointer, and frees the old
      policy.  That's bad; a concurrent page fault might still be using the
      old policy (in vma_alloc_folio()), resulting in use-after-free.
      
      Normally this will manifest as a use-after-free read first, but it can
      result in memory corruption, including because vma_alloc_folio() can
      call mpol_cond_put() on the freed policy, which conditionally changes
      the policy's refcount member.
      
      This bug is specific to CONFIG_NUMA, but it does also affect non-NUMA
      systems as long as the kernel was built with CONFIG_NUMA.
      Signed-off-by: default avatarJann Horn <jannh@google.com>
      Reviewed-by: default avatarSuren Baghdasaryan <surenb@google.com>
      Fixes: 5e31275c ("mm: add per-VMA lock and helper functions to control it")
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6c21e066
    • Guanghui Feng's avatar
      ACPI/IORT: Remove erroneous id_count check in iort_node_get_rmr_info() · 003e6b56
      Guanghui Feng authored
      According to the ARM IORT specifications DEN 0049 issue E,
      the "Number of IDs" field in the ID mapping format reports
      the number of IDs in the mapping range minus one.
      
      In iort_node_get_rmr_info(), we erroneously skip ID mappings
      whose "Number of IDs" equal to 0, resulting in valid mapping
      nodes with a single ID to map being skipped, which is wrong.
      
      Fix iort_node_get_rmr_info() by removing the bogus id_count
      check.
      
      Fixes: 491cf4a6 ("ACPI/IORT: Add support to retrieve IORT RMR reserved regions")
      Signed-off-by: default avatarGuanghui Feng <guanghuifeng@linux.alibaba.com>
      Cc: <stable@vger.kernel.org> # 6.0.x
      Acked-by: default avatarLorenzo Pieralisi <lpieralisi@kernel.org>
      Tested-by: default avatarHanjun Guo <guohanjun@huawei.com>
      Link: https://lore.kernel.org/r/1689593625-45213-1-git-send-email-guanghuifeng@linux.alibaba.comSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      003e6b56
    • Dave Airlie's avatar
      Merge tag 'drm-msm-fixes-2023-07-27' of https://gitlab.freedesktop.org/drm/msm into drm-fixes · 9a767faa
      Dave Airlie authored
      Fixes for v6.5-rc4
      
      Display:
      + Fix to correct the UBWC programming for decoder version 4.3 seen
        on SM8550
      + Add the missing flush and fetch bits for DMA4 and DMA5 SSPPs.
      + Fix to drop the unused dpu_core_perf_data_bus_id enum from the code
      + Drop the unused dsi_phy_14nm_17mA_regulators from QCM 2290 DSI cfg.
      
      GPU:
      + Fix warn splat for newer devices without revn
      + Remove name/revn for a690.. we shouldn't be populating these for
        newer devices, for consistency, but it slipped through review
      + Fix a6xx gpu snapshot BINDLESS_DATA size (was listed in bytes
        instead of dwords, causing AHB faults on a6xx gen4/a660-family)
      + Disallow submit with fence id 0
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Rob Clark <robdclark@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/CAF6AEGs9MwCSfiyv8i7yWAsJKYEzCDyzaTx=ujX80Y23rZd9RA@mail.gmail.com
      9a767faa
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.5-2023-07-26' of... · 0dd9c514
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.5-2023-07-26' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-6.5-2023-07-26:
      
      amdgpu:
      - gfxhub partition fix
      - Fix error handling in psp_sw_init()
      - SMU13 fix
      - DCN 3.1 fix
      - DCN 3.2 fix
      - Fix for display PHY programming sequence
      - DP MST error handling fix
      - GFX 9.4.3 fix
      
      amdkfd:
      - GFX11 trap handling fix
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20230726184936.7812-1-alexander.deucher@amd.com
      0dd9c514
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2023-07-27' of... · 75da46c1
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2023-07-27' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Use shmem for dpt objects [dpt] (Radhakrishna Sripada)
      - Fix an error handling path in igt_write_huge() (Christophe JAILLET)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZMI4Mtom7pDhLB7M@tursulin-desk
      75da46c1
    • Dave Airlie's avatar
  3. 27 Jul, 2023 13 commits
    • Sidhartha Kumar's avatar
      mm/memory-failure: fix hardware poison check in unpoison_memory() · 6c54312f
      Sidhartha Kumar authored
      It was pointed out[1] that using folio_test_hwpoison() is wrong as we need
      to check the indiviual page that has poison.  folio_test_hwpoison() only
      checks the head page so go back to using PageHWPoison().
      
      User-visible effects include existing hwpoison-inject tests possibly
      failing as unpoisoning a single subpage could lead to unpoisoning an
      entire folio.  Memory unpoisoning could also not work as expected as
      the function will break early due to only checking the head page and
      not the actually poisoned subpage.
      
      [1]: https://lore.kernel.org/lkml/ZLIbZygG7LqSI9xe@casper.infradead.org/
      
      Link: https://lkml.kernel.org/r/20230717181812.167757-1-sidhartha.kumar@oracle.com
      Fixes: a6fddef4 ("mm/memory-failure: convert unpoison_memory() to folios")
      Signed-off-by: default avatarSidhartha Kumar <sidhartha.kumar@oracle.com>
      Reported-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Acked-by: default avatarNaoya Horiguchi <naoya.horiguchi@nec.com>
      Reviewed-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      6c54312f
    • Dan Carpenter's avatar
      proc/vmcore: fix signedness bug in read_from_oldmem() · 641db40f
      Dan Carpenter authored
      The bug is the error handling:
      
      	if (tmp < nr_bytes) {
      
      "tmp" can hold negative error codes but because "nr_bytes" is type size_t
      the negative error codes are treated as very high positive values
      (success).  Fix this by changing "nr_bytes" to type ssize_t.  The
      "nr_bytes" variable is used to store values between 1 and PAGE_SIZE and
      they can fit in ssize_t without any issue.
      
      Link: https://lkml.kernel.org/r/b55f7eed-1c65-4adc-95d1-6c7c65a54a6e@moroto.mountain
      Fixes: 5d8de293 ("vmcore: convert copy_oldmem_page() to take an iov_iter")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
      Reviewed-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Acked-by: default avatarBaoquan He <bhe@redhat.com>
      Cc: Dave Young <dyoung@redhat.com>
      Cc: Vivek Goyal <vgoyal@redhat.com>
      Cc: Alexey Dobriyan <adobriyan@gmail.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      641db40f
    • Bjorn Andersson's avatar
      mailmap: update remaining active codeaurora.org email addresses · 286812b0
      Bjorn Andersson authored
      The lack of mailmap updates for @codeaurora.org addresses reduces the
      usefulness of tools such as get_maintainer.pl.  Some recent (and welcome!)
      additions has been made to improve the situation, this concludes the
      effort.
      
      Link: https://lkml.kernel.org/r/20230720210256.1296567-1-quic_bjorande@quicinc.comSigned-off-by: default avatarBjorn Andersson <quic_bjorande@quicinc.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Konrad Dybcio <konrad.dybcio@linaro.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      286812b0
    • Jann Horn's avatar
      mm: lock VMA in dup_anon_vma() before setting ->anon_vma · d8ab9f7b
      Jann Horn authored
      When VMAs are merged, dup_anon_vma() is called with `dst` pointing to the
      VMA that is being expanded to cover the area previously occupied by
      another VMA.  This currently happens while `dst` is not write-locked.
      
      This means that, in the `src->anon_vma && !dst->anon_vma` case, as soon as
      the assignment `dst->anon_vma = src->anon_vma` has happened, concurrent
      page faults can happen on `dst` under the per-VMA lock.  This is already
      icky in itself, since such page faults can now install pages into `dst`
      that are attached to an `anon_vma` that is not yet tied back to the
      `anon_vma` with an `anon_vma_chain`.  But if `anon_vma_clone()` fails due
      to an out-of-memory error, things get much worse: `anon_vma_clone()` then
      reverts `dst->anon_vma` back to NULL, and `dst` remains completely
      unconnected to the `anon_vma`, even though we can have pages in the area
      covered by `dst` that point to the `anon_vma`.
      
      This means the `anon_vma` of such pages can be freed while the pages are
      still mapped into userspace, which leads to UAF when a helper like
      folio_lock_anon_vma_read() tries to look up the anon_vma of such a page.
      
      This theoretically is a security bug, but I believe it is really hard to
      actually trigger as an unprivileged user because it requires that you can
      make an order-0 GFP_KERNEL allocation fail, and the page allocator tries
      pretty hard to prevent that.
      
      I think doing the vma_start_write() call inside dup_anon_vma() is the most
      straightforward fix for now.
      
      For a kernel-assisted reproducer, see the notes section of the patch mail.
      
      Link: https://lkml.kernel.org/r/20230721034643.616851-1-jannh@google.com
      Fixes: 5e31275c ("mm: add per-VMA lock and helper functions to control it")
      Signed-off-by: default avatarJann Horn <jannh@google.com>
      Reviewed-by: default avatarSuren Baghdasaryan <surenb@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      d8ab9f7b
    • Jann Horn's avatar
      mm: fix memory ordering for mm_lock_seq and vm_lock_seq · b1f02b95
      Jann Horn authored
      mm->mm_lock_seq effectively functions as a read/write lock; therefore it
      must be used with acquire/release semantics.
      
      A specific example is the interaction between userfaultfd_register() and
      lock_vma_under_rcu().
      
      userfaultfd_register() does the following from the point where it changes
      a VMA's flags to the point where concurrent readers are permitted again
      (in a simple scenario where only a single private VMA is accessed and no
      merging/splitting is involved):
      
      userfaultfd_register
        userfaultfd_set_vm_flags
          vm_flags_reset
            vma_start_write
              down_write(&vma->vm_lock->lock)
              vma->vm_lock_seq = mm_lock_seq [marks VMA as busy]
              up_write(&vma->vm_lock->lock)
            vm_flags_init
              [sets VM_UFFD_* in __vm_flags]
        vma->vm_userfaultfd_ctx.ctx = ctx
        mmap_write_unlock
          vma_end_write_all
            WRITE_ONCE(mm->mm_lock_seq, mm->mm_lock_seq + 1) [unlocks VMA]
      
      There are no memory barriers in between the __vm_flags update and the
      mm->mm_lock_seq update that unlocks the VMA, so the unlock can be
      reordered to above the `vm_flags_init()` call, which means from the
      perspective of a concurrent reader, a VMA can be marked as a userfaultfd
      VMA while it is not VMA-locked.  That's bad, we definitely need a
      store-release for the unlock operation.
      
      The non-atomic write to vma->vm_lock_seq in vma_start_write() is mostly
      fine because all accesses to vma->vm_lock_seq that matter are always
      protected by the VMA lock.  There is a racy read in vma_start_read()
      though that can tolerate false-positives, so we should be using
      WRITE_ONCE() to keep things tidy and data-race-free (including for KCSAN).
      
      On the other side, lock_vma_under_rcu() works as follows in the relevant
      region for locking and userfaultfd check:
      
      lock_vma_under_rcu
        vma_start_read
          vma->vm_lock_seq == READ_ONCE(vma->vm_mm->mm_lock_seq) [early bailout]
          down_read_trylock(&vma->vm_lock->lock)
          vma->vm_lock_seq == READ_ONCE(vma->vm_mm->mm_lock_seq) [main check]
        userfaultfd_armed
          checks vma->vm_flags & __VM_UFFD_FLAGS
      
      Here, the interesting aspect is how far down the mm->mm_lock_seq read can
      be reordered - if this read is reordered down below the vma->vm_flags
      access, this could cause lock_vma_under_rcu() to partly operate on
      information that was read while the VMA was supposed to be locked.  To
      prevent this kind of downwards bleeding of the mm->mm_lock_seq read, we
      need to read it with a load-acquire.
      
      Some of the comment wording is based on suggestions by Suren.
      
      BACKPORT WARNING: One of the functions changed by this patch (which I've
      written against Linus' tree) is vma_try_start_write(), but this function
      no longer exists in mm/mm-everything.  I don't know whether the merged
      version of this patch will be ordered before or after the patch that
      removes vma_try_start_write().  If you're backporting this patch to a tree
      with vma_try_start_write(), make sure this patch changes that function.
      
      Link: https://lkml.kernel.org/r/20230721225107.942336-1-jannh@google.com
      Fixes: 5e31275c ("mm: add per-VMA lock and helper functions to control it")
      Signed-off-by: default avatarJann Horn <jannh@google.com>
      Reviewed-by: default avatarSuren Baghdasaryan <surenb@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      b1f02b95
    • Drew Fustini's avatar
      scripts/spelling.txt: remove 'thead' as a typo · 15571273
      Drew Fustini authored
      T-Head is a vendor of processor core IP, and they have recently introduced
      the RISC-V TH1520 SoC.  Remove 'thead' as a typo of 'thread' to avoid
      checkpatch incorrectly warning that 'thead' is typo in patches that add
      support for T-Head designs in the kernel.
      
      Link: https://lkml.kernel.org/r/20230723010329.674186-1-dfustini@baylibre.com
      Link: https://www.t-head.cn/Signed-off-by: default avatarDrew Fustini <dfustini@baylibre.com>
      Acked-by: default avatarGuo Ren <guoren@kernel.org>
      Cc: Conor Dooley <conor@kernel.org>
      Cc: Jisheng Zhang <jszhang@kernel.org>
      Cc: Colin Ian King <colin.i.king@gmail.com>
      Cc: Diederik de Haas <didi.debian@cknow.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Luca Ceresoli <luca.ceresoli@bootlin.com> # versaclock5
      Cc: Randy Dunlap <rdunlap@infradead.org>
      Cc: SeongJae Park <sj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      15571273
    • Hugh Dickins's avatar
      mm/pagewalk: fix EFI_PGT_DUMP of espfix area · 8b1cb4a2
      Hugh Dickins authored
      Booting x86_64 with CONFIG_EFI_PGT_DUMP=y shows messages of the form
      "mm/pgtable-generic.c:53: bad pmd (____ptrval____)(8000000100077061)".
      
      EFI_PGT_DUMP dumps all of efi_mm, including the espfix area, which is set
      up with pmd entries which fit the pmd_bad() check: so 0d940a9b warns
      and clears those entries, which would ruin running Win16 binaries.
      
      The failing pte_offset_map() stopped such a kernel from even booting,
      until a few commits later be872f83 changed the pagewalk to tolerate
      that: but it needs to be even more careful, to not spoil those entries.
      
      I might have preferred to change init_espfix_ap() not to use "bad" pmd
      entries; or to leave them out of the efi_mm dump.  But there is great
      value in staying away from there, and a pagewalk check of address against
      TASK_SIZE may protect from other such aberrations too.
      
      Link: https://lkml.kernel.org/r/22bca736-4cab-9ee5-6a52-73a3b2bbe865@google.com
      Closes: https://lore.kernel.org/linux-mm/CABXGCsN3JqXckWO=V7p=FhPU1tK03RE1w9UE6xL5Y86SMk209w@mail.gmail.com/
      Fixes: 0d940a9b ("mm/pgtable: allow pte_offset_map[_lock]() to fail")
      Fixes: be872f83 ("mm/pagewalk: walk_pte_range() allow for pte_offset_map()")
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Reported-by: default avatarMikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
      Tested-by: default avatarMikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
      Cc: Bagas Sanjaya <bagasdotme@gmail.com>
      Cc: Laura Abbott <labbott@fedoraproject.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8b1cb4a2
    • Hugh Dickins's avatar
      shmem: minor fixes to splice-read implementation · fa598952
      Hugh Dickins authored
      HWPoison: my reading of folio_test_hwpoison() is that it only tests the
      head page of a large folio, whereas splice_folio_into_pipe() will splice
      as much of the folio as it can: so for safety we should also check the
      has_hwpoisoned flag, set if any of the folio's pages are hwpoisoned. 
      (Perhaps that ugliness can be improved at the mm end later.)
      
      The call to splice_zeropage_into_pipe() risked overrunning past EOF: ask
      it for "part" not "len".
      
      Link: https://lkml.kernel.org/r/32c72c9c-72a8-115f-407d-f0148f368@google.com
      Fixes: bd194b18 ("shmem: Implement splice-read")
      Signed-off-by: default avatarHugh Dickins <hughd@google.com>
      Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: David Hildenbrand <david@redhat.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      fa598952
    • Hugh Dickins's avatar
      tmpfs: fix Documentation of noswap and huge mount options · 253e5df8
      Hugh Dickins authored
      The noswap mount option is surely not one of the three options for sizing:
      move its description down.
      
      The huge= mount option does not accept numeric values: those are just in
      an internal enum.  Delete those numbers, and follow the manpage text more
      closely (but there's not yet any fadvise() or fcntl() which applies here).
      
      /sys/kernel/mm/transparent_hugepage/shmem_enabled is hard to describe, and
      barely relevant to mounting a tmpfs: just refer to transhuge.rst (while
      still using the words deny and force, to help as informal reminders).
      
      [rdunlap@infradead.org: fixup Docs table for huge mount options]
        Link: https://lkml.kernel.org/r/20230725052333.26857-1-rdunlap@infradead.org
      Link: https://lkml.kernel.org/r/986cb0bf-9780-354-9bb-4bf57aadbab@google.comSigned-off-by: default avatarHugh Dickins <hughd@google.com>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Fixes: d0f5a854 ("shmem: update documentation")
      Fixes: 2c6efe9c ("shmem: add support to ignore swap")
      Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> 
      Cc: Christian Brauner <brauner@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      253e5df8
    • Andy Shevchenko's avatar
      Revert "um: Use swap() to make code cleaner" · dddfa05e
      Andy Shevchenko authored
      This reverts commit 9b0da3f2.
      
      The sigio.c is clearly user space code which is handled by
      arch/um/scripts/Makefile.rules (see USER_OBJS rule).
      
      The above mentioned commit simply broke this agreement,
      we may not use Linux kernel internal headers in them without
      thorough thinking.
      
      Hence, revert the wrong commit.
      
      Link: https://lkml.kernel.org/r/20230724143131.30090-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Closes: https://lore.kernel.org/oe-kbuild-all/202307212304.cH79zJp1-lkp@intel.com/
      Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
      Cc: Herve Codina <herve.codina@bootlin.com>
      Cc: Jason A. Donenfeld <Jason@zx2c4.com>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
      Cc: Richard Weinberger <richard@nod.at>
      Cc: Yang Guang <yang.guang5@zte.com.cn>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      dddfa05e
    • Feng Tang's avatar
      mm/damon/core-test: initialise context before test in damon_test_set_attrs() · d1836a3b
      Feng Tang authored
      Running kunit test for 6.5-rc1 hits one bug:
      
              ok 10 damon_test_update_monitoring_result
          general protection fault, probably for non-canonical address 0x1bffa5c419cfb81: 0000 [#1] PREEMPT SMP NOPTI
          CPU: 1 PID: 110 Comm: kunit_try_catch Tainted: G                 N 6.5.0-rc2 #15
          Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
          RIP: 0010:damon_set_attrs+0xb9/0x120
          Code: f8 00 00 00 4c 8d 58 e0 48 39 c3 74 ba 41 ba 59 17 b7 d1 49 8b 43 10 4d
          8d 4b 10 48 8d 70 e0 49 39 c1 74 50 49 8b 40 08 31 d2 <69> 4e 18 10 27 00 00
          49 f7 30 31 d2 48 89 c5 89 c8 f7 f5 31 d2 89
          RSP: 0000:ffffc900005bfd40 EFLAGS: 00010246
          RAX: ffffffff81159fc0 RBX: ffffc900005bfeb8 RCX: 0000000000000000
          RDX: 0000000000000000 RSI: 01bffa5c419cfb69 RDI: ffffc900005bfd70
          RBP: ffffc90000013c10 R08: ffffc900005bfdc0 R09: ffffffff81ff10ed
          R10: 00000000d1b71759 R11: ffffffff81ff10dd R12: ffffc90000013a78
          R13: ffff88810eb78180 R14: ffffffff818297c0 R15: ffffc90000013c28
          FS:  0000000000000000(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000
          CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
          CR2: 0000000000000000 CR3: 0000000002a1c001 CR4: 0000000000370ee0
          DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
          DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
          Call Trace:
           <TASK>
           damon_test_set_attrs+0x63/0x1f0
           kunit_generic_run_threadfn_adapter+0x17/0x30
           kthread+0xfd/0x130
      
      The problem seems to be related with the damon_ctx was used without
      being initialized. Fix it by adding the initialization.
      
      Link: https://lkml.kernel.org/r/20230718052811.1065173-1-feng.tang@intel.com
      Fixes: aa13779b ("mm/damon/core-test: add a test for damon_set_attrs()")
      Signed-off-by: default avatarFeng Tang <feng.tang@intel.com>
      Reviewed-by: default avatarSeongJae Park <sj@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      d1836a3b
    • Linus Torvalds's avatar
      Merge tag 'net-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 57012c57
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from can, netfilter.
      
        Current release - regressions:
      
         - core: fix splice_to_socket() for O_NONBLOCK socket
      
         - af_unix: fix fortify_panic() in unix_bind_bsd().
      
         - can: raw: fix lockdep issue in raw_release()
      
        Previous releases - regressions:
      
         - tcp: reduce chance of collisions in inet6_hashfn().
      
         - netfilter: skip immediate deactivate in _PREPARE_ERROR
      
         - tipc: stop tipc crypto on failure in tipc_node_create
      
         - eth: igc: fix kernel panic during ndo_tx_timeout callback
      
         - eth: iavf: fix potential deadlock on allocation failure
      
        Previous releases - always broken:
      
         - ipv6: fix bug where deleting a mngtmpaddr can create a new
           temporary address
      
         - eth: ice: fix memory management in ice_ethtool_fdir.c
      
         - eth: hns3: fix the imp capability bit cannot exceed 32 bits issue
      
         - eth: vxlan: calculate correct header length for GPE
      
         - eth: stmmac: apply redundant write work around on 4.xx too"
      
      * tag 'net-6.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (49 commits)
        tipc: stop tipc crypto on failure in tipc_node_create
        af_unix: Terminate sun_path when bind()ing pathname socket.
        tipc: check return value of pskb_trim()
        benet: fix return value check in be_lancer_xmit_workarounds()
        virtio-net: fix race between set queues and probe
        net/sched: mqprio: Add length check for TCA_MQPRIO_{MAX/MIN}_RATE64
        splice, net: Fix splice_to_socket() for O_NONBLOCK socket
        net: fec: tx processing does not call XDP APIs if budget is 0
        mptcp: more accurate NL event generation
        selftests: mptcp: join: only check for ip6tables if needed
        tools: ynl-gen: fix parse multi-attr enum attribute
        tools: ynl-gen: fix enum index in _decode_enum(..)
        netfilter: nf_tables: disallow rule addition to bound chain via NFTA_RULE_CHAIN_ID
        netfilter: nf_tables: skip immediate deactivate in _PREPARE_ERROR
        netfilter: nft_set_rbtree: fix overlap expiration walk
        igc: Fix Kernel Panic during ndo_tx_timeout callback
        net: dsa: qca8k: fix mdb add/del case with 0 VID
        net: dsa: qca8k: fix broken search_and_del
        net: dsa: qca8k: fix search_and_insert wrong handling of new rule
        net: dsa: qca8k: enable use_single_write for qca8xxx
        ...
      57012c57
    • Linus Torvalds's avatar
      Merge tag 'soundwire-6.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire · bc168790
      Linus Torvalds authored
      Pull soundwire fixes from Vinod Koul:
      
       - Core fix for enumeration completion
      
       - Qualcomm driver fix to update status
      
       - AMD driver fix for probe error check
      
      * tag 'soundwire-6.5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
        soundwire: amd: Fix a check for errors in probe()
        soundwire: qcom: update status correctly with mask
        soundwire: fix enumeration completion
      bc168790