kernel: fix RCU issue in xt_FLOWOFFLOAD patch
authorFelix Fietkau <nbd@nbd.name>
Tue, 30 Nov 2021 10:37:15 +0000 (11:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 11 Dec 2021 12:52:39 +0000 (13:52 +0100)
cond_resched() may not be called in a rcu-locked section

Signed-off-by: Felix Fietkau <nbd@nbd.name>
target/linux/generic/hack-5.10/650-netfilter-add-xt_FLOWOFFLOAD-target.patch

index 77c24ccc7a75271707e0908d8536badb31d7744d..bda8d06b7caf49584206bbf4f6a747309f481847 100644 (file)
@@ -98,7 +98,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
  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 <nbd@nbd.name>
 + *
@@ -278,8 +278,6 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 +              hook->used = true;
 +      }
 +      spin_unlock_bh(&hooks_lock);
-+
-+      cond_resched();
 +}
 +
 +static void