Skip to content
  1. Oct 21, 2023
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · f20f29cb
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix the ACPI initialization ordering on ARM and ACPI IRQ
        management in the cases when irq_create_fwspec_mapping() fails.
      
        Specifics:
      
         - Fix ACPI initialization ordering on ARM that was changed
           incorrectly during the 6.5 development cycle (Hanjun Guo)
      
         - Make acpi_register_gsi() return an error code as appropriate when
           irq_create_fwspec_mapping() returns 0 on failure (Sunil V L)"
      
      * tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: bus: Move acpi_arm_init() to the place of after acpi_ghes_init()
        ACPI: irq: Fix incorrect return value in acpi_register_gsi()
      f20f29cb
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 75e167c2
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two small fixes, both in drivers.
      
        The mptsas one is really fixing an error path issue where it can leave
        the misc driver loaded even though the sas driver fails to initialize"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Fix double free of dsd_list during driver load
        scsi: mpt3sas: Fix in error path
      75e167c2
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 659eaa00
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Concurrent register updates in the Qualcomm LPASS pin controller gets
         a proper lock.
      
       - revert a mutex fix that was causing problems: contention on the mutex
         or something of the sort lead to probe reordering and MMC block
         devices start to register in a different order, which unsuspecting
         userspace is not ready to handle
      
      * tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
        pinctrl: qcom: lpass-lpi: fix concurrent register updates
      659eaa00
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · f6176471
      Linus Torvalds authored
      Pull MTD fixes from Miquel Raynal:
       "In the raw NAND subsystem, the major fix prevents using cached reads
        with devices not supporting it. There was two bug reports about this.
      
        Apart from that, three drivers (pl353, arasan and marvell) could
        sometimes hide page program failures due to their their own program
        page helper not being fully compliant with the specification (many
        drivers use the default helpers shared by the core). Adding a missing
        check prevents these situation.
      
        Finally, the Qualcomm driver had a broken error path.
      
        In the SPI-NAND subsystem one Micron device used a wrong bitmak
        reporting possibly corrupted ECC status.
      
        Finally, the physmap-core got stripped from its map_rom fallback by
        mistake, this feature is added back"
      
      * tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: Ensure the nand chip supports cached reads
        mtd: rawnand: qcom: Unmap the right resource upon probe failure
        mtd: rawnand: pl353: Ensure program page operations are successful
        mtd: rawnand: arasan: Ensure program page operations are successful
        mtd: spinand: micron: correct bitmask for ecc status
        mtd: physmap-core: Restore map_rom fallback
        mtd: rawnand: marvell: Ensure program page operations are successful
      f6176471
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 7da6c042
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Capture correct oemid-bits for eMMC cards
         - Fix error propagation for some ioctl commands
         - Hold retuning if SDIO is in 1-bit mode
      
        MMC host:
         - mtk-sd: Use readl_poll_timeout_atomic to not "schedule while atomic"
         - sdhci-msm: Correct minimum number of clocks
         - sdhci-pci-gli: Fix LPM negotiation so x86/S0ix SoCs can suspend
         - sdhci-sprd: Fix error code in sdhci_sprd_tuning()"
      
      * tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: Capture correct oemid-bits for eMMC cards
        mmc: mtk-sd: Use readl_poll_timeout_atomic in msdc_reset_hw
        mmc: core: Fix error propagation for some ioctl commands
        mmc: sdhci-sprd: Fix error code in sdhci_sprd_tuning()
        mmc: sdhci-pci-gli: fix LPM negotiation so x86/S0ix SoCs can suspend
        mmc: core: sdio: hold retuning if sdio in 1-bit mode
        dt-bindings: mmc: sdhci-msm: correct minimum number of clocks
      7da6c042
    • Linus Torvalds's avatar
      Merge tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux · c3200081
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A fix for a regression with sed-opal and saved keys, and outside of
        that an NVMe pull request fixing a few minor issues on that front"
      
      * tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux:
        nvme-pci: add BOGUS_NID for Intel 0a54 device
        nvmet-auth: complete a request only after freeing the dhchap pointers
        nvme: sanitize metadata bounce buffer for reads
        block: Fix regression in sed-opal for a saved key.
        nvme-auth: use chap->s2 to indicate bidirectional authentication
        nvmet-tcp: Fix a possible UAF in queue intialization setup
        nvme-rdma: do not try to stop unallocated queues
      c3200081
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux · 747b7628
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single fix for a bug report that came in, fixing a case where
        failure to init a ring with IORING_SETUP_NO_MMAP can trigger a NULL
        pointer dereference"
      
      * tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux:
        io_uring: fix crash with IORING_SETUP_NO_MMAP and invalid SQ ring address
      747b7628
    • Linus Torvalds's avatar
      Merge tag 'sound-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 14f68633
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Still higher volume than wished, but all are driver-specific small
        fixes and look safe for this late RC.
      
        The majority of changes are for ASoC, especially for wcd938x driver
        and Cirrus codec drivers, while there are other random fixes including
        usual HD-audio quirks"
      
      * tag 'sound-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (22 commits)
        ASoC: da7219: Correct the process of setting up Gnd switch in AAD
        ALSA: hda/realtek - Fixed ASUS platform headset Mic issue
        ALSA: hda/realtek: Add quirk for ASUS ROG GU603ZV
        ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq5xxx
        ASoC: dwc: Fix non-DT instantiation
        ASoC: codecs: tas2780: Fix log of failed reset via I2C.
        ASoC: rt5650: fix the wrong result of key button
        ASoC: cs42l42: Fix missing include of gpio/consumer.h
        ASoC: cs42l43: Update values for bias sense
        ASoC: dt-bindings: cirrus,cs42l43: Update values for bias sense
        ASoC: cs35l56: ASP1 DOUT must default to Hi-Z when not transmitting
        ASoC: pxa: fix a memory leak in probe()
        ASoC: cs35l56: Fix illegal use of init_completion()
        ASoC: codecs: wcd938x-sdw: fix runtime PM imbalance on probe errors
        ASoC: codecs: wcd938x-sdw: fix use after free on driver unbind
        ASoC: codecs: wcd938x: fix runtime PM imbalance on remove
        ASoC: codecs: wcd938x: fix regulator leaks on probe errors
        ASoC: codecs: wcd938x: fix resource leaks on bind errors
        ASoC: codecs: wcd938x: fix unbind tear down order
        ASoC: codecs: wcd938x: drop bogus bind error handling
        ...
      14f68633
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-10-20' of git://anongit.freedesktop.org/drm/drm · c8045b4a
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular fixes for the week, amdgpu, i915, nouveau, with some other
        scattered around, nothing major.
      
        amdgpu:
         - Fix possible NULL pointer dereference
         - Avoid possible BUG_ON in GPUVM updates
         - Disable AMD_CTX_PRIORITY_UNSET
      
        i915:
         - Fix display issue that was blocking S0ix
         - Retry gtt fault when out of fence registers
      
        bridge:
         - ti-sn65dsi86: Fix device lifetime
      
        edid:
         - Add quirk for BenQ GW2765
      
        ivpu:
         - Extend address range for MMU mmap
      
        nouveau:
         - DP-connector fixes
         - Documentation fixes
      
        panel:
         - Move AUX B116XW03 into panel-simple
      
        scheduler:
         - Eliminate DRM_SCHED_PRIORITY_UNSET
      
        ttm:
         - Fix possible NULL-ptr deref in cleanup
      
        mediatek:
         - Correctly free sg_table in gem prime vmap"
      
      * tag 'drm-fixes-2023-10-20' of git://anongit.freedesktop.org/drm/drm:
        drm/amdgpu: Reserve fences for VM update
        drm/amdgpu: Fix possible null pointer dereference
        accel/ivpu: Extend address range for MMU mmap
        Revert "accel/ivpu: Use cached buffers for FW loading"
        accel/ivpu: Don't enter d0i3 during FLR
        drm/i915: Retry gtt fault when out of fence registers
        drm/i915/cx0: Only clear/set the Pipe Reset bit of the PHY Lanes Owned
        gpu/drm: Eliminate DRM_SCHED_PRIORITY_UNSET
        drm/amdgpu: Unset context priority is now invalid
        drm/mediatek: Correctly free sg_table in gem prime vmap
        drm/edid: add 8 bpc quirk to the BenQ GW2765
        drm/ttm: Reorder sys manager cleanup step
        drm/nouveau/disp: fix DP capable DSM connectors
        drm/nouveau: exec: fix ioctl kernel-doc warning
        drm/panel: Move AUX B116XW03 out of panel-edp back to panel-simple
        drm/bridge: ti-sn65dsi86: Associate DSI device lifetime with auxiliary device
      c8045b4a
  2. Oct 20, 2023
  3. Oct 19, 2023
    • Linus Torvalds's avatar
      Merge tag 'for-6.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 7cf4bea7
      Linus Torvalds authored
      Pull btrfs fix from David Sterba:
       "Fix a bug in chunk size decision that could lead to suboptimal
        placement and filling patterns"
      
      * tag 'for-6.6-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix stripe length calculation for non-zoned data chunk allocation
      7cf4bea7
    • Paolo Abeni's avatar
      Merge branch 'net-fix-bugs-in-device-netns-move-and-rename' · f7d86df4
      Paolo Abeni authored
      Jakub Kicinski says:
      
      ====================
      net: fix bugs in device netns-move and rename
      
      Daniel reported issues with the uevents generated during netdev
      namespace move, if the netdev is getting renamed at the same time.
      
      While the issue that he actually cares about is not fixed here,
      there is a bunch of seemingly obvious other bugs in this code.
      Fix the purely networking bugs while the discussion around
      the uevent fix is still ongoing.
      ====================
      
      Link: https://lore.kernel.org/r/20231018013817.2391509-1-kuba@kernel.org
      
      
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      f7d86df4
    • Jakub Kicinski's avatar
      selftests: net: add very basic test for netdev names and namespaces · 3920431d
      Jakub Kicinski authored
      
      
      Add selftest for fixes around naming netdevs and namespaces.
      
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      3920431d
    • Jakub Kicinski's avatar
      net: move altnames together with the netdevice · 8e15aee6
      Jakub Kicinski authored
      The altname nodes are currently not moved to the new netns
      when netdevice itself moves:
      
        [ ~]# ip netns add test
        [ ~]# ip -netns test link add name eth0 type dummy
        [ ~]# ip -netns test link property add dev eth0 altname some-name
        [ ~]# ip -netns test link show dev some-name
        2: eth0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
            link/ether 1e:67:ed:19:3d:24 brd ff:ff:ff:ff:ff:ff
            altname some-name
        [ ~]# ip -netns test link set dev eth0 netns 1
        [ ~]# ip link
        ...
        3: eth0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
            link/ether 02:40:88:62:ec:b8 brd ff:ff:ff:ff:ff:ff
            altname some-name
        [ ~]# ip li show dev some-name
        Device "some-name" does not exist.
      
      Remove them from the hash table when device is unlisted
      and add back when listed again.
      
      Fixes: 36fbf1e5
      
       ("net: rtnetlink: add linkprop commands to add and delete alternative ifnames")
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      8e15aee6
    • Jakub Kicinski's avatar
      net: avoid UAF on deleted altname · 1a83f4a7
      Jakub Kicinski authored
      Altnames are accessed under RCU (dev_get_by_name_rcu())
      but freed by kfree() with no synchronization point.
      
      Each node has one or two allocations (node and a variable-size
      name, sometimes the name is netdev->name). Adding rcu_heads
      here is a bit tedious. Besides most code which unlists the names
      already has rcu barriers - so take the simpler approach of adding
      synchronize_rcu(). Note that the one on the unregistration path
      (which matters more) is removed by the next fix.
      
      Fixes: ff927412
      
       ("net: introduce name_node struct to be used in hashlist")
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      1a83f4a7
    • Jakub Kicinski's avatar
      net: check for altname conflicts when changing netdev's netns · 7663d522
      Jakub Kicinski authored
      It's currently possible to create an altname conflicting
      with an altname or real name of another device by creating
      it in another netns and moving it over:
      
       [ ~]$ ip link add dev eth0 type dummy
      
       [ ~]$ ip netns add test
       [ ~]$ ip -netns test link add dev ethX netns test type dummy
       [ ~]$ ip -netns test link property add dev ethX altname eth0
       [ ~]$ ip -netns test link set dev ethX netns 1
      
       [ ~]$ ip link
       ...
       3: eth0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
           link/ether 02:40:88:62:ec:b8 brd ff:ff:ff:ff:ff:ff
       ...
       5: ethX: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
           link/ether 26:b7:28:78:38:0f brd ff:ff:ff:ff:ff:ff
           altname eth0
      
      Create a macro for walking the altnames, this hopefully makes
      it clearer that the list we walk contains only altnames.
      Which is otherwise not entirely intuitive.
      
      Fixes: 36fbf1e5
      
       ("net: rtnetlink: add linkprop commands to add and delete alternative ifnames")
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      7663d522
    • Jakub Kicinski's avatar
      net: fix ifname in netlink ntf during netns move · 311cca40
      Jakub Kicinski authored
      dev_get_valid_name() overwrites the netdev's name on success.
      This makes it hard to use in prepare-commit-like fashion,
      where we do validation first, and "commit" to the change
      later.
      
      Factor out a helper which lets us save the new name to a buffer.
      Use it to fix the problem of notification on netns move having
      incorrect name:
      
       5: eth0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
           link/ether be:4d:58:f9:d5:40 brd ff:ff:ff:ff:ff:ff
       6: eth1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
           link/ether 1e:4a:34:36:e3:cd brd ff:ff:ff:ff:ff:ff
      
       [ ~]# ip link set dev eth0 netns 1 name eth1
      
      ip monitor inside netns:
       Deleted inet eth0
       Deleted inet6 eth0
       Deleted 5: eth1: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
           link/ether be:4d:58:f9:d5:40 brd ff:ff:ff:ff:ff:ff new-netnsid 0 new-ifindex 7
      
      Name is reported as eth1 in old netns for ifindex 5, already renamed.
      
      Fixes: d9031024
      
       ("net: device name allocation cleanups")
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      311cca40
    • MD Danish Anwar's avatar
      net: ethernet: ti: Fix mixed module-builtin object · a602ee31
      MD Danish Anwar authored
      With CONFIG_TI_K3_AM65_CPSW_NUSS=y and CONFIG_TI_ICSSG_PRUETH=m,
      k3-cppi-desc-pool.o is linked to a module and also to vmlinux even though
      the expected CFLAGS are different between builtins and modules.
      
      The build system is complaining about the following:
      
      k3-cppi-desc-pool.o is added to multiple modules: icssg-prueth
      ti-am65-cpsw-nuss
      
      Introduce the new module, k3-cppi-desc-pool, to provide the common
      functions to ti-am65-cpsw-nuss and icssg-prueth.
      
      Fixes: 128d5874
      
       ("net: ti: icssg-prueth: Add ICSSG ethernet driver")
      Signed-off-by: default avatarMD Danish Anwar <danishanwar@ti.com>
      Link: https://lore.kernel.org/r/20231018064936.3146846-1-danishanwar@ti.com
      
      
      Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      a602ee31
    • Andy Shevchenko's avatar
      Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()" · 62140a1e
      Andy Shevchenko authored
      The commit breaks MMC enumeration on the Intel Merrifield
      plaform.
      
      Before:
      [   36.439057] mmc0: SDHCI controller on PCI [0000:00:01.0] using ADMA
      [   36.450924] mmc2: SDHCI controller on PCI [0000:00:01.3] using ADMA
      [   36.459355] mmc1: SDHCI controller on PCI [0000:00:01.2] using ADMA
      [   36.706399] mmc0: new DDR MMC card at address 0001
      [   37.058972] mmc2: new ultra high speed DDR50 SDIO card at address 0001
      [   37.278977] mmcblk0: mmc0:0001 H4G1d 3.64 GiB
      [   37.297300]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10
      
      After:
      [   36.436704] mmc2: SDHCI controller on PCI [0000:00:01.3] using ADMA
      [   36.436720] mmc1: SDHCI controller on PCI [0000:00:01.0] using ADMA
      [   36.463685] mmc0: SDHCI controller on PCI [0000:00:01.2] using ADMA
      [   36.720627] mmc1: new DDR MMC card at address 0001
      [   37.068181] mmc2: new ultra high speed DDR50 SDIO card at address 0001
      [   37.279998] mmcblk1: mmc1:0001 H4G1d 3.64 GiB
      [   37.302670]  mmcblk1: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10
      
      This reverts commit c153a4ed
      
      .
      
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20231017141806.535191-1-andriy.shevchenko@linux.intel.com
      
      
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      62140a1e