From 3b20eb185b2a45681fa9e2d31b9844458d5a72d2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 30 Nov 2021 11:37:15 +0100 Subject: [PATCH] kernel: fix RCU issue in xt_FLOWOFFLOAD patch cond_resched() may not be called in a rcu-locked section Signed-off-by: Felix Fietkau --- .../hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 77c24ccc7a75..bda8d06b7caf 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 -- 2.30.2