All of lore.kernel.org
 help / color / mirror / Atom feed
* ctnetlink & helper_locking_fix conflict
@ 2004-11-09  7:13 Henrik Nordstrom
  2004-11-09 17:11 ` Harald Welte
  0 siblings, 1 reply; 3+ messages in thread
From: Henrik Nordstrom @ 2004-11-09  7:13 UTC (permalink / raw)
  To: Netfilter Developers

Hi,

there is a conflict between the above two patches. The helper_locking_fix 
removes the locks from the helpers, but ctnetlink adds code using these 
locks.

>From reading the code I think the helper side locking should be removed 
from the ctnetlink additions as well, but just wanted to verify with you.

Example of the offending code (ip_conntrack_irc.c, and many more):

+static void ctnl_change(struct ip_conntrack *ct, union ip_conntrack_help 
*h)
+{
+	LOCK_BH(&ip_irc_lock);
+	memcpy(&ct->help, h, sizeof(ct->help));
+	UNLOCK_BH(&ip_irc_lock);
+}
+
+static void ctnl_new_expect(struct ip_conntrack_expect *exp,
+                            union ip_conntrack_expect_proto *p,
+                            union ip_conntrack_expect_help *h)
+{
+	if (h == NULL)
+		return;
+	LOCK_BH(&ip_irc_lock);
+	memcpy(&exp->help, h, sizeof(exp->help));
+	UNLOCK_BH(&ip_irc_lock);
+}
+

where ip_irc_lock was killed by helper_locking_fix.


Regards
Henrik

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-10 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-09  7:13 ctnetlink & helper_locking_fix conflict Henrik Nordstrom
2004-11-09 17:11 ` Harald Welte
2004-11-10 18:45   ` Pablo Neira

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.