All of lore.kernel.org
 help / color / mirror / Atom feed
From: <gregkh@suse.de>
To: kaber@trash.net, davem@davemloft.net, gregkh@suse.de,
	netfilter-devel@lists.netfilter.org, perex@suse.cz
Cc: stable@kernel.org
Subject: patch netfilter-ipt_clusterip-fix-oops-in-checkentry-function.patch queued to -stable tree
Date: Wed, 11 Apr 2007 12:03:17 -0700	[thread overview]
Message-ID: <20070411190349.92E26D2DBB2@imap.suse.de> (raw)
In-Reply-To: <461B8759.1000507@trash.net>


This is a note to let you know that we have just queued up the patch titled

     Subject: NETFILTER: ipt_CLUSTERIP: fix oops in checkentry function

to the 2.6.20-stable tree.  Its filename is

     netfilter-ipt_clusterip-fix-oops-in-checkentry-function.patch

A git repo of this tree can be found at 
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary


>From stable-bounces@linux.kernel.org Tue Apr 10 05:49:18 2007
From: Patrick McHardy <kaber@trash.net>
Date: Tue, 10 Apr 2007 14:47:21 +0200
Subject: NETFILTER: ipt_CLUSTERIP: fix oops in checkentry function
To: stable@kernel.org
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>, "David S. Miller" <davem@davemloft.net>
Message-ID: <461B8759.1000507@trash.net>

From: Patrick McHardy <kaber@trash.net>

[NETFILTER]: ipt_CLUSTERIP: fix oops in checkentry function

The clusterip_config_find_get() already increases entries reference
counter, so there is no reason to do it twice in checkentry() callback.

This causes the config to be freed before it is removed from the list,
resulting in a crash when adding the next rule.

Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>


--- a/net/ipv4/netfilter/ipt_CLUSTERIP.c
+++ b/net/ipv4/netfilter/ipt_CLUSTERIP.c
@@ -411,12 +411,10 @@ checkentry(const char *tablename,
 				       "has invalid config pointer!\n");
 				return 0;
 			}
-			clusterip_config_entry_get(cipinfo->config);
 		} else {
 			/* Case B: This is a new rule referring to an existing
 			 * clusterip config. */
 			cipinfo->config = config;
-			clusterip_config_entry_get(cipinfo->config);
 		}
 	} else {
 		/* Case C: This is a completely new clusterip config */
_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable


Patches currently in stable-queue which might be from kaber@trash.net are

      parent reply	other threads:[~2007-04-11 19:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10 12:47 [NETFILTER -stable]: ipt_CLUSTERIP: fix oops in checkentry function Patrick McHardy
2007-04-10 20:27 ` David Miller
2007-04-11 18:53 ` patch netfilter-ipt_clusterip-fix-oops-in-checkentry-function.patch queued to -stable tree gregkh
2007-04-11 19:03 ` gregkh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070411190349.92E26D2DBB2@imap.suse.de \
    --to=gregkh@suse.de \
    --cc=davem@davemloft.net \
    --cc=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=perex@suse.cz \
    --cc=stable@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.