| From stable-bounces@linux.kernel.org Thu Nov 16 21:40:05 2006 |
| From: Patrick McHardy <kaber@trash.net> |
| To: stable@kernel.org |
| Message-Id: <20061117053542.10231.61123.sendpatchset@localhost.localdomain> |
| Date: Fri, 17 Nov 2006 06:35:42 +0100 (MET) |
| Cc: Patrick McHardy <kaber@trash.net>, davem@davemloft.net |
| Subject: NETFILTER: ip_tables: compat error way cleanup |
| |
| This patch adds forgotten compat_flush_offset() call to error way of |
| translate_compat_table(). May lead to table corruption on the next |
| compat_do_replace(). |
| |
| Signed-off-by: Vasily Averin <vvs@openvz.org> |
| Acked-by: Dmitry Mishin <dim@openvz.org> |
| Acked-by: Kirill Korotaev <dev@openvz.org> |
| Signed-off-by: Patrick McHardy <kaber@trash.net> |
| Signed-off-by: David S. Miller <davem@davemloft.net> |
| Signed-off-by: Chris Wright <chrisw@sous-sol.org> |
| |
| --- |
| commit efb1447a67abac93048ad7af0c59cd9b5a9177a6 |
| tree 9d56a6e758a3ad0e617f2527ac4b4efdeba5b64a |
| parent 4410392a8258fd972fc08a336278b14c82b2774f |
| author Patrick McHardy <kaber@trash.net> Fri, 17 Nov 2006 06:22:39 +0100 |
| committer Patrick McHardy <kaber@trash.net> Fri, 17 Nov 2006 06:22:39 +0100 |
| |
| net/ipv4/netfilter/ip_tables.c | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- linux-2.6.18.4.orig/net/ipv4/netfilter/ip_tables.c |
| +++ linux-2.6.18.4/net/ipv4/netfilter/ip_tables.c |
| @@ -1775,6 +1775,7 @@ free_newinfo: |
| out: |
| return ret; |
| out_unlock: |
| + compat_flush_offsets(); |
| xt_compat_unlock(AF_INET); |
| goto out; |
| } |