Skip to content

Commit 37f94d1

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: x86: add CheShi R69S ( Cnction N4500 ) support (coolsnowwolf#10007) rockchip: fix Firefly Station P2 sata support rockchip: add r66s vop support rockchip: fix r66s gpio-regulator error kernel: fix linux 5.19 shortcut-sfe kernel panic issue rockchip: backport rk3568 support to kernel 5.15 from immortalwrt kernel: 5.10: refresh all patches (coolsnowwolf#10005) kernel: 5.15: fix bug in patch format (coolsnowwolf#10006) kernel: bump 5.15 to 5.15.63 (coolsnowwolf#9999) kernel: bump 5.10 to 5.10.138 (coolsnowwolf#9998)
2 parents c84860d + 566401d commit 37f94d1

File tree

92 files changed

+21362
-8922
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+21362
-8922
lines changed

include/kernel-5.10

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
LINUX_VERSION-5.10 = .137
2-
LINUX_KERNEL_HASH-5.10.137 = c16bcd4d1453d7e645007d0a25270f52401331c7df81c364f57bde914e1616c8
1+
LINUX_VERSION-5.10 = .138
2+
LINUX_KERNEL_HASH-5.10.138 = 29a003bb8e0e3a45942f703370fb0b3460e6fdcbbad37424423c9cf831ab5ba8

include/kernel-5.15

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
LINUX_VERSION-5.15 = .62
2-
LINUX_KERNEL_HASH-5.15.62 = 06817cde8e57cdb6dbf20eaa5122fee110024f6e8b783799c98cb65dc753f141
1+
LINUX_VERSION-5.15 = .63
2+
LINUX_KERNEL_HASH-5.15.63 = 6dd3cd1e5a629d0002bc6c6ec7e8ea96710104f38664122dd56c83dfd4eb7341

target/linux/generic/backport-5.10/610-v5.13-10-netfilter-nftables-update-table-flags-from-the-commi.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Signed-off-by: Pablo Neira Ayuso <[email protected]>
3434
struct nft_set *set;
3535
--- a/net/netfilter/nf_tables_api.c
3636
+++ b/net/netfilter/nf_tables_api.c
37-
@@ -893,6 +893,12 @@ static void nf_tables_table_disable(stru
37+
@@ -917,6 +917,12 @@ static void nf_tables_table_disable(stru
3838
nft_table_disable(net, table, 0);
3939
}
4040

@@ -47,7 +47,7 @@ Signed-off-by: Pablo Neira Ayuso <[email protected]>
4747
static int nf_tables_updtable(struct nft_ctx *ctx)
4848
{
4949
struct nft_trans *trans;
50-
@@ -916,19 +922,17 @@ static int nf_tables_updtable(struct nft
50+
@@ -940,19 +946,17 @@ static int nf_tables_updtable(struct nft
5151

5252
if ((flags & NFT_TABLE_F_DORMANT) &&
5353
!(ctx->table->flags & NFT_TABLE_F_DORMANT)) {
@@ -70,7 +70,7 @@ Signed-off-by: Pablo Neira Ayuso <[email protected]>
7070
nft_trans_table_update(trans) = true;
7171
list_add_tail(&trans->list, &ctx->net->nft.commit_list);
7272
return 0;
73-
@@ -7931,11 +7935,10 @@ static int nf_tables_commit(struct net *
73+
@@ -7929,11 +7933,10 @@ static int nf_tables_commit(struct net *
7474
switch (trans->msg_type) {
7575
case NFT_MSG_NEWTABLE:
7676
if (nft_trans_table_update(trans)) {
@@ -86,7 +86,7 @@ Signed-off-by: Pablo Neira Ayuso <[email protected]>
8686
} else {
8787
nft_clear(net, trans->ctx.table);
8888
}
89-
@@ -8148,11 +8151,9 @@ static int __nf_tables_abort(struct net
89+
@@ -8147,11 +8150,9 @@ static int __nf_tables_abort(struct net
9090
switch (trans->msg_type) {
9191
case NFT_MSG_NEWTABLE:
9292
if (nft_trans_table_update(trans)) {

target/linux/generic/hack-5.10/321-powerpc_crtsavres_prereq.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Signed-off-by: Alexandros C. Couloumbis <[email protected]>
1616

1717
--- a/arch/powerpc/Makefile
1818
+++ b/arch/powerpc/Makefile
19-
@@ -61,19 +61,6 @@ machine-$(CONFIG_PPC64) += 64
19+
@@ -44,19 +44,6 @@ machine-$(CONFIG_PPC64) += 64
2020
machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le
2121
UTS_MACHINE := $(subst $(space),,$(machine-y))
2222

target/linux/generic/hack-5.10/952-net-conntrack-events-support-multiple-registrant.patch

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Signed-off-by: Zhi Chen <[email protected]>
274274
int nf_ct_expect_register_notifier(struct net *net,
275275
--- a/net/netfilter/nf_conntrack_netlink.c
276276
+++ b/net/netfilter/nf_conntrack_netlink.c
277-
@@ -706,13 +706,20 @@ static size_t ctnetlink_nlmsg_size(const
277+
@@ -701,12 +701,19 @@ static size_t ctnetlink_nlmsg_size(const
278278
}
279279

280280
static int
@@ -287,15 +287,14 @@ Signed-off-by: Zhi Chen <[email protected]>
287287
const struct nf_conntrack_zone *zone;
288288
struct net *net;
289289
struct nlmsghdr *nlh;
290-
struct nfgenmsg *nfmsg;
291290
struct nlattr *nest_parms;
292291
+#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
293292
+ struct nf_ct_event *item = (struct nf_ct_event *)ptr;
294293
+#endif
295294
struct nf_conn *ct = item->ct;
296295
struct sk_buff *skb;
297296
unsigned int type;
298-
@@ -3787,9 +3794,15 @@ static int ctnetlink_stat_exp_cpu(struct
297+
@@ -3752,9 +3759,15 @@ static int ctnetlink_stat_exp_cpu(struct
299298
}
300299

301300
#ifdef CONFIG_NF_CONNTRACK_EVENTS

target/linux/generic/hack-5.15/321-powerpc_crtsavres_prereq.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Signed-off-by: Alexandros C. Couloumbis <[email protected]>
1616

1717
--- a/arch/powerpc/Makefile
1818
+++ b/arch/powerpc/Makefile
19-
@@ -61,19 +61,6 @@ machine-$(CONFIG_PPC64) += 64
19+
@@ -44,19 +44,6 @@ machine-$(CONFIG_PPC64) += 64
2020
machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le
2121
UTS_MACHINE := $(subst $(space),,$(machine-y))
2222

target/linux/generic/hack-5.19/952-add-net-conntrack-events-support-multiple-registrant.patch

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Signed-off-by: Zhi Chen <[email protected]>
2222

2323
--- a/include/net/netfilter/nf_conntrack_ecache.h
2424
+++ b/include/net/netfilter/nf_conntrack_ecache.h
25-
@@ -65,9 +65,14 @@ struct nf_ct_event_notifier {
25+
@@ -65,9 +65,14 @@
2626
int (*exp_event)(unsigned int events, const struct nf_exp_event *item);
2727
};
2828

@@ -38,7 +38,7 @@ Signed-off-by: Zhi Chen <[email protected]>
3838

3939
void nf_ct_deliver_cached_events(struct nf_conn *ct);
4040
int nf_conntrack_eventmask_report(unsigned int eventmask, struct nf_conn *ct,
41-
@@ -98,11 +103,13 @@ static inline void
41+
@@ -98,11 +103,13 @@
4242
nf_conntrack_event_cache(enum ip_conntrack_events event, struct nf_conn *ct)
4343
{
4444
#ifdef CONFIG_NF_CONNTRACK_EVENTS
@@ -53,14 +53,21 @@ Signed-off-by: Zhi Chen <[email protected]>
5353

5454
e = nf_ct_ecache_find(ct);
5555
if (e == NULL)
56-
@@ -117,20 +124,24 @@ nf_conntrack_event_report(enum ip_conntr
56+
@@ -117,20 +124,34 @@
5757
u32 portid, int report)
5858
{
5959
#ifdef CONFIG_NF_CONNTRACK_EVENTS
60+
- if (nf_ct_ecache_exist(ct))
61+
- return nf_conntrack_eventmask_report(1 << event, ct, portid, report);
6062
+#ifndef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
61-
if (nf_ct_ecache_exist(ct))
62-
return nf_conntrack_eventmask_report(1 << event, ct, portid, report);
63+
+ const struct net *net = nf_ct_net(ct);
64+
+
65+
+ if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb))
66+
+ return 0;
6367
#endif
68+
+
69+
+ return nf_conntrack_eventmask_report(1 << event, ct, portid, report);
70+
+#else
6471
return 0;
6572
+#endif
6673
}
@@ -69,20 +76,27 @@ Signed-off-by: Zhi Chen <[email protected]>
6976
nf_conntrack_event(enum ip_conntrack_events event, struct nf_conn *ct)
7077
{
7178
#ifdef CONFIG_NF_CONNTRACK_EVENTS
79+
- if (nf_ct_ecache_exist(ct))
80+
- return nf_conntrack_eventmask_report(1 << event, ct, 0, 0);
7281
+#ifndef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
73-
if (nf_ct_ecache_exist(ct))
74-
return nf_conntrack_eventmask_report(1 << event, ct, 0, 0);
82+
+ const struct net *net = nf_ct_net(ct);
83+
+
84+
+ if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb))
85+
+ return 0;
7586
#endif
87+
+
88+
+ return nf_conntrack_eventmask_report(1 << event, ct, 0, 0);
89+
+#else
7690
return 0;
7791
+#endif
7892
}
7993

8094
#ifdef CONFIG_NF_CONNTRACK_EVENTS
8195
--- a/include/net/netns/conntrack.h
8296
+++ b/include/net/netns/conntrack.h
83-
@@ -107,6 +107,9 @@ struct netns_ct {
84-
u8 sysctl_checksum;
97+
@@ -113,6 +113,9 @@ struct netns_ct {
8598

99+
struct ct_pcpu __percpu *pcpu_lists;
86100
struct ip_conntrack_stat __percpu *stat;
87101
+#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
88102
+ struct atomic_notifier_head nf_conntrack_chain;
@@ -92,7 +106,7 @@ Signed-off-by: Zhi Chen <[email protected]>
92106
#if defined(CONFIG_NF_CONNTRACK_LABELS)
93107
--- a/net/netfilter/Kconfig
94108
+++ b/net/netfilter/Kconfig
95-
@@ -162,6 +162,14 @@ config NF_CONNTRACK_EVENTS
109+
@@ -151,6 +151,14 @@ config NF_CONNTRACK_EVENTS
96110

97111
If unsure, say `N'.
98112

@@ -109,7 +123,7 @@ Signed-off-by: Zhi Chen <[email protected]>
109123
depends on NETFILTER_ADVANCED
110124
--- a/net/netfilter/nf_conntrack_core.c
111125
+++ b/net/netfilter/nf_conntrack_core.c
112-
@@ -2802,6 +2802,10 @@ int nf_conntrack_init_net(struct net *ne
126+
@@ -2878,6 +2878,10 @@ int nf_conntrack_init_net(struct net *ne
113127
nf_conntrack_helper_pernet_init(net);
114128
nf_conntrack_proto_pernet_init(net);
115129

@@ -122,17 +136,17 @@ Signed-off-by: Zhi Chen <[email protected]>
122136
err_expect:
123137
--- a/net/netfilter/nf_conntrack_ecache.c
124138
+++ b/net/netfilter/nf_conntrack_ecache.c
125-
@@ -17,6 +17,9 @@
126-
#include <linux/stddef.h>
139+
@@ -18,6 +18,9 @@
127140
#include <linux/err.h>
141+
#include <linux/percpu.h>
128142
#include <linux/kernel.h>
129143
+#ifdef CONFIG_NF_CONNTRACK_CHAIN_EVENTS
130144
+#include <linux/notifier.h>
131145
+#endif
132146
#include <linux/netdevice.h>
133147
#include <linux/slab.h>
134148
#include <linux/export.h>
135-
@@ -162,6 +165,35 @@ static int __nf_conntrack_eventmask_repo
149+
@@ -167,6 +170,35 @@ static int __nf_conntrack_eventmask_repo
136150
return ret;
137151
}
138152

@@ -168,7 +182,7 @@ Signed-off-by: Zhi Chen <[email protected]>
168182
int nf_conntrack_eventmask_report(unsigned int events, struct nf_conn *ct,
169183
u32 portid, int report)
170184
{
171-
@@ -197,10 +229,52 @@ int nf_conntrack_eventmask_report(unsign
185+
@@ -203,10 +235,52 @@ int nf_conntrack_eventmask_report(unsign
172186

173187
return ret;
174188
}
@@ -221,15 +235,15 @@ Signed-off-by: Zhi Chen <[email protected]>
221235
void nf_ct_deliver_cached_events(struct nf_conn *ct)
222236
{
223237
struct nf_conntrack_ecache *e;
224-
@@ -226,6 +300,7 @@ void nf_ct_deliver_cached_events(struct
238+
@@ -232,6 +306,7 @@ void nf_ct_deliver_cached_events(struct
225239
*/
226240
__nf_conntrack_eventmask_report(e, events, e->missed, &item);
227241
}
228242
+#endif
229243
EXPORT_SYMBOL_GPL(nf_ct_deliver_cached_events);
230244

231245
void nf_ct_expect_event_report(enum ip_conntrack_expect_events event,
232-
@@ -258,20 +333,43 @@ out_unlock:
246+
@@ -264,20 +339,43 @@ out_unlock:
233247
rcu_read_unlock();
234248
}
235249

@@ -275,7 +289,7 @@ Signed-off-by: Zhi Chen <[email protected]>
275289
void nf_conntrack_unregister_notifier(struct net *net)
276290
{
277291
mutex_lock(&nf_ct_ecache_mutex);
278-
@@ -279,6 +377,7 @@ void nf_conntrack_unregister_notifier(st
292+
@@ -285,6 +383,7 @@ void nf_conntrack_unregister_notifier(st
279293
mutex_unlock(&nf_ct_ecache_mutex);
280294
/* synchronize_rcu() is called after netns pre_exit */
281295
}
@@ -285,7 +299,7 @@ Signed-off-by: Zhi Chen <[email protected]>
285299
void nf_conntrack_ecache_work(struct net *net, enum nf_ct_ecache_state state)
286300
--- a/net/netfilter/nf_conntrack_netlink.c
287301
+++ b/net/netfilter/nf_conntrack_netlink.c
288-
@@ -712,12 +712,19 @@ static size_t ctnetlink_nlmsg_size(const
302+
@@ -706,12 +706,19 @@ static size_t ctnetlink_nlmsg_size(const
289303
}
290304

291305
static int
@@ -305,7 +319,7 @@ Signed-off-by: Zhi Chen <[email protected]>
305319
struct nf_conn *ct = item->ct;
306320
struct sk_buff *skb;
307321
unsigned int type;
308-
@@ -3791,11 +3798,17 @@ static int ctnetlink_stat_exp_cpu(struct
322+
@@ -3761,11 +3768,17 @@ static int ctnetlink_stat_exp_cpu(struct
309323
}
310324

311325
#ifdef CONFIG_NF_CONNTRACK_EVENTS
@@ -323,7 +337,7 @@ Signed-off-by: Zhi Chen <[email protected]>
323337

324338
static const struct nfnl_callback ctnl_cb[IPCTNL_MSG_MAX] = {
325339
[IPCTNL_MSG_CT_NEW] = {
326-
@@ -3894,8 +3907,12 @@ static int __net_init ctnetlink_net_init
340+
@@ -3864,8 +3877,12 @@ static int __net_init ctnetlink_net_init
327341
static void ctnetlink_net_pre_exit(struct net *net)
328342
{
329343
#ifdef CONFIG_NF_CONNTRACK_EVENTS

target/linux/generic/pending-5.15/703-phy-add-detach-callback-to-struct-phy_driver.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Signed-off-by: Gabor Juhos <[email protected]>
1111

1212
--- a/drivers/net/phy/phy_device.c
1313
+++ b/drivers/net/phy/phy_device.c
14-
@@ -1738,6 +1738,9 @@ void phy_detach(struct phy_device *phyde
14+
@@ -1744,6 +1744,9 @@ void phy_detach(struct phy_device *phyde
1515
struct module *ndev_owner = NULL;
1616
struct mii_bus *bus;
1717

target/linux/generic/pending-5.15/850-0023-PCI-aardvark-Make-main-irq_chip-structure-a-static-d.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ Signed-off-by: Marek Behún <[email protected]>
3333

3434
--- a/drivers/pci/controller/pci-aardvark.c
3535
+++ b/drivers/pci/controller/pci-aardvark.c
36-
@@ -274,7 +274,6 @@ struct advk_pcie {
36+
@@ -275,7 +275,6 @@ struct advk_pcie {
3737
u8 wins_count;
3838
struct irq_domain *rp_irq_domain;
3939
struct irq_domain *irq_domain;
4040
- struct irq_chip irq_chip;
4141
raw_spinlock_t irq_lock;
4242
struct irq_domain *msi_domain;
4343
struct irq_domain *msi_inner_domain;
44-
@@ -1330,14 +1329,19 @@ static void advk_pcie_irq_unmask(struct
44+
@@ -1345,14 +1344,19 @@ static void advk_pcie_irq_unmask(struct
4545
raw_spin_unlock_irqrestore(&pcie->irq_lock, flags);
4646
}
4747

@@ -63,15 +63,15 @@ Signed-off-by: Marek Behún <[email protected]>
6363
irq_set_chip_data(virq, pcie);
6464

6565
return 0;
66-
@@ -1396,7 +1400,6 @@ static int advk_pcie_init_irq_domain(str
66+
@@ -1411,7 +1415,6 @@ static int advk_pcie_init_irq_domain(str
6767
struct device *dev = &pcie->pdev->dev;
6868
struct device_node *node = dev->of_node;
6969
struct device_node *pcie_intc_node;
7070
- struct irq_chip *irq_chip;
7171
int ret = 0;
7272

7373
raw_spin_lock_init(&pcie->irq_lock);
74-
@@ -1407,28 +1410,14 @@ static int advk_pcie_init_irq_domain(str
74+
@@ -1422,28 +1425,14 @@ static int advk_pcie_init_irq_domain(str
7575
return -ENODEV;
7676
}
7777

target/linux/generic/pending-5.15/851-0006-Revert-PCI-aardvark-Fix-initialization-with-old-Marv.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Acked-by: Miquel Raynal <[email protected]>
2323

2424
--- a/drivers/pci/controller/pci-aardvark.c
2525
+++ b/drivers/pci/controller/pci-aardvark.c
26-
@@ -1632,9 +1632,7 @@ static int advk_pcie_enable_phy(struct a
26+
@@ -1631,9 +1631,7 @@ static int advk_pcie_enable_phy(struct a
2727
}
2828

2929
ret = phy_power_on(pcie->phy);

0 commit comments

Comments
 (0)