Skip to content
  1. Apr 13, 2023
  2. Apr 12, 2023
  3. Apr 11, 2023
    • Aloka Dixit's avatar
      wifi: mac80211: set EHT support flag in AP mode · e3e0ca32
      Aloka Dixit authored
      
      
      Set 'eht_support' flag if EHT capabilities are present.
      
      Signed-off-by: default avatarAloka Dixit <quic_alokad@quicinc.com>
      Link: https://lore.kernel.org/r/20230410200332.32265-1-quic_alokad@quicinc.com
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      e3e0ca32
    • Eric Dumazet's avatar
      wifi: mac80211_hwsim: fix potential NULL deref in hwsim_pmsr_report_nl() · 2bef4d1f
      Eric Dumazet authored
      syzbot reported a NULL dereference caused by a missing check
      in hwsim_pmsr_report_nl(), and bisected the issue to cited commit.
      
      v2: test the nlattr before using nla_data() on it (Simon Horman)
      
      general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
      KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
      CPU: 0 PID: 5084 Comm: syz-executor104 Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
      Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
      RIP: 0010:jhash+0x339/0x610 include/linux/jhash.h:95
      Code: 83 fd 01 0f 84 5f ff ff ff eb de 83 fd 05 74 3a e8 ac f5 71 fd 48 8d 7b 05 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 96 02 00 00
      RSP: 0018:ffffc90003abf298 EFLAGS: 00010202
      RAX: dffffc0000000000 RBX: 0000000000000004 RCX: 0000000000000000
      RDX: 0000000000000001 RSI: ffffffff84111ba4 RDI: 0000000000000009
      RBP: 0000000000000006 R08: 0000000000000005 R09: 000000000000000c
      R10: 0000000000000006 R11: 0000000000000000 R12: 000000004d2c27cd
      R13: 000000002bd9e6c2 R14: 000000002bd9e6c2 R15: 000000002bd9e6c2
      FS: 0000555556847300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
      CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: 000000000045ad50 CR3: 0000000078aa6000 CR4: 00000000003506f0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
      Call Trace:
      <TASK>
      rht_key_hashfn include/linux/rhashtable.h:159 [inline]
      __rhashtable_lookup include/linux/rhashtable.h:604 [inline]
      rhashtable_lookup include/linux/rhashtable.h:646 [inline]
      rhashtable_lookup_fast include/linux/rhashtable.h:672 [inline]
      get_hwsim_data_ref_from_addr+0xb9/0x600 drivers/net/wireless/virtual/mac80211_hwsim.c:757
      hwsim_pmsr_report_nl+0xe7/0xd50 drivers/net/wireless/virtual/mac80211_hwsim.c:3764
      genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0 net/netlink/genetlink.c:968
      genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
      genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065
      netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2572
      genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076
      netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
      netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
      netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
      sock_sendmsg_nosec net/socket.c:724 [inline]
      sock_sendmsg+0xde/0x190 net/socket.c:747
      ____sys_sendmsg+0x71c/0x900 net/socket.c:2501
      ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
      __sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
      do_syscall_x64 arch/x86/entry/common.c:50 [inline]
      do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
      entry_SYSCALL_64_after_hwframe+0x63/0xcd
      
      Fixes: 2af3b2a6
      
       ("mac80211_hwsim: add PMSR report support via virtio")
      Reported-by: default avatarsyzbot <syzkaller@googlegroups.com>
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Jaewan Kim <jaewan@google.com>
      Cc: Johannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Reviewed-by: default avatarJaewan Kim <jaewan@google.com>
      Link: https://lore.kernel.org/r/20230404171658.917361-1-edumazet@google.com
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      2bef4d1f
    • Gregory Greenman's avatar
      wifi: iwlwifi: fix duplicate entry in iwl_dev_info_table · fc3c2f0e
      Gregory Greenman authored
      There're two identical entries for ax1650 device in
      iwl_dev_info_table. Remove one of the duplicate entries.
      
      Fixes: 953e66a7
      
       ("iwlwifi: add new ax1650 killer device")
      Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
      Link: https://lore.kernel.org/r/20230410140721.897683-2-gregory.greenman@intel.com
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      fc3c2f0e
    • Gregory Greenman's avatar
      wifi: iwlwifi: mvm: fix the order of TIMING_MEASUREMENT notifications · d8f97559
      Gregory Greenman authored
      Host commands and notifications are expected to be ordered in
      iwl_mvm_groups array. Fix the order of two new TIMING_MEASUREMENT
      notifications.
      
      Fixes: c7eca79d
      
       ("wifi: iwlwifi: mvm: report hardware timestamps in RX/TX status")
      Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/linux-wireless/20230331175121.GA3127046@dev-arch.thelio-3990X/
      Signed-off-by: default avatarGregory Greenman <gregory.greenman@intel.com>
      Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
      Link: https://lore.kernel.org/r/20230410140721.897683-1-gregory.greenman@intel.com
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      d8f97559
  4. Apr 06, 2023
    • Shenwei Wang's avatar
      net: stmmac: dwmac-imx: use platform specific reset for imx93 SoCs · b536f32b
      Shenwei Wang authored
      
      
      The patch addresses an issue with the reset logic on the i.MX93 SoC, which
      requires configuration of the correct interface speed under RMII mode to
      complete the reset. The patch implements a fix_soc_reset function and uses
      it specifically for the i.MX93 SoCs.
      
      Reviewed-by: default avatarFabio Estevam <festevam@gmail.com>
      Signed-off-by: default avatarShenwei Wang <shenwei.wang@nxp.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Link: https://lore.kernel.org/r/20230403222302.328262-2-shenwei.wang@nxp.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b536f32b
    • Shenwei Wang's avatar
      net: stmmac: add support for platform specific reset · 10739ea3
      Shenwei Wang authored
      
      
      This patch adds support for platform-specific reset logic in the
      stmmac driver. Some SoCs require a different reset mechanism than
      the standard dwmac IP reset. To support these platforms, a new function
      pointer 'fix_soc_reset' is added to the plat_stmmacenet_data structure.
      The stmmac_reset in hwif.h is modified to call the 'fix_soc_reset'
      function if it exists. This enables the driver to use the platform-specific
      reset logic when necessary.
      
      Signed-off-by: default avatarShenwei Wang <shenwei.wang@nxp.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Link: https://lore.kernel.org/r/20230403222302.328262-1-shenwei.wang@nxp.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      10739ea3
    • Pedro Tammela's avatar
      net/sched: sch_mqprio: use netlink payload helpers · 8b0f2565
      Pedro Tammela authored
      
      
      For the sake of readability, use the netlink payload helpers from
      the 'nla_get_*()' family to parse the attributes.
      
      tdc results:
      1..5
      ok 1 9903 - Add mqprio Qdisc to multi-queue device (8 queues)
      ok 2 453a - Delete nonexistent mqprio Qdisc
      ok 3 5292 - Delete mqprio Qdisc twice
      ok 4 45a9 - Add mqprio Qdisc to single-queue device
      ok 5 2ba9 - Show mqprio class
      
      Acked-by: default avatarJamal Hadi Salim <jhs@mojatatu.com>
      Signed-off-by: default avatarPedro Tammela <pctammela@mojatatu.com>
      Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
      Link: https://lore.kernel.org/r/20230404203449.1627033-1-pctammela@mojatatu.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      8b0f2565
    • Rob Herring's avatar
      dt-bindings: net: dsa: brcm,sf2: Drop unneeded "#address-cells/#size-cells" · f0378976
      Rob Herring authored
      
      
      There's no need for "#address-cells/#size-cells" in the brcm,sf2 node as
      no immediate child nodes have an address. What was probably intended was
      to put them in the 'ports' node, but that's not necessary as that is
      covered by ethernet-switch.yaml via dsa.yaml.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Link: https://lore.kernel.org/r/20230404204152.635400-1-robh@kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f0378976
    • Rob Herring's avatar
      dt-bindings: net: ethernet-switch: Make "#address-cells/#size-cells" required · c8f1f2e9
      Rob Herring authored
      
      
      The schema doesn't allow for a single (unaddressed) ethernet port node
      nor does a single port switch make much sense. So if there's always
      multiple child nodes, "#address-cells" and "#size-cells" should be
      required.
      
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      Reviewed-by: default avatarVladimir Oltean <olteanv@gmail.com>
      Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      Link: https://lore.kernel.org/r/20230404204213.635773-1-robh@kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c8f1f2e9
    • Jakub Kicinski's avatar
      Merge tag 'wireless-next-2023-04-05' of... · acd11255
      Jakub Kicinski authored
      
      Merge tag 'wireless-next-2023-04-05' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next
      
      Kalle Valo says:
      
      ====================
      wireless-next patches for v6.3
      
      Smaller pull request this time, sending this early to fix the conflict
      in mac80211. Nothing really special this time, only smaller changes.
      
       * enable Wi-Fi 7 (EHT) mesh support
      
      * tag 'wireless-next-2023-04-05' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next: (37 commits)
        wifi: rt2x00: Fix memory leak when handling surveys
        wifi: b43legacy: Remove the unused function prev_slot()
        wifi: rtw89: Remove redundant pci_clear_master
        wifi: rtw89: fix potential race condition between napi_init and napi_enable
        wifi: rtw89: config EDCCA threshold during scan to prevent TX failed
        wifi: rtw89: fix incorrect channel info during scan due to ppdu_sts filtering
        wifi: rtw89: remove superfluous H2C of join_info
        wifi: rtw89: set data lowest rate according to AP supported rate
        wifi: rtw89: add counters of register-based H2C/C2H
        wifi: rtw89: coex: Update Wi-Fi Bluetooth coexistence version to 7.0.1
        wifi: rtw89: coex: Add report control v5 variation
        wifi: rtw89: coex: Update RTL8852B LNA2 hardware parameter
        wifi: rtw89: coex: Not to enable firmware report when WiFi is power saving
        wifi: rtw89: coex: Add LPS protocol radio state for RTL8852B
        bcma: remove unused mips_read32 function
        bcma: Use of_address_to_resource()
        wifi: mwifiex: remove unused evt_buf variable
        wifi: brcmsmac: ampdu: remove unused suc_mpdu variable
        wifi: rtlwifi: fix incorrect error codes in rtl_debugfs_set_write_reg()
        wifi: rtlwifi: fix incorrect error codes in rtl_debugfs_set_write_rfreg()
        ...
      ====================
      
      Link: https://lore.kernel.org/r/20230405111037.4792BC43443@smtp.kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      acd11255
    • Jakub Kicinski's avatar
      Merge tag 'linux-can-next-for-6.4-20230404-2' of... · 2acbeb5d
      Jakub Kicinski authored
      
      Merge tag 'linux-can-next-for-6.4-20230404-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next
      
      Marc Kleine-Budde says:
      
      ====================
      pull-request: can-next 2023-04-04-2
      
      The first patch is by Oliver Hartkopp and makes the maximum pdu size
      of the CAN ISOTP protocol configurable.
      
      The following 5 patches are by Dario Binacchi and add support for the
      bxCAN controller by ST.
      
      Geert Uytterhoeven's patch for the rcar_canfd driver fixes a sparse
      warning.
      
      Peng Fan's patch adds an optional power-domains property to the
      flexcan device tree binding.
      
      Frank Jungclaus adds support for CAN_CTRLMODE_BERR_REPORTING to the
      esd_usb driver.
      
      The last patch is by Oliver Hartkopp and converts the USB IDs of the
      kvaser_usb driver to hexadecimal values.
      
      * tag 'linux-can-next-for-6.4-20230404-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can-next:
        kvaser_usb: convert USB IDs to hexadecimal values
        can: esd_usb: Add support for CAN_CTRLMODE_BERR_REPORTING
        dt-bindings: can: fsl,flexcan: add optional power-domains property
        can: rcar_canfd: rcar_canfd_probe(): fix plain integer in transceivers[] init
        can: bxcan: add support for ST bxCAN controller
        ARM: dts: stm32: add pin map for CAN controller on stm32f4
        ARM: dts: stm32: add CAN support on stm32f429
        dt-bindings: net: can: add STM32 bxcan DT bindings
        dt-bindings: arm: stm32: add compatible for syscon gcan node
        can: isotp: add module parameter for maximum pdu size
      ====================
      
      Link: https://lore.kernel.org/r/20230404145908.1714400-1-mkl@pengutronix.de
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      2acbeb5d
  5. Apr 05, 2023