OpenVZ Forum


Home » General » Support » Kernel OOPS with kernel 2.6.18 and openvz 0.28.18.1
Re: Kernel OOPS with kernel 2.6.18 and openvz 0.28.18.1 [message #12909 is a reply to message #12429] Mon, 14 May 2007 22:21 Go to previous message
MrDigi is currently offline  MrDigi
Messages: 5
Registered: April 2007
Junior Member
That oops occurs in:

net/ipv6/netfilter/ip6_tables.c:
---
void ip6t_unregister_table(struct xt_table *table)
{
struct xt_table_info *private;
void *loc_cpu_entry;
struct module *me;

me = table->me; <--- HERE is OOPSed, so table was null
...
---

It was called from:
net/ipv6/netfilter/ip6table_mangle.c
---
void fini_ip6table_mangle(void)
{
nf_unregister_hooks(ip6t_ops, ARRAY_SIZE(ip6t_ops));
ip6t_unregister_table(ve_packet_mangler);
#ifdef CONFIG_VE_IPTABLES
ve_packet_mangler = NULL;
#endif
}
---
I think the problem is somewhere here in cleanup:

net/ipv6/netfilter/ip6table_mangle.c
---
int init_ip6table_mangle(void)
{
int ret;
struct ip6t_table *tmp_mangler;

/* Register table */
tmp_mangler = ip6t_register_table(&packet_mangler,
&initial_table.repl);
if (IS_ERR(tmp_mangler))
return PTR_ERR(tmp_mangler);
#ifdef CONFIG_VE_IPTABLES
ve_packet_mangler = tmp_mangler;
#endif

/* Register hooks */
ret = nf_register_hooks(ip6t_ops, ARRAY_SIZE(ip6t_ops));
if (ret < 0)
goto cleanup_table;

return ret;

cleanup_table:
ip6t_unregister_table(ve_packet_mangler);
#ifdef CONFIG_VE_IPTABLES
ve_packet_mangler = NULL;
#endif
return ret;
}
}
---

So perhaps something like the following two added lines are enough ?!
---
void ip6t_unregister_table(struct xt_table *table)
{
struct xt_table_info *private;
void *loc_cpu_entry;
struct module *me;

+ if (table == null)
+ return;

me = table->me; <--- HERE is OOPSed, so table was null
...
---



Best regards
Thimo
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzctl --wait problem
Next Topic: *SOLVED* usbserial pl2303 (prolific) support
Goto Forum:
  


Current Time: Mon Sep 01 16:16:11 GMT 2025

Total time taken to generate the page: 0.07113 seconds