1. 22 Mar, 2023 2 commits
    • Li Zetao's avatar
      atm: idt77252: fix kmemleak when rmmod idt77252 · 4fe3c885
      Li Zetao authored
      There are memory leaks reported by kmemleak:
      
        unreferenced object 0xffff888106500800 (size 128):
          comm "modprobe", pid 1017, jiffies 4297787785 (age 67.152s)
          hex dump (first 32 bytes):
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
            00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
          backtrace:
            [<00000000970ce626>] __kmem_cache_alloc_node+0x20c/0x380
            [<00000000fb5f78d9>] kmalloc_trace+0x2f/0xb0
            [<000000000e947e2a>] idt77252_init_one+0x2847/0x3c90 [idt77252]
            [<000000006efb048e>] local_pci_probe+0xeb/0x1a0
          ...
      
        unreferenced object 0xffff888106500b00 (size 128):
          comm "modprobe", pid 1017, jiffies 4297787785 (age 67.152s)
          hex dump (first 32 bytes):
            00 20 3d 01 80 88 ff ff 00 20 3d 01 80 88 ff ff  . =...... =.....
            f0 23 3d 01 80 88 ff ff 00 20 3d 01 00 00 00 00  .#=...... =.....
          backtrace:
            [<00000000970ce626>] __kmem_cache_alloc_node+0x20c/0x380
            [<00000000fb5f78d9>] kmalloc_trace+0x2f/0xb0
            [<00000000f451c5be>] alloc_scq.constprop.0+0x4a/0x400 [idt77252]
            [<00000000e6313849>] idt77252_init_one+0x28cf/0x3c90 [idt77252]
      
      The root cause is traced to the vc_maps which alloced in open_card_oam()
      are not freed in close_card_oam(). The vc_maps are used to record
      open connections, so when close a vc_map in close_card_oam(), the memory
      should be freed. Moreover, the ubr0 is not closed when close a idt77252
      device, leading to the memory leak of vc_map and scq_info.
      
      Fix them by adding kfree in close_card_oam() and implementing new
      close_card_ubr0() to close ubr0.
      
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
      Reviewed-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
      Link: https://lore.kernel.org/r/20230320143318.2644630-1-lizetao1@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      4fe3c885
    • Álvaro Fernández Rojas's avatar
      net: dsa: tag_brcm: legacy: fix daisy-chained switches · 032a9540
      Álvaro Fernández Rojas authored
      When BCM63xx internal switches are connected to switches with a 4-byte
      Broadcom tag, it does not identify the packet as VLAN tagged, so it adds one
      based on its PVID (which is likely 0).
      Right now, the packet is received by the BCM63xx internal switch and the 6-byte
      tag is properly processed. The next step would to decode the corresponding
      4-byte tag. However, the internal switch adds an invalid VLAN tag after the
      6-byte tag and the 4-byte tag handling fails.
      In order to fix this we need to remove the invalid VLAN tag after the 6-byte
      tag before passing it to the 4-byte tag decoding.
      
      Fixes: 964dbf18 ("net: dsa: tag_brcm: add support for legacy tags")
      Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
      Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Link: https://lore.kernel.org/r/20230319095540.239064-1-noltari@gmail.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      032a9540
  2. 21 Mar, 2023 1 commit
  3. 20 Mar, 2023 7 commits
    • David S. Miller's avatar
      Merge branch 'ps3_gelic_net-fixes' · f36fa558
      David S. Miller authored
      Geoff Levand says:
      
      ====================
      net/ps3_gelic_net: DMA related fixes
      
      v9: Make rx_skb_size local to gelic_descr_prepare_rx.
      v8: Add more cpu_to_be32 calls.
      v7: Remove all cleanups, sync to spider net.
      v6: Reworked and cleaned up patches.
      v5: Some additional patch cleanups.
      v4: More patch cleanups.
      v3: Cleaned up patches as requested.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f36fa558
    • Geoff Levand's avatar
      net/ps3_gelic_net: Use dma_mapping_error · bebe933d
      Geoff Levand authored
      The current Gelic Etherenet driver was checking the return value of its
      dma_map_single call, and not using the dma_mapping_error() routine.
      
      Fixes runtime problems like these:
      
        DMA-API: ps3_gelic_driver sb_05: device driver failed to check map error
        WARNING: CPU: 0 PID: 0 at kernel/dma/debug.c:1027 .check_unmap+0x888/0x8dc
      
      Fixes: 02c18891 ("ps3: gigabit ethernet driver for PS3, take3")
      Reviewed-by: default avatarAlexander Duyck <alexanderduyck@fb.com>
      Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bebe933d
    • Geoff Levand's avatar
      net/ps3_gelic_net: Fix RX sk_buff length · 19b3bb51
      Geoff Levand authored
      The Gelic Ethernet device needs to have the RX sk_buffs aligned to
      GELIC_NET_RXBUF_ALIGN, and also the length of the RX sk_buffs must
      be a multiple of GELIC_NET_RXBUF_ALIGN.
      
      The current Gelic Ethernet driver was not allocating sk_buffs large
      enough to allow for this alignment.
      
      Also, correct the maximum and minimum MTU sizes, and add a new
      preprocessor macro for the maximum frame size, GELIC_NET_MAX_FRAME.
      
      Fixes various randomly occurring runtime network errors.
      
      Fixes: 02c18891 ("ps3: gigabit ethernet driver for PS3, take3")
      Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      19b3bb51
    • Tom Rix's avatar
      usb: plusb: remove unused pl_clear_QuickLink_features function · 7d722c98
      Tom Rix authored
      clang with W=1 reports
      drivers/net/usb/plusb.c:65:1: error:
        unused function 'pl_clear_QuickLink_features' [-Werror,-Wunused-function]
      pl_clear_QuickLink_features(struct usbnet *dev, int val)
      ^
      This static function is not used, so remove it.
      Signed-off-by: default avatarTom Rix <trix@redhat.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7d722c98
    • Szymon Heidrich's avatar
      net: usb: lan78xx: Limit packet length to skb->len · 7f247f5a
      Szymon Heidrich authored
      Packet length retrieved from descriptor may be larger than
      the actual socket buffer length. In such case the cloned
      skb passed up the network stack will leak kernel memory contents.
      
      Additionally prevent integer underflow when size is less than
      ETH_FCS_LEN.
      
      Fixes: 55d7de9d ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
      Signed-off-by: default avatarSzymon Heidrich <szymon.heidrich@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      7f247f5a
    • Zheng Wang's avatar
      net: qcom/emac: Fix use after free bug in emac_remove due to race condition · 6b6bc5b8
      Zheng Wang authored
      In emac_probe, &adpt->work_thread is bound with
      emac_work_thread. Then it will be started by timeout
      handler emac_tx_timeout or a IRQ handler emac_isr.
      
      If we remove the driver which will call emac_remove
        to make cleanup, there may be a unfinished work.
      
      The possible sequence is as follows:
      
      Fix it by finishing the work before cleanup in the emac_remove
      and disable timeout response.
      
      CPU0                  CPU1
      
                          |emac_work_thread
      emac_remove         |
      free_netdev         |
      kfree(netdev);      |
                          |emac_reinit_locked
                          |emac_mac_down
                          |//use netdev
      Fixes: b9b17deb ("net: emac: emac gigabit ethernet controller driver")
      Signed-off-by: default avatarZheng Wang <zyytlz.wz@163.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6b6bc5b8
    • Vladimir Oltean's avatar
      net: dsa: report rx_bytes unadjusted for ETH_HLEN · a8eff035
      Vladimir Oltean authored
      We collect the software statistics counters for RX bytes (reported to
      /proc/net/dev and to ethtool -S $dev | grep 'rx_bytes: ") at a time when
      skb->len has already been adjusted by the eth_type_trans() ->
      skb_pull_inline(skb, ETH_HLEN) call to exclude the L2 header.
      
      This means that when connecting 2 DSA interfaces back to back and
      sending 1 packet with length 100, the sending interface will report
      tx_bytes as incrementing by 100, and the receiving interface will report
      rx_bytes as incrementing by 86.
      
      Since accounting for that in scripts is quirky and is something that
      would be DSA-specific behavior (requiring users to know that they are
      running on a DSA interface in the first place), the proposal is that we
      treat it as a bug and fix it.
      
      This design bug has always existed in DSA, according to my analysis:
      commit 91da11f8 ("net: Distributed Switch Architecture protocol
      support") also updates skb->dev->stats.rx_bytes += skb->len after the
      eth_type_trans() call. Technically, prior to Florian's commit
      a86d8bec ("net: dsa: Factor bottom tag receive functions"), each and
      every vendor-specific tagging protocol driver open-coded the same bug,
      until the buggy code was consolidated into something resembling what can
      be seen now. So each and every driver should have its own Fixes: tag,
      because of their different histories until the convergence point.
      I'm not going to do that, for the sake of simplicity, but just blame the
      oldest appearance of buggy code.
      
      There are 2 ways to fix the problem. One is the obvious way, and the
      other is how I ended up doing it. Obvious would have been to move
      dev_sw_netstats_rx_add() one line above eth_type_trans(), and below
      skb_push(skb, ETH_HLEN). But DSA processing is not as simple as that.
      We count the bytes after removing everything DSA-related from the
      packet, to emulate what the packet's length was, on the wire, when the
      user port received it.
      
      When eth_type_trans() executes, dsa_untag_bridge_pvid() has not run yet,
      so in case the switch driver requests this behavior - commit
      412a1526 ("net: dsa: untag the bridge pvid from rx skbs") has the
      details - the obvious variant of the fix wouldn't have worked, because
      the positioning there would have also counted the not-yet-stripped VLAN
      header length, something which is absent from the packet as seen on the
      wire (there it may be untagged, whereas software will see it as
      PVID-tagged).
      
      Fixes: f613ed66 ("net: dsa: Add support for 64-bit statistics")
      Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      a8eff035
  4. 19 Mar, 2023 10 commits
    • Ido Schimmel's avatar
      mlxsw: core_thermal: Fix fan speed in maximum cooling state · 6d206b1e
      Ido Schimmel authored
      The cooling levels array is supposed to prevent the system fans from
      being configured below a 20% duty cycle as otherwise some of them get
      stuck at 0 RPM.
      
      Due to an off-by-one error, the last element in the array was not
      initialized, causing it to be set to zero, which in turn lead to fans
      being configured with a 0% duty cycle in maximum cooling state.
      
      Since commit 332fdf95 ("mlxsw: thermal: Fix out-of-bounds memory
      accesses") the contents of the array are static. Therefore, instead of
      fixing the initialization of the array, simply remove it and adjust
      thermal_cooling_device_ops::set_cur_state() so that the configured duty
      cycle is never set below 20%.
      
      Before:
      
       # cat /sys/class/thermal/thermal_zone0/cdev0/type
       mlxsw_fan
       # echo 10 > /sys/class/thermal/thermal_zone0/cdev0/cur_state
       # cat /sys/class/hwmon/hwmon0/name
       mlxsw
       # cat /sys/class/hwmon/hwmon0/pwm1
       0
      
      After:
      
       # cat /sys/class/thermal/thermal_zone0/cdev0/type
       mlxsw_fan
       # echo 10 > /sys/class/thermal/thermal_zone0/cdev0/cur_state
       # cat /sys/class/hwmon/hwmon0/name
       mlxsw
       # cat /sys/class/hwmon/hwmon0/pwm1
       255
      
      This bug was uncovered when the thermal subsystem repeatedly tried to
      configure the cooling devices to their maximum state due to another
      issue [1]. This resulted in the fans being stuck at 0 RPM, which
      eventually lead to the system undergoing thermal shutdown.
      
      [1] https://lore.kernel.org/netdev/ZA3CFNhU4AbtsP4G@shredder/
      
      Fixes: a421ce08 ("mlxsw: core: Extend cooling device with cooling levels")
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reviewed-by: default avatarVadim Pasternak <vadimp@nvidia.com>
      Signed-off-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6d206b1e
    • Russell King (Oracle)'s avatar
      net: sfp: fix state loss when updating state_hw_mask · 04361b8b
      Russell King (Oracle) authored
      Andrew reports that the SFF modules on one of the ZII platforms do not
      indicate link up due to the SFP code believing that LOS indicating that
      there is no signal being received from the remote end, but in fact the
      LOS signal is showing that there is signal.
      
      What makes SFF modules different from SFPs is they typically have an
      inverted LOS, which uncovered this issue. When we read the hardware
      state, we mask it with state_hw_mask so we ignore anything we're not
      interested in. However, we don't re-read when state_hw_mask changes,
      leading to sfp->state being stale.
      
      Arrange for a software poll of the module state after we have parsed
      the EEPROM in sfp_sm_mod_probe() and updated state_*_mask. This will
      generate any necessary events for signal changes for the state
      machine as well as updating sfp->state.
      Reported-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Tested-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Fixes: 8475c4b7 ("net: sfp: re-implement soft state polling setup")
      Signed-off-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      04361b8b
    • Jochen Henneberg's avatar
      net: stmmac: Fix for mismatched host/device DMA address width · 070246e4
      Jochen Henneberg authored
      Currently DMA address width is either read from a RO device register
      or force set from the platform data. This breaks DMA when the host DMA
      address width is <=32it but the device is >32bit.
      
      Right now the driver may decide to use a 2nd DMA descriptor for
      another buffer (happens in case of TSO xmit) assuming that 32bit
      addressing is used due to platform configuration but the device will
      still use both descriptor addresses as one address.
      
      This can be observed with the Intel EHL platform driver that sets
      32bit for addr64 but the MAC reports 40bit. The TX queue gets stuck in
      case of TCP with iptables NAT configuration on TSO packets.
      
      The logic should be like this: Whatever we do on the host side (memory
      allocation GFP flags) should happen with the host DMA width, whenever
      we decide how to set addresses on the device registers we must use the
      device DMA address width.
      
      This patch renames the platform address width field from addr64 (term
      used in device datasheet) to host_addr and uses this value exclusively
      for host side operations while all chip operations consider the device
      DMA width as read from the device register.
      
      Fixes: 7cfc4486 ("stmmac: intel: Configure EHL PSE0 GbE and PSE1 GbE to 32 bits DMA addressing")
      Signed-off-by: default avatarJochen Henneberg <jh@henneberg-systemdesign.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      070246e4
    • David S. Miller's avatar
      Merge branch 'mdiobus-module-owner' · 543887d7
      David S. Miller authored
      Florian Fainelli says:
      
      ====================
      ACPI/DT mdiobus module owner fixes
      
      This patch series fixes wrong mdiobus module ownership for MDIO buses
      registered from DT or ACPI.
      
      Thanks Maxime for providing the first patch and making me see that ACPI
      also had the same issue.
      
      Changes in v2:
      
      - fixed missing kdoc in the first patch
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      543887d7
    • Florian Fainelli's avatar
      net: mdio: fix owner field for mdio buses registered using ACPI · 30b605b8
      Florian Fainelli authored
      Bus ownership is wrong when using acpi_mdiobus_register() to register an
      mdio bus. That function is not inline, so when it calls
      mdiobus_register() the wrong THIS_MODULE value is captured.
      
      CC: Maxime Bizon <mbizon@freebox.fr>
      Fixes: 803ca24d ("net: mdio: Add ACPI support code for mdio")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      30b605b8
    • Maxime Bizon's avatar
      net: mdio: fix owner field for mdio buses registered using device-tree · 99669259
      Maxime Bizon authored
      Bus ownership is wrong when using of_mdiobus_register() to register an mdio
      bus. That function is not inline, so when it calls mdiobus_register() the wrong
      THIS_MODULE value is captured.
      Signed-off-by: default avatarMaxime Bizon <mbizon@freebox.fr>
      Fixes: 90eff909 ("net: phy: Allow splitting MDIO bus/device support from PHYs")
      [florian: fix kdoc, added Fixes tag]
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      99669259
    • Florian Fainelli's avatar
      net: phy: Ensure state transitions are processed from phy_stop() · 4203d840
      Florian Fainelli authored
      In the phy_disconnect() -> phy_stop() path, we will be forcibly setting
      the PHY state machine to PHY_HALTED. This invalidates the old_state !=
      phydev->state condition in phy_state_machine() such that we will neither
      display the state change for debugging, nor will we invoke the
      link_change_notify() callback.
      
      Factor the code by introducing phy_process_state_change(), and ensure
      that we process the state change from phy_stop() as well.
      
      Fixes: 5c5f626b ("net: phy: improve handling link_change_notify callback")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      4203d840
    • David S. Miller's avatar
      Merge branch '1GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue · 739cb499
      David S. Miller authored
      Tony Nguyen says:
      
      ====================
      Intel Wired LAN Driver Updates 2023-03-16 (igb, igbvf, igc)
      
      This series contains updates to igb, igbvf, and igc drivers.
      
      Lin Ma removes rtnl_lock() when disabling SRIOV on remove which was
      causing deadlock on igb.
      
      Akihiko Odaki delays enabling of SRIOV on igb to prevent early messages
      that could get ignored and clears MAC address when PF returns nack on
      reset; indicating no MAC address was assigned for igbvf.
      
      Gaosheng Cui frees IRQs in error path for igbvf.
      
      Akashi Takahiro fixes logic on checking TAPRIO gate support for igc.
      ====================
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      739cb499
    • Zheng Wang's avatar
      xirc2ps_cs: Fix use after free bug in xirc2ps_detach · e8d20c3d
      Zheng Wang authored
      In xirc2ps_probe, the local->tx_timeout_task was bounded
      with xirc2ps_tx_timeout_task. When timeout occurs,
      it will call xirc_tx_timeout->schedule_work to start the
      work.
      
      When we call xirc2ps_detach to remove the driver, there
      may be a sequence as follows:
      
      Stop responding to timeout tasks and complete scheduled
      tasks before cleanup in xirc2ps_detach, which will fix
      the problem.
      
      CPU0                  CPU1
      
                          |xirc2ps_tx_timeout_task
      xirc2ps_detach      |
        free_netdev       |
          kfree(dev);     |
                          |
                          | do_reset
                          |   //use dev
      
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarZheng Wang <zyytlz.wz@163.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e8d20c3d
    • Daniil Tatianin's avatar
      qed/qed_sriov: guard against NULL derefs from qed_iov_get_vf_info · 25143b6a
      Daniil Tatianin authored
      We have to make sure that the info returned by the helper is valid
      before using it.
      
      Found by Linux Verification Center (linuxtesting.org) with the SVACE
      static analysis tool.
      
      Fixes: f990c82c ("qed*: Add support for ndo_set_vf_trust")
      Fixes: 733def6a ("qed*: IOV link control")
      Signed-off-by: default avatarDaniil Tatianin <d-tatianin@yandex-team.ru>
      Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      25143b6a
  5. 18 Mar, 2023 4 commits
  6. 17 Mar, 2023 16 commits
    • Linus Torvalds's avatar
      Merge tag 'net-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 478a351c
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from netfilter, wifi and ipsec.
      
        A little more changes than usual, but it's pretty normal for us that
        the rc3/rc4 PRs are oversized as people start testing in earnest.
      
        Possibly an extra boost from people deploying the 6.1 LTS but that's
        more of an unscientific hunch.
      
        Current release - regressions:
      
         - phy: mscc: fix deadlock in phy_ethtool_{get,set}_wol()
      
         - virtio: vsock: don't use skbuff state to account credit
      
         - virtio: vsock: don't drop skbuff on copy failure
      
         - virtio_net: fix page_to_skb() miscalculating the memory size
      
        Current release - new code bugs:
      
         - eth: correct xdp_features after device reconfig
      
         - wifi: nl80211: fix the puncturing bitmap policy
      
         - net/mlx5e: flower:
            - fix raw counter initialization
            - fix missing error code
            - fix cloned flow attribute
      
         - ipa:
            - fix some register validity checks
            - fix a surprising number of bad offsets
            - kill FILT_ROUT_CACHE_CFG IPA register
      
        Previous releases - regressions:
      
         - tcp: fix bind() conflict check for dual-stack wildcard address
      
         - veth: fix use after free in XDP_REDIRECT when skb headroom is small
      
         - ipv4: fix incorrect table ID in IOCTL path
      
         - ipvlan: make skb->skb_iif track skb->dev for l3s mode
      
         - mptcp:
            - fix possible deadlock in subflow_error_report
            - fix UaFs when destroying unaccepted and listening sockets
      
         - dsa: mv88e6xxx: fix max_mtu of 1492 on 6165, 6191, 6220, 6250, 6290
      
        Previous releases - always broken:
      
         - tcp: tcp_make_synack() can be called from process context, don't
           assume preemption is disabled when updating stats
      
         - netfilter: correct length for loading protocol registers
      
         - virtio_net: add checking sq is full inside xdp xmit
      
         - bonding: restore IFF_MASTER/SLAVE flags on bond enslave Ethertype
           change
      
         - phy: nxp-c45-tja11xx: fix MII_BASIC_CONFIG_REV bit number
      
         - eth: i40e: fix crash during reboot when adapter is in recovery mode
      
         - eth: ice: avoid deadlock on rtnl lock when auxiliary device
           plug/unplug meets bonding
      
         - dsa: mt7530:
            - remove now incorrect comment regarding port 5
            - set PLL frequency and trgmii only when trgmii is used
      
         - eth: mtk_eth_soc: reset PCS state when changing interface types
      
        Misc:
      
         - ynl: another license adjustment
      
         - move the TCA_EXT_WARN_MSG attribute for tc action"
      
      * tag 'net-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (108 commits)
        selftests: bonding: add tests for ether type changes
        bonding: restore bond's IFF_SLAVE flag if a non-eth dev enslave fails
        bonding: restore IFF_MASTER/SLAVE flags on bond enslave ether type change
        net: renesas: rswitch: Fix GWTSDIE register handling
        net: renesas: rswitch: Fix the output value of quote from rswitch_rx()
        ethernet: sun: add check for the mdesc_grab()
        net: ipa: fix some register validity checks
        net: ipa: kill FILT_ROUT_CACHE_CFG IPA register
        net: ipa: add two missing declarations
        net: ipa: reg: include <linux/bug.h>
        net: xdp: don't call notifiers during driver init
        net/sched: act_api: add specific EXT_WARN_MSG for tc action
        Revert "net/sched: act_api: move TCA_EXT_WARN_MSG to the correct hierarchy"
        net: dsa: microchip: fix RGMII delay configuration on KSZ8765/KSZ8794/KSZ8795
        ynl: make the tooling check the license
        ynl: broaden the license even more
        tools: ynl: make definitions optional again
        hsr: ratelimit only when errors are printed
        qed/qed_mng_tlv: correctly zero out ->min instead of ->hour
        selftests: net: devlink_port_split.py: skip test if no suitable device available
        ...
      478a351c
    • Linus Torvalds's avatar
      Merge tag 'block-6.3-2023-03-16' of git://git.kernel.dk/linux · 8d3c682a
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A bit bigger than usual, as the NVMe pull request missed last weeks
        submission. In detail:
      
         - NVMe pull request via Christoph:
              - Avoid potential UAF in nvmet_req_complete (Damien Le Moal)
              - More quirks (Elmer Miroslav Mosher Golovin, Philipp Geulen)
              - Fix a memory leak in the nvme-pci probe teardown path
                (Irvin Cote)
              - Repair the MAINTAINERS entry (Lukas Bulwahn)
              - Fix handling single range discard request (Ming Lei)
              - Show more opcode names in trace events (Minwoo Im)
              - Fix nvme-tcp timeout reporting (Sagi Grimberg)
      
         - MD pull request via Song:
              - Two fixes for old issues (Neil)
              - Resource leak in device stopping (Xiao)
      
         - Bio based device stats fix (Yu)
      
         - Kill unused CONFIG_BLOCK_COMPAT (Lukas)
      
         - sunvdc missing mdesc_grab() failure check (Liang)
      
         - Fix for reversal of request ordering upon issue for certain cases
           (Jan)
      
         - null_blk timeout fixes (Damien)
      
         - Loop use-after-free fix (Bart)
      
         - blk-mq SRCU fix for BLK_MQ_F_BLOCKING devices (Chris)"
      
      * tag 'block-6.3-2023-03-16' of git://git.kernel.dk/linux:
        block: remove obsolete config BLOCK_COMPAT
        md: select BLOCK_LEGACY_AUTOLOAD
        block: count 'ios' and 'sectors' when io is done for bio-based device
        block: sunvdc: add check for mdesc_grab() returning NULL
        nvmet: avoid potential UAF in nvmet_req_complete()
        nvme-trace: show more opcode names
        nvme-tcp: add nvme-tcp pdu size build protection
        nvme-tcp: fix opcode reporting in the timeout handler
        nvme-pci: add NVME_QUIRK_BOGUS_NID for Lexar NM620
        nvme-pci: add NVME_QUIRK_BOGUS_NID for Netac NV3000
        nvme-pci: fixing memory leak in probe teardown path
        nvme: fix handling single range discard request
        MAINTAINERS: repair malformed T: entries in NVM EXPRESS DRIVERS
        block: null_blk: cleanup null_queue_rq()
        block: null_blk: Fix handling of fake timeout request
        blk-mq: fix "bad unlock balance detected" on q->srcu in __blk_mq_run_dispatch_ops
        loop: Fix use-after-free issues
        block: do not reverse request order when flushing plug list
        md: avoid signed overflow in slot_store()
        md: Free resources in __md_stop
      8d3c682a
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.3-2023-03-16' of git://git.kernel.dk/linux · b7966a5a
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - When PF_NO_SETAFFINITY was removed for io-wq threads, we kind of
         forgot about the SQPOLL thread. Remove it there as well, there's even
         less of a reason to set it there (Michal)
      
       - Fixup a confusing 'ret' setting (Li)
      
       - When MSG_RING is used to send a direct descriptor to another ring,
         it's possible to have it allocate it on the target ring rather than
         provide a specific index for it. If this is done, return the chosen
         value in the CQE, like we would've done locally (Pavel)
      
       - Fix a regression in this series on huge page bvec collapsing (Pavel)
      
      * tag 'io_uring-6.3-2023-03-16' of git://git.kernel.dk/linux:
        io_uring/rsrc: fix folio accounting
        io_uring/msg_ring: let target know allocated index
        io_uring: rsrc: Optimize return value variable 'ret'
        io_uring/sqpoll: Do not set PF_NO_SETAFFINITY on sqpoll threads
      b7966a5a
    • Linus Torvalds's avatar
      Merge tag 'pm-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 02ef7d39
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix an error code path issue in a cpuidle driver and make the
        sleepgraph utility more robust against unexpected input.
      
        Specifics:
      
         - Fix the psci_pd_init_topology() failure path in the PSCI cpuidle
           driver (Shawn Guo)
      
         - Modify the sleepgraph utility so it does not crash on binary data
           in device names (Todd Brandt)"
      
      * tag 'pm-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        pm-graph: sleepgraph: Avoid crashing on binary data in device names
        cpuidle: psci: Iterate backwards over list in psci_pd_remove()
      02ef7d39
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · abb02a82
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These add some new quirks, fix PPTT handling, fix an ACPI utility and
        correct a mistake in the ACPI documentation.
      
        Specifics:
      
         - Fix ACPI PPTT handling to avoid sleep in the atomic context when it
           is not present (Sudeep Holla)
      
         - Add 'backlight=native' DMI quirk for Dell Vostro 15 3535 to the
           ACPI video driver (Chia-Lin Kao)
      
         - Add ACPI quirks for I2C device enumeration on Lenovo Yoga Book X90
           and Acer Iconia One 7 B1-750 (Hans de Goede)
      
         - Fix handling of invalid command line option values in the ACPI
           pfrut utility (Chen Yu)
      
         - Fix references to I2C device data type in the ACPI documentation
           for device enumeration (Andy Shevchenko)"
      
      * tag 'acpi-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: tools: pfrut: Check if the input of level and type is in the right numeric range
        ACPI: PPTT: Fix to avoid sleep in the atomic context when PPTT is absent
        ACPI: x86: Add skip i2c clients quirk for Lenovo Yoga Book X90
        ACPI: x86: Add skip i2c clients quirk for Acer Iconia One 7 B1-750
        ACPI: x86: Introduce an acpi_quirk_skip_gpio_event_handlers() helper
        ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535
        ACPI: docs: enumeration: Correct reference to the I²C device data type
      abb02a82
    • Linus Torvalds's avatar
      Merge branch 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux · ba9c7791
      Linus Torvalds authored
      Pull turbostat fweaks and fixes from Len Brown:
       "Leprechaun sized fixes and tweaks touching only turbostat.
      
        'Keeping happy users happy since 2010'"
      
      * 'turbostat' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux:
        tools/power turbostat: version 2023.03.17
        tools/power turbostat: fix decoding of HWP_STATUS
        tools/power turbostat: Introduce support for EMR
        tools/power turbostat: remove stray newlines from warn/warnx strings
        tools/power turbostat: Fix /dev/cpu_dma_latency warnings
        tools/power turbostat: Provide better debug messages for failed capabilities accesses
        tools/power turbostat: update dump of SECONDARY_TURBO_RATIO_LIMIT
      ba9c7791
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.3-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 0eb392ec
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - cleanup for xen time handling
      
       - enable the VGA console in a Xen PVH dom0
      
       - cleanup in the xenfs driver
      
      * tag 'for-linus-6.3-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen: remove unnecessary (void*) conversions
        x86/PVH: obtain VGA console info in Dom0
        x86/xen/time: cleanup xen_tsc_safe_clocksource
        xen: update arch/x86/include/asm/xen/cpuid.h
      0eb392ec
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · cb80b960
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - fixes to the ASID allocator to avoid leaking stale mappings between
         tasks
      
       - fix the vmalloc fault handler to tolerate huge pages
      
      * tag 'riscv-for-linus-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        RISC-V: mm: Support huge page in vmalloc_fault()
        riscv: asid: Fixup stale TLB entry cause application crash
        Revert "riscv: mm: notify remote harts about mmu cache updates"
      cb80b960
    • Linus Torvalds's avatar
      Merge tag 's390-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · e50a8038
      Linus Torvalds authored
      Pull s390 fixes from Vasily Gorbik:
      
       - Update defconfigs
      
       - Fix early boot code by adding missing intersection check to prevent
         potential overwriting of the ipl report
      
       - Fix a use-after-free issue in s390-specific code related to PCI
         resources being retained after hot-unplugging individual functions,
         by removing the resources from the PCI bus's resource list and using
         the zpci_bar_struct's resource pointer directly
      
      * tag 's390-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390: update defconfigs
        PCI: s390: Fix use-after-free of PCI resources with per-function hotplug
        s390/ipl: add missing intersection check to ipl_report handling
      e50a8038
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 17adaeae
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix false detection of read faults, introduced by execute-only
         support
      
       - Fix a build failure when GENERIC_ALLOCATOR is not selected
      
      Thanks to Russell Currey, Randy Dunlap, Michal Suchánek, Nathan Lynch,
      and Benjamin Gray.
      
      * tag 'powerpc-6.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/mm: Fix false detection of read faults
        powerpc/pseries: RTAS work area requires GENERIC_ALLOCATOR
      17adaeae
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 2c50b0ca
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - dw_mmc-starfive: Fix initialization of the prev_err variable
      
       - sdhci_am654: Lower power-on failed message severity
      
      * tag 'mmc-v6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: dw_mmc-starfive: Fix initialization of prev_err
        mmc: sdhci_am654: lower power-on failed message severity
      2c50b0ca
    • Linus Torvalds's avatar
      Merge tag 'sound-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 97eb2d98
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Nothing surprising, a collection of small device-specific fixes.
      
        The majority of changes are for ASoC Intel stuff, while a few other
        ASoC and HD-audio fixes are found"
      
      * tag 'sound-6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (31 commits)
        ALSA: hda/ca0132: fixup buffer overrun at tuning_ctl_set()
        ALSA: asihpi: check pao in control_message()
        ASoC: hdmi-codec: only startup/shutdown on supported streams
        ASoC: da7219: Initialize jack_det_mutex
        ALSA: hda: Match only Intel devices with CONTROLLER_IN_GPU()
        ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book2 Pro
        ALSA: hda/realtek: fix speaker, mute/micmute LEDs not work on a HP platform
        ALSA: hda: intel-dsp-config: add MTL PCI id
        ASoC: SOF: IPC4: update gain ipc msg definition to align with fw
        ASoC: SOF: sof-audio: don't squelch errors in WIDGET_SETUP phase
        ASoC: SOF: Intel: hda-ctrl: re-add sleep after entering and exiting reset
        ASoC: SOF: Intel: hda-dsp: harden D0i3 programming sequence
        ASoC: SOF: ipc4-topology: set dmic dai index from copier
        ASoC: SOF: sof-audio: Fix broken early bclk feature for SSP
        ASoC: SOF: Intel: pci-tng: revert invalid bar size setting
        ASoC: SOF: topology: Fix error handling in sof_widget_ready()
        ASoC: Intel: soc-acpi: fix copy-paste issue in topology names
        ASoC: SOF: ipc4-topology: Fix incorrect sample rate print unit
        ASoC: SOF: ipc3: Check for upper size limit for the received message
        ASOC: SOF: Intel: pci-tgl: Fix device description
        ...
      97eb2d98
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-03-17' of git://anongit.freedesktop.org/drm/drm · 2cf5a401
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Seems like a pretty regular rc3, i915 and amdgpu with the usual
        selection of fixes, then a scattering of fixes across misc drivers and
        other areas:
      
        accel:
         - build fix for accel
      
        edid:
         - fix info leak in edid
      
        ttm:
         - fix NULL ptr deref
         - reference counting fix
      
        i915:
         - Fix hwmon PL1 power limit enabling
         - Fix audio ELD handling for DP MST
         - Fix PSR io and wake line calculations
         - Fix DG2 HDMI modes with 267.30 and 319.89 MHz pixel clocks
         - Fix SSEU subslice out-of-bounds access
         - Fix misuse of non-idle barriers as fence trackers
      
        amdgpu:
         - SMU 13 update
         - RDNA2 suspend/resume fix when overclocking is enabled
         - SRIOV VCN fixes
         - HDCP suspend/resume fix
         - Fix drm polling splat regression
         - Fix dirty rectangle tracking for PSR
         - Fix vangogh regression on certain BIOSes
         - Misc display fixes
         - Suspend/resume IOMMU regression fix
      
        amdkfd:
         - Fix BO offset for multi-VMA page migration
         - Fix a possible double free
         - Fix potential use after free
         - Fix process cleanup on module exit
      
        bridge:
         - fix returned array size name documentation
      
        fbdev:
         - ref-counting fix for fbdev deferred I/O
      
        virtio:
         - dma sync fix
      
        shmem-helper:
         - error path fix
      
        msm:
         - shrinker blocking fix
      
        panfrost:
         - shrinker rpm fix
      
        chipsfb:
         - fix error code
      
        meson:
         - fix 1px pink line
         - fix regulator interaction
      
        sun4i:
         - fix missing component unbind"
      
      * tag 'drm-fixes-2023-03-17' of git://anongit.freedesktop.org/drm/drm: (38 commits)
        drm/ttm: drop extra ttm_bo_put in ttm_bo_cleanup_refs
        drm/amdgpu: Don't resume IOMMU after incomplete init
        drm/amdkfd: Fixed kfd_process cleanup on module exit.
        drm/amd/display: disconnect MPCC only on OTG change
        drm/amd/display: Fix DP MST sinks removal issue
        drm/amd/display: Do not set DRR on pipe Commit
        drm/amd/display: Remove OTG DIV register write for Virtual signals.
        drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion again
        drm/bridge: Fix returned array size name for atomic_get_input_bus_fmts kdoc
        drm/amdgpu/vcn: Disable indirect SRAM on Vangogh broken BIOSes
        drm/amdgpu/nv: fix codec array for SR_IOV
        drm/amd/display: Write to correct dirty_rect
        drm/amdgpu: move poll enabled/disable into non DC path
        drm/amd/display: Fix HDCP failing to enable after suspend
        drm/amdkfd: fix potential kgd_mem UAFs
        drm/amdgpu/vcn: custom video info caps for sriov
        drm/amd/pm: Fix sienna cichlid incorrect OD volage after resume
        drm/amd/pm: bump SMU 13.0.4 driver_if header version
        drm/amdkfd: fix a potential double free in pqm_create_queue
        drm/amdkfd: Get prange->offset after svm_range_vram_node_new
        ...
      2cf5a401
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 7622976c
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Ten patches, eight in drivers and two in the core, which correct a
        regression from directory removal and add a no VPD size quirk also to
        fix a regression. All pretty small"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: mcq: Use active_reqs to check busy in clock scaling
        scsi: core: Fix a procfs host directory removal regression
        scsi: core: Add BLIST_NO_VPD_SIZE for some VDASD
        scsi: mpi3mr: Fix expander node leak in mpi3mr_remove()
        scsi: mpi3mr: Fix memory leaks in mpi3mr_init_ioc()
        scsi: mpi3mr: Fix sas_hba.phy memory leak in mpi3mr_remove()
        scsi: mpi3mr: Fix mpi3mr_hba_port memory leak in mpi3mr_remove()
        scsi: mpi3mr: Fix config page DMA memory leak
        scsi: mpi3mr: Fix throttle_groups memory leak
        scsi: mpt3sas: Fix NULL pointer access in mpt3sas_transport_port_add()
      7622976c
    • Rafael J. Wysocki's avatar
      Merge branch 'pm-cpuidle' · 1fa9d47b
      Rafael J. Wysocki authored
      Merge a PSCI cpuidle driver fix for 6.3-rc1:
      
       - Fix the psci_pd_init_topology() failure path in the PSCI cpuidle
         driver (Shawn Guo).
      
      * pm-cpuidle:
        cpuidle: psci: Iterate backwards over list in psci_pd_remove()
      1fa9d47b
    • Rafael J. Wysocki's avatar
      Merge branches 'acpi-video', 'acpi-x86', 'acpi-tools' and 'acpi-docs' · f36cc6cd
      Rafael J. Wysocki authored
      Merge a new ACPI backlight quirk, new ACPI quirks for I2C device
      enumeration on some platforms, a pfrut utility fix and an ACPI
      documentation fix for 6.3-rc3:
      
       - Add backlight=native DMI quirk for Dell Vostro 15 3535 to the ACPI
         video driver (Chia-Lin Kao).
      
       - Add ACPI quirks for I2C devices enumeration on Lenovo Yoga Book X90
         and Acer Iconia One 7 B1-750 (Hans de Goede).
      
       - Fix handling of invalid command line option values in the ACPI pfrut
         utility (Chen Yu).
      
       - Fix references to I2C device data type in the ACPI documentation for
         device enumeration (Andy Shevchenko).
      
      * acpi-video:
        ACPI: video: Add backlight=native DMI quirk for Dell Vostro 15 3535
      
      * acpi-x86:
        ACPI: x86: Add skip i2c clients quirk for Lenovo Yoga Book X90
        ACPI: x86: Add skip i2c clients quirk for Acer Iconia One 7 B1-750
        ACPI: x86: Introduce an acpi_quirk_skip_gpio_event_handlers() helper
      
      * acpi-tools:
        ACPI: tools: pfrut: Check if the input of level and type is in the right numeric range
      
      * acpi-docs:
        ACPI: docs: enumeration: Correct reference to the I²C device data type
      f36cc6cd