]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: bump 6.12 to 6.12.48 20096/head
authorGoetz Goerisch <ggoerisch@gmail.com>
Fri, 19 Sep 2025 18:36:43 +0000 (20:36 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 21 Sep 2025 10:14:36 +0000 (12:14 +0200)
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.12.48

Remove upstreamed patches:
generic/backport-6.12/630-v6.17-bpf-Allow-fall-back-to-interpreter-for-programs-with.patch [1]

All other patches auto-refreshed.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.12.48&id=82967254a92e3c5a832f178ef7e7fad4c9ac3d34

Build system: x86/64
Build-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc
Run-tested: flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64-glibc

Tested-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Goetz Goerisch <ggoerisch@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20096
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/bcm27xx/patches-6.12/950-0331-serial-sc16is7xx-Read-modem-line-state-at-startup.patch
target/linux/bcm27xx/patches-6.12/950-0685-nvme-pci-Disable-Host-Memory-Buffer-usage.patch
target/linux/bcm27xx/patches-6.12/950-0702-serial-sc16is7xx-announce-support-for-SER_RS485_RTS_.patch
target/linux/generic/backport-6.12/630-v6.17-bpf-Allow-fall-back-to-interpreter-for-programs-with.patch [deleted file]
target/linux/generic/kernel-6.12
target/linux/generic/pending-6.12/701-netfilter-nf_tables-ignore-EOPNOTSUPP-on-flowtable-d.patch
target/linux/realtek/patches-6.12/700-dsa-mdio-increase-max-ports-for-rtl839x-rtl931x.patch
target/linux/starfive/patches-6.12/0013-drivers-nvme-Add-precheck-and-delay-for-CQE-pending-.patch

index 57945f6e8bc48e60712c7895e7adf11b2c96b1b3..686aba0ecf5cca56dea5a7b3a7b826165eb685b1 100644 (file)
@@ -16,7 +16,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
 
 --- a/drivers/tty/serial/sc16is7xx.c
 +++ b/drivers/tty/serial/sc16is7xx.c
-@@ -1206,6 +1206,9 @@ static int sc16is7xx_startup(struct uart
+@@ -1196,6 +1196,9 @@ static int sc16is7xx_startup(struct uart
              SC16IS7XX_IER_MSI_BIT;
        sc16is7xx_port_write(port, SC16IS7XX_IER_REG, val);
  
index 5ae8f6c9665cbfe6bc40f5c524b21933c6be9e3e..a299c6c57e5546789d784caa6ceea10cd7f05ae4 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
 
 --- a/drivers/nvme/host/pci.c
 +++ b/drivers/nvme/host/pci.c
-@@ -2103,6 +2103,7 @@ static void nvme_free_host_mem(struct nv
+@@ -2106,6 +2106,7 @@ static void nvme_free_host_mem(struct nv
        dev->nr_host_mem_descs = 0;
  }
  
@@ -26,7 +26,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
  static int __nvme_alloc_host_mem(struct nvme_dev *dev, u64 preferred,
                u32 chunk_size)
  {
-@@ -2171,9 +2172,11 @@ out:
+@@ -2174,9 +2175,11 @@ out:
        dev->host_mem_descs = NULL;
        return -ENOMEM;
  }
@@ -38,7 +38,7 @@ Signed-off-by: Phil Elwell <phil@raspberrypi.com>
        u64 min_chunk = min_t(u64, preferred, PAGE_SIZE * MAX_ORDER_NR_PAGES);
        u64 hmminds = max_t(u32, dev->ctrl.hmminds * 4096, PAGE_SIZE * 2);
        u64 chunk_size;
-@@ -2186,6 +2189,7 @@ static int nvme_alloc_host_mem(struct nv
+@@ -2189,6 +2192,7 @@ static int nvme_alloc_host_mem(struct nv
                        nvme_free_host_mem(dev);
                }
        }
index 5de1b1c4ac09252c1de731cc7e316dc2ee864ae9..7a8b37a00db680d803ffee3756caf3929684fbcf 100644 (file)
@@ -31,7 +31,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 --- a/drivers/tty/serial/sc16is7xx.c
 +++ b/drivers/tty/serial/sc16is7xx.c
-@@ -1478,7 +1478,7 @@ static int sc16is7xx_setup_mctrl_ports(s
+@@ -1468,7 +1468,7 @@ static int sc16is7xx_setup_mctrl_ports(s
  }
  
  static const struct serial_rs485 sc16is7xx_rs485_supported = {
diff --git a/target/linux/generic/backport-6.12/630-v6.17-bpf-Allow-fall-back-to-interpreter-for-programs-with.patch b/target/linux/generic/backport-6.12/630-v6.17-bpf-Allow-fall-back-to-interpreter-for-programs-with.patch
deleted file mode 100644 (file)
index 0100e2b..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-From: KaFai Wan <kafai.wan@linux.dev>
-Date: Tue, 9 Sep 2025 22:46:14 +0800
-Subject: [PATCH] bpf: Allow fall back to interpreter for programs with stack
- size <= 512
-
-OpenWRT users reported regression on ARMv6 devices after updating to latest
-HEAD, where tcpdump filter:
-
-tcpdump "not ether host 3c37121a2b3c and not ether host 184ecbca2a3a \
-and not ether host 14130b4d3f47 and not ether host f0f61cf440b7 \
-and not ether host a84b4dedf471 and not ether host d022be17e1d7 \
-and not ether host 5c497967208b and not ether host 706655784d5b"
-
-fails with warning: "Kernel filter failed: No error information"
-when using config:
- # CONFIG_BPF_JIT_ALWAYS_ON is not set
- CONFIG_BPF_JIT_DEFAULT_ON=y
-
-The issue arises because commits:
-1. "bpf: Fix array bounds error with may_goto" changed default runtime to
-   __bpf_prog_ret0_warn when jit_requested = 1
-2. "bpf: Avoid __bpf_prog_ret0_warn when jit fails" returns error when
-   jit_requested = 1 but jit fails
-
-This change restores interpreter fallback capability for BPF programs with
-stack size <= 512 bytes when jit fails.
-
-Reported-by: Felix Fietkau <nbd@nbd.name>
-Closes: https://lore.kernel.org/bpf/2e267b4b-0540-45d8-9310-e127bf95fc63@nbd.name/
-Fixes: 6ebc5030e0c5 ("bpf: Fix array bounds error with may_goto")
-Signed-off-by: KaFai Wan <kafai.wan@linux.dev>
-Acked-by: Eduard Zingerman <eddyz87@gmail.com>
-Link: https://lore.kernel.org/r/20250909144614.2991253-1-kafai.wan@linux.dev
-Signed-off-by: Alexei Starovoitov <ast@kernel.org>
----
-
---- a/kernel/bpf/core.c
-+++ b/kernel/bpf/core.c
-@@ -2299,8 +2299,7 @@ static unsigned int __bpf_prog_ret0_warn
-                                        const struct bpf_insn *insn)
- {
-       /* If this handler ever gets executed, then BPF_JIT_ALWAYS_ON
--       * is not working properly, or interpreter is being used when
--       * prog->jit_requested is not 0, so warn about it!
-+       * is not working properly, so warn about it!
-        */
-       WARN_ON_ONCE(1);
-       return 0;
-@@ -2401,8 +2400,9 @@ out:
-       return ret;
- }
--static void bpf_prog_select_func(struct bpf_prog *fp)
-+static bool bpf_prog_select_interpreter(struct bpf_prog *fp)
- {
-+      bool select_interpreter = false;
- #ifndef CONFIG_BPF_JIT_ALWAYS_ON
-       u32 stack_depth = max_t(u32, fp->aux->stack_depth, 1);
-       u32 idx = (round_up(stack_depth, 32) / 32) - 1;
-@@ -2411,15 +2411,16 @@ static void bpf_prog_select_func(struct
-        * But for non-JITed programs, we don't need bpf_func, so no bounds
-        * check needed.
-        */
--      if (!fp->jit_requested &&
--          !WARN_ON_ONCE(idx >= ARRAY_SIZE(interpreters))) {
-+      if (idx < ARRAY_SIZE(interpreters)) {
-               fp->bpf_func = interpreters[idx];
-+              select_interpreter = true;
-       } else {
-               fp->bpf_func = __bpf_prog_ret0_warn;
-       }
- #else
-       fp->bpf_func = __bpf_prog_ret0_warn;
- #endif
-+      return select_interpreter;
- }
- /**
-@@ -2438,7 +2439,7 @@ struct bpf_prog *bpf_prog_select_runtime
-       /* In case of BPF to BPF calls, verifier did all the prep
-        * work with regards to JITing, etc.
-        */
--      bool jit_needed = fp->jit_requested;
-+      bool jit_needed = false;
-       if (fp->bpf_func)
-               goto finalize;
-@@ -2447,7 +2448,8 @@ struct bpf_prog *bpf_prog_select_runtime
-           bpf_prog_has_kfunc_call(fp))
-               jit_needed = true;
--      bpf_prog_select_func(fp);
-+      if (!bpf_prog_select_interpreter(fp))
-+              jit_needed = true;
-       /* eBPF JITs can rewrite the program in case constant
-        * blinding is active. However, in case of error during
index db2569539485dc11586ac785f15751eb58c5bcc9..dd7f683f1abc07e79adad09fb522f5d6bdf27f52 100644 (file)
@@ -1,2 +1,2 @@
-LINUX_VERSION-6.12 = .47
-LINUX_KERNEL_HASH-6.12.47 = e82fe40871743048226987bd349ef107168b15aab90140e872ca4ed470922e25
+LINUX_VERSION-6.12 = .48
+LINUX_KERNEL_HASH-6.12.48 = 5bf9eb676751bf48978e38363c772298b41a75336d5038ed6d37012399471db2
index 2ab483d6c4735b5be9f1c9357169f9d979d4f390..a2d9a6505c4df221bf76250536ad9a55b5ade214 100644 (file)
@@ -18,7 +18,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 
 --- a/net/netfilter/nf_tables_api.c
 +++ b/net/netfilter/nf_tables_api.c
-@@ -8638,7 +8638,7 @@ static int nft_register_flowtable_net_ho
+@@ -8666,7 +8666,7 @@ static int nft_register_flowtable_net_ho
                err = flowtable->data.type->setup(&flowtable->data,
                                                  hook->ops.dev,
                                                  FLOW_BLOCK_BIND);
index f7d2371554e5bea414744c9cc64d5b5795f7a207..230b8bcd45df4c5efa478eeac97b450a4dca185e 100644 (file)
@@ -132,7 +132,7 @@ Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
        return 0;
 --- a/drivers/net/phy/mdio_bus.c
 +++ b/drivers/net/phy/mdio_bus.c
-@@ -611,7 +611,7 @@ static int mdiobus_scan_bus_c22(struct m
+@@ -612,7 +612,7 @@ static int mdiobus_scan_bus_c22(struct m
        int i;
  
        for (i = 0; i < PHY_MAX_ADDR; i++) {
@@ -141,7 +141,7 @@ Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
                        struct phy_device *phydev;
  
                        phydev = mdiobus_scan_c22(bus, i);
-@@ -627,7 +627,7 @@ static int mdiobus_scan_bus_c45(struct m
+@@ -628,7 +628,7 @@ static int mdiobus_scan_bus_c45(struct m
        int i;
  
        for (i = 0; i < PHY_MAX_ADDR; i++) {
index 48bce3737017618710a639db7678e4d6087fb680..ef84c85305f30f4675f5b5e6faaff0a94f43a5a2 100644 (file)
@@ -22,7 +22,7 @@ Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
  
  #include "trace.h"
  #include "nvme.h"
-@@ -1153,6 +1154,15 @@ static inline int nvme_poll_cq(struct nv
+@@ -1156,6 +1157,15 @@ static inline int nvme_poll_cq(struct nv
  {
        int found = 0;