From e4d533b6f853b94e42fa1675ff64b2be9ec1bfd4 Mon Sep 17 00:00:00 2001 From: Alexander Atanasov Date: Sun, 2 Jun 2002 22:32:34 -0700 Subject: [PATCH] [PATCH] ipchains_core GFP_KERNEL fix [ Made applicable with -p1 by Rusty ] nlma fixes a call to netlink_broadcast with GFP_KERNEL ( passed to skb_clone ) while we are in_interrupt() ( catched by a BUG() in slab.c:1109 ). --- net/ipv4/netfilter/ipchains_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ipv4/netfilter/ipchains_core.c b/net/ipv4/netfilter/ipchains_core.c index 5a49783051fd..9d2a1424351f 100644 --- a/net/ipv4/netfilter/ipchains_core.c +++ b/net/ipv4/netfilter/ipchains_core.c @@ -549,7 +549,7 @@ ip_fw_domatch(struct ip_fwkernel *f, strcpy(outskb->data+sizeof(__u32)*2, rif); memcpy(outskb->data+sizeof(__u32)*2+IFNAMSIZ, ip, len-(sizeof(__u32)*2+IFNAMSIZ)); - netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_KERNEL); + netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_ATOMIC); } else { #endif -- 2.39.5