* [NETFILTER -stable]: nf_nat: fix memset error
@ 2007-11-28 8:56 Patrick McHardy
2007-12-12 0:01 ` patch nf_nat-fix-memset-error.patch queued to -stable tree gregkh
2007-12-12 0:33 ` gregkh
0 siblings, 2 replies; 3+ messages in thread
From: Patrick McHardy @ 2007-11-28 8:56 UTC (permalink / raw)
To: stable; +Cc: David S. Miller, Netfilter Development Mailinglist
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
This patch fixes an incorrect memset in the NAT code, causing
misbehaviour when unloading and reloading the NAT module.
Applies to stable-2.6.22 and stable-2.6.23.
Please apply, thanks.
[-- Attachment #2: 01.diff --]
[-- Type: text/x-patch, Size: 1187 bytes --]
[NETFILTER]: nf_nat: fix memset error
Upstream commit e0bf9cf15fc30d300b7fbd821c6bc975531fab44
The size passing to memset is the size of a pointer. Fixes
misbehaviour when unloading and reloading the NAT module.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
---
commit 5811c2a0705a77524b2b12d927e874d2fa6520b3
tree e71651d274c89fea540c87b98b990db2e4cafe5b
parent 8996d0af900ec60b8b59435aa231e2d449bba6af
author Li Zefan <lizf@cn.fujitsu.com> Wed, 28 Nov 2007 09:24:42 +0100
committer Patrick McHardy <kaber@trash.net> Wed, 28 Nov 2007 09:24:42 +0100
net/ipv4/netfilter/nf_nat_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/netfilter/nf_nat_core.c b/net/ipv4/netfilter/nf_nat_core.c
index deab27f..553ebb8 100644
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -681,7 +681,7 @@ static int clean_nat(struct nf_conn *i, void *data)
if (!nat)
return 0;
- memset(nat, 0, sizeof(nat));
+ memset(nat, 0, sizeof(*nat));
i->status &= ~(IPS_NAT_MASK | IPS_NAT_DONE_MASK | IPS_SEQ_ADJUST);
return 0;
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* patch nf_nat-fix-memset-error.patch queued to -stable tree
2007-11-28 8:56 [NETFILTER -stable]: nf_nat: fix memset error Patrick McHardy
@ 2007-12-12 0:01 ` gregkh
2007-12-12 0:33 ` gregkh
1 sibling, 0 replies; 3+ messages in thread
From: gregkh @ 2007-12-12 0:01 UTC (permalink / raw)
To: lizf, davem, gregkh, kaber, netfilter-devel; +Cc: stable, stable-commits
This is a note to let you know that we have just queued up the patch titled
Subject: nf_nat: fix memset error
to the 2.6.23-stable tree. Its filename is
nf_nat-fix-memset-error.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 Wed Nov 28 00:56:55 2007
From: Li Zefan <lizf@cn.fujitsu.com>
Date: Wed, 28 Nov 2007 09:56:27 +0100
Subject: nf_nat: fix memset error
To: stable@kernel.org
Cc: Netfilter Development Mailinglist <netfilter-devel@vger.kernel.org>, "David S. Miller" <davem@davemloft.net>
Message-ID: <474D2D3B.5030909@trash.net>
From: Li Zefan <lizf@cn.fujitsu.com>
This patch fixes an incorrect memset in the NAT code, causing
misbehaviour when unloading and reloading the NAT module.
Applies to stable-2.6.22 and stable-2.6.23.
Please apply, thanks.
[NETFILTER]: nf_nat: fix memset error
Upstream commit e0bf9cf15fc30d300b7fbd821c6bc975531fab44
The size passing to memset is the size of a pointer. Fixes
misbehaviour when unloading and reloading the NAT module.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
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>
---
net/ipv4/netfilter/nf_nat_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -681,7 +681,7 @@ static int clean_nat(struct nf_conn *i,
if (!nat)
return 0;
- memset(nat, 0, sizeof(nat));
+ memset(nat, 0, sizeof(*nat));
i->status &= ~(IPS_NAT_MASK | IPS_NAT_DONE_MASK | IPS_SEQ_ADJUST);
return 0;
}
Patches currently in stable-queue which might be from lizf@cn.fujitsu.com are
queue-2.6.23/nf_nat-fix-memset-error.patch
^ permalink raw reply [flat|nested] 3+ messages in thread
* patch nf_nat-fix-memset-error.patch queued to -stable tree
2007-11-28 8:56 [NETFILTER -stable]: nf_nat: fix memset error Patrick McHardy
2007-12-12 0:01 ` patch nf_nat-fix-memset-error.patch queued to -stable tree gregkh
@ 2007-12-12 0:33 ` gregkh
1 sibling, 0 replies; 3+ messages in thread
From: gregkh @ 2007-12-12 0:33 UTC (permalink / raw)
To: lizf, davem, gregkh, kaber, netfilter-devel; +Cc: stable, stable-commits
This is a note to let you know that we have just queued up the patch titled
Subject: nf_nat: fix memset error
to the 2.6.22-stable tree. Its filename is
nf_nat-fix-memset-error.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 Wed Nov 28 00:56:55 2007
From: Li Zefan <lizf@cn.fujitsu.com>
Date: Wed, 28 Nov 2007 09:56:27 +0100
Subject: nf_nat: fix memset error
To: stable@kernel.org
Cc: Netfilter Development Mailinglist <netfilter-devel@vger.kernel.org>, "David S. Miller" <davem@davemloft.net>
Message-ID: <474D2D3B.5030909@trash.net>
From: Li Zefan <lizf@cn.fujitsu.com>
This patch fixes an incorrect memset in the NAT code, causing
misbehaviour when unloading and reloading the NAT module.
Applies to stable-2.6.22 and stable-2.6.23.
Please apply, thanks.
[NETFILTER]: nf_nat: fix memset error
Upstream commit e0bf9cf15fc30d300b7fbd821c6bc975531fab44
The size passing to memset is the size of a pointer. Fixes
misbehaviour when unloading and reloading the NAT module.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
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>
---
net/ipv4/netfilter/nf_nat_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/ipv4/netfilter/nf_nat_core.c
+++ b/net/ipv4/netfilter/nf_nat_core.c
@@ -633,7 +633,7 @@ static int clean_nat(struct nf_conn *i,
if (!nat)
return 0;
- memset(nat, 0, sizeof(nat));
+ memset(nat, 0, sizeof(*nat));
i->status &= ~(IPS_NAT_MASK | IPS_NAT_DONE_MASK | IPS_SEQ_ADJUST);
return 0;
}
Patches currently in stable-queue which might be from lizf@cn.fujitsu.com are
queue-2.6.22/nf_nat-fix-memset-error.patch
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-12 0:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 8:56 [NETFILTER -stable]: nf_nat: fix memset error Patrick McHardy
2007-12-12 0:01 ` patch nf_nat-fix-memset-error.patch queued to -stable tree gregkh
2007-12-12 0:33 ` gregkh
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.