All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]: NETLINK can sleep in illegal context
@ 2002-11-11 10:14 Gianni Tedesco
  0 siblings, 0 replies; only message in thread
From: Gianni Tedesco @ 2002-11-11 10:14 UTC (permalink / raw)
  To: Harald Welte; +Cc: netfilter-devel


[-- Attachment #1.1: Type: text/plain, Size: 448 bytes --]

Hello,

Attached patch fixes kernel panic in the NETLINK target. It's quite rare
(I run this on about 100 firewalls and have seen it happen on 1 so far).
Its just a GFP_KERNEL where it needs to be a GFP_ATOMIC.

*hangs head in shame at such a lame bug*

-- 
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

[-- Attachment #1.2: NETLINK-illegal-context.diff --]
[-- Type: text/x-patch, Size: 585 bytes --]

diff -u -r1.3 NETLINK.patch
--- netfilter.orig/patch-o-matic/base/NETLINK.patch	12 Nov 2001 08:19:29 -0000	1.3
+++ netfilter/patch-o-matic/base/NETLINK.patch	11 Nov 2002 10:10:22 -0000
@@ -65,7 +65,7 @@
 +		skb_put(outskb, len);
 +		memcpy(outskb->data, &nlhdr, sizeof(nlhdr));
 +		memcpy((outskb->data)+sizeof(nlhdr), ip, len-sizeof(nlhdr));
-+		netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_KERNEL);
++		netlink_broadcast(ipfwsk, outskb, 0, ~0, GFP_ATOMIC);
 +	}else{
 +		if (net_ratelimit())
 +			printk(KERN_WARNING "ipt_NETLINK: packet drop due to netlink failure\n");

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-11 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-11 10:14 [PATCH]: NETLINK can sleep in illegal context Gianni Tedesco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.