From: Felix Fietkau Date: Tue, 30 Nov 2021 10:37:15 +0000 (+0100) Subject: kernel: fix RCU issue in xt_FLOWOFFLOAD patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3b20eb185b2a45681fa9e2d31b9844458d5a72d2;p=openwrt%2Fstaging%2Frmilecki.git kernel: fix RCU issue in xt_FLOWOFFLOAD patch cond_resched() may not be called in a rcu-locked section Signed-off-by: Felix Fietkau --- diff --git a/target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch b/target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch index 77c24ccc7a7..bda8d06b7ca 100644 --- a/target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch +++ b/target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch @@ -98,7 +98,7 @@ Signed-off-by: Felix Fietkau obj-$(CONFIG_NETFILTER_XT_TARGET_LED) += xt_LED.o --- /dev/null +++ b/net/netfilter/xt_FLOWOFFLOAD.c -@@ -0,0 +1,658 @@ +@@ -0,0 +1,656 @@ +/* + * Copyright (C) 2018-2021 Felix Fietkau + * @@ -278,8 +278,6 @@ Signed-off-by: Felix Fietkau + hook->used = true; + } + spin_unlock_bh(&hooks_lock); -+ -+ cond_resched(); +} + +static void