Commit Graph

6158 Commits

Author SHA1 Message Date
Felix Fietkau
94eb140716 kernel: fix kernel warning and network issue in the backlog threading patch
Fixes enabling it early during the boot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-11 23:13:29 +08:00
Jan-Niklas Burfeind
d9c821597d sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-05-11 23:10:55 +08:00
Robert Marko
4fc044df14 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This replaces the 160MHz with the upstreamed one, fixes 6GHz only WIPHY
registration, allows SAR usage on WCN6750 and plenty of REO fixes.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-10 22:00:09 +08:00
Kabuli Chana
71a836b056 mwlwifi: update to version 10.3.9.1-20230429
resolve disconnect issue, upstream PR412

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
2023-05-10 21:57:16 +08:00
AmadeusGhost
07ad0eefeb autocore: ethinfo: add dsa display support
Support display any interface name for dsa.
Drop ipq sfp workaround which is not needed.
Add workaround for br* (only this repo needs).
2023-05-09 23:57:26 +08:00
AmadeusGhost
416eefadb9 mtwifi/mt7603e: enable wifi led by default 2023-05-09 23:50:22 +08:00
AmadeusGhost
0f270a2436 ramips: 5.10: add basic dsa offload for mt7621 2023-05-09 00:29:19 +08:00
AmadeusGhost
ef12a97354 ramips: mt7621: add kernel 5.10 support with mtk_hnat 2023-05-08 23:50:09 +08:00
Shiji Yang
0db2337562 ramips: backport mt7621 PCIs initialization delay patch
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Some devices like ZBT WE1326 and ZBT WF3526-P and some Netgear models need
to delay phy port initialization after calling the mt7621_pcie_init_port()
driver function to get into reliable boots for both warm and hard resets.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-05-08 23:38:36 +08:00
Chuanhong Guo
990cd1b3f1 ramips: mt7621: do memory detection on KSEG1
It's reported that current memory detection code occasionally detects
larger memory under some bootloaders.
Current memory detection code tests whether address space wraps around
on KSEG0, which is unreliable because it's cached.

Rewrite memory size detection to perform the same test on KSEG1 instead.
While at it, this patch also does the following two things:
1. use a fixed pattern instead of a random function pointer as the magic
   value.
2. add an additional memory write and a second comparison as part of the
   test to prevent possible smaller memory detection result due to
   leftover values in memory.

Fixes: 6d91ddf517 ("ramips: mt7621: add support for memory detection")
Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2023-05-08 23:35:21 +08:00
zxlhhyccc
258cc2154e
shortcut-fe: use tcp_be_liberal (#11188) 2023-05-07 23:50:45 +08:00
coolsnowwolf
4fbb5202f4 mt76: reseve for kernel 5.4 2023-05-07 02:00:08 +08:00
Daniel Golle
4fc24cc4ad mt76: add support for MT7981
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-06 00:18:36 +08:00
AmadeusGhost
081798a6ff mt76: add back kernel 5.4 support
Also refresh all patches.
2023-05-06 00:16:39 +08:00
coolsnowwolf
22de4c9868 kernel: bump 5.15 to 5.15.110 2023-05-05 13:37:38 +08:00
coolsnowwolf
f953b064c8 generic: 6.1: add MHI SBL callback for ath11k 2023-05-05 13:11:46 +08:00
Robert Marko
6402a2fa03 generic: 5.15: add MHI SBL callback for ath11k
This adds the MHI SBL callback that ath11k will utilize in order to
support multiple PCI cards or AHB+PCI combo which currently does not
work due to QRTR ID-s conflicting.

This is a prerequisite for the mac80211 patch targeting ath11k as it
uses MHI from kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-05 12:38:14 +08:00
Eneas U de Queiroz
4155fca311 openssl: fix variable reference in conffiles
Fix the trivial abscence of $() when assigning engine config files to
the main libopenssl-config package even if the corresponding engines
were not built into the main library.

This is mostly cosmetic, since scripts/ipkg-build tests the file's
presence before it is actually included in the package's conffiles.

Fixes: 30b0351039 "openssl: configure engine packages during install"
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:36:22 +08:00
Eneas U de Queiroz
99a4abd0ff openssl: fix CVE-2023-464 and CVE-2023-465
Apply two patches fixing low-severity vulnerabilities related to
certificate policies validation:

- Excessive Resource Usage Verifying X.509 Policy Constraints
  (CVE-2023-0464)
  Severity: Low
  A security vulnerability has been identified in all supported versions
  of OpenSSL related to the verification of X.509 certificate chains
  that include policy constraints.  Attackers may be able to exploit
  this vulnerability by creating a malicious certificate chain that
  triggers exponential use of computational resources, leading to a
  denial-of-service (DoS) attack on affected systems.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

- Invalid certificate policies in leaf certificates are silently ignored
  (CVE-2023-0465)
  Severity: Low
  Applications that use a non-default option when verifying certificates
  may be vulnerable to an attack from a malicious CA to circumvent
  certain checks.
  Invalid certificate policies in leaf certificates are silently ignored
  by OpenSSL and other certificate policy checks are skipped for that
  certificate.  A malicious CA could use this to deliberately assert
  invalid certificate policies in order to circumvent policy checking on
  the certificate altogether.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

Note: OpenSSL also released a fix for low-severity security advisory
CVE-2023-466.  It is not included here because the fix only changes the
documentation, which is not built nor included in any OpenWrt package.

Due to the low-severity of these issues, there will be not be an
immediate new release of OpenSSL.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:35:32 +08:00
AmadeusGhost
679e2ae168 iwinfo: refresh ralink patch 2023-05-04 17:26:04 +08:00
AmadeusGhost
2b5fdd941c network: sync wireless source code 2023-05-04 17:23:39 +08:00
Felix Fietkau
3167333946 mac80211: update to v6.1.24
Drop patches accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-04 17:20:37 +08:00
AmadeusGhost
26f3634631 rockchip: add h68k/h69k hardware v2 support
Hard-coded PHY id due to hardware problem.
2023-05-01 21:08:28 +08:00
AmadeusGhost
27cc27f2ac rockchip: enable photonicat modem power
Fixes: #10859
2023-05-01 21:05:12 +08:00
coolsnowwolf
7c84256de9 Version update to R23.5.1 2023-04-29 13:18:37 +08:00
aakkll
4f7eb15359
kernel: bump to 5.4.242, 6.1.26 (#11163)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-04-29 13:13:03 +08:00
Felix Fietkau
585c2ca50e kernel: backport fix for a page pool related race condition
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:05:38 +08:00
Felix Fietkau
b204228846 kernel: fix mtk flow offload list corruption issue with l2 flows
The same node was accidentally used for two different lists, causing an
invalid pointer chain.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:03:16 +08:00
Felix Fietkau
28961f404c kernel: add support for threaded network backlog processing
This can improve load balancing by pushing backlog (and RPS) processing
to separate threads, allowing the scheduler to distribute the load.
It can be enabled with: echo 1 > /proc/sys/net/core/backlog_threaded

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:01:34 +08:00
Felix Fietkau
cc968a5b63 kernel: enable conntrack counter updates for iptables xt_FLOWOFFLOAD
Ensures that packet/byte counters in /proc/net/nf_conntrack are updated

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:08:06 +08:00
Felix Fietkau
3a82ee8b05 kernel: fix mediatek ppe flow accounting for mt7622 and older
v1 hardware uses a different enable bit for hardware counters

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:05:25 +08:00
Felix Fietkau
2352fe0f39 kernel: report mediatek ppe flow stats incrementally
Fixes wrong counter values in conntrack stats

Fixes: aa2777145f8d ("kernel: improve mtk ppe flow accounting")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:03:22 +08:00
Felix Fietkau
6fe2a421cc kernel: improve mtk ppe flow accounting
Properly track L2 flows, and ensure that stale data gets cleared

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-27 00:01:09 +08:00
Felix Fietkau
c39fd09bc1 mediatek: add kernel code for supporting offloading wlan->eth and wlan->wlan flows
Will be enabled by an upcoming mt76 update

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:58:23 +08:00
Felix Fietkau
991dd40dbc kernel: update mtk ppe flow accounting patch to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:56:13 +08:00
Felix Fietkau
640d665ce5 kernel: update flow offload fix based on upstream suggestions
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:55:06 +08:00
Felix Fietkau
85663da356 kernel: move mediatek flow offload refcount fix and fix a logic error
Move it to pending, since it wasn't actually accepted upstream yet.
Fixes potential issues when doing offload between multiple MACs.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-26 23:54:22 +08:00
Felix Fietkau
a213014d18 mediatek: add missing DTS entries for WED on MT7986
Needed to support WLAN offloading

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-25 23:56:21 +08:00
Lorenzo Bianconi
4db1ff2145 mediatek: filogic: move ilm, dlm and cpu_boot in dedicated nodes
This fixes issues with legacy boot loaders that don't process reserved memory
regions outside of system RAM

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-25 23:54:50 +08:00
coolsnowwolf
d86f684586 Merge branch 'master' of https://github.com/coolsnowwolf/lede 2023-04-24 15:02:41 +08:00
coolsnowwolf
e3e13ed422 target: add EFI support to armvirt 2023-04-24 15:02:30 +08:00
Felix Fietkau
433de917cc mediatek: backport more WED upstream fixes
Fixes hang if the WO firmware can't be loaded

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:05:08 +08:00
Felix Fietkau
55b0ae4d4e kernel: backport upstream mtk_eth_soc fixes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:03:07 +08:00
Felix Fietkau
0807295426 kernel: move accepted mtk_eth_soc patches to generic-backport
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-24 00:01:34 +08:00
Felix Fietkau
c9a0d92a3c kernel: fix mtk dsa tag padding
The padding intended to avoid corrupted non-zero padding payload was
accidentally adding too many padding bytes, tripping up some setups.
Fix this by using eth_skb_pad instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-23 23:55:08 +08:00
Felix Fietkau
464d31eaa7 kernel: fix corrupted padding on small packets with mt753x dsa
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-23 23:53:19 +08:00
Andrew Sim
702087ab30 ksmbd: update to latest 3.4.8 release
Changelog: https://github.com/cifsd-team/ksmbd/releases/tag/3.4.8

Signed-off-by: Andrew Sim <andrewsimz@gmail.com>
2023-04-22 23:54:32 +08:00
billclock
55e6f10375
linux-firmware: add missing files for i915-firmware 2023-04-22 23:32:20 +08:00
John Audia
9d124b9936 kernel: bump 5.15 to 5.15.105
All other patches automatically rebased.

Build system: x86_64
Build-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3
Run-tested: bcm2711/RPi4B, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-04-21 00:11:35 +08:00
aakkll
0a2b5b6076 kernel: bump to 5.4.241, 6.1.25 2023-04-21 00:09:22 +08:00