All of lore.kernel.org
 help / color / mirror / Atom feed
* Fw:  [Bug 7297] New: modprobe -v -r causes crash in xt_unregister_match
@ 2006-10-10 19:42 Stephen Hemminger
  2006-10-11  7:28 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2006-10-10 19:42 UTC (permalink / raw)
  To: Netfilter Development Mailinglist

Looks like an xt_tables bug.


On Tue, 10 Oct 2006 05:10:47 -0700
bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=7297
> 
>            Summary: modprobe -v -r causes crash in xt_unregister_match
>     Kernel Version: 2.6.16 / 2.6.19-rc1-git6
>             Status: NEW
>           Severity: normal
>              Owner: laforge@gnumonks.org
>          Submitter: olh@suse.de
> 
> 
> Most recent kernel where this bug did not occur: untested
> Distribution: SuSE Linux
> Hardware Environment: IBM JS20 ppc64
> Software Environment:
> Problem Description:
> 
> NET: Unregistered protocol family 5
> ieee80211_crypt: unregistered algorithm 'CCMP'
> ieee80211_crypt: unregistered algorithm 'WEP'
> ieee80211_crypt: unregistered algorithm 'NULL'
> Unable to handle kernel paging request for data at address 0xd000000000d57c08
> Faulting instruction address: 0xd0000000000e667c
> Oops: Kernel access of bad area, sig: 11 [#1]
> SMP NR_CPUS=128 NUMA
> Modules linked in: ip_gre sco rfcomm hidp bnep l2cap bluetooth rpcsec_gss_spkm3
> rpcsec_gss_krb5 auth_rpcgss sunrpc ebt_802_3 ebt_redirect ebt_snat ebt_mark
> ebtable_na
> t ebt_pkttype ebt_dnat ebt_among ebt_limit ebtable_filter ebt_ip ebt_arpreply
> ebt_stp ebt_log ebt_mark_m ebt_arp ebt_vlan ebtable_broute ebtables xt_NFQUEUE
> xt_CONNSE
> CMARK xt_statistic xt_policy xt_multiport xt_length bridge sctp ts_kmp dccp_ipv6
> dccp_ipv4 dccp xt_pkttype ipt_LOG xt_limit autofs4 ip6t_REJECT xt_tcpudp
> ipt_REJECT x
> t_state iptable_filter ip_conntrack nfnetlink ip_tables ip6table_filter
> ip6_tables x_tables ipv6 loop dm_mod tg3 generic qla2xxx scsi_transport_fc
> firmware_class sd_m
> od scsi_mod
> NIP: D0000000000E667C LR: D0000000000E665C CTR: C000000000391EDC
> REGS: c0000000510db900 TRAP: 0300   Not tainted  (2.6.19-rc1-git6-ppc64-netfilter)
> MSR: 8000000000009032 <EE,ME,IR,DR>  CR: 24228282  XER: 200FFFFF
> DAR: D000000000D57C08, DSISR: 0000000042000000
> TASK = c000000051b300c0[6162] 'modprobe' THREAD: c0000000510d8000 CPU: 0
> GPR00: 0000000000100100 C0000000510DBB80 D0000000000F9518 C00000000F2FB0C0
> GPR04: 0000000000000002 0000000000001EDB 0000000024228282 000000000170AB80
> GPR08: 0000000000000000 0000000000200200 D000000000D72E70 D000000000D57C00
> GPR12: D0000000000E7FF0 C00000000048D400 0000000000000000 0000000010020000
> GPR16: 0000000000000001 0000000000000000 0000000000000000 0000000010028248
> GPR20: 0000000000000000 00000000100283C8 0000000000000003 0000000010001B80
> GPR24: 0000000000000001 0000000000000000 0000000010028B24 D0000000000F1528
> GPR28: 00000000000000C0 D000000000D6C8B0 D0000000000F9080 0000000000000000
> NIP [D0000000000E667C] .xt_unregister_match+0x5c/0xa0 [x_tables]
> LR [D0000000000E665C] .xt_unregister_match+0x3c/0xa0 [x_tables]
> Call Trace:
> [C0000000510DBB80] [D0000000000E665C] .xt_unregister_match+0x3c/0xa0 [x_tables]
> (unreliable)
> [C0000000510DBC20] [D0000000000E66EC] .xt_unregister_matches+0x2c/0x60 [x_tables]
> [C0000000510DBCB0] [D000000000D6C0A0] .xt_length_fini+0x20/0x38 [xt_length]
> [C0000000510DBD30] [C00000000008A6AC] .sys_delete_module+0x1f0/0x248
> [C0000000510DBE30] [C00000000000871C] syscall_exit+0x0/0x40
> Instruction dump:
> e87b0000 1f9c0060 7c7c1a14 48001999 e8410028 e95d0008 e97d0000 3c000010
> 3d200020 60000100 61290200 f96a0000 <f94b0008> f81d0000 f93d0008 60000000
> 
> Steps to reproduce:
> 
> find /lib/modules/`uname -r`/kernel/net/ -name "*.ko" | xargs -n1 basename | sed
> 's@\.ko$@@' | xargs -n1 modprobe -v
> 
> find /lib/modules/`uname -r`/kernel/net/ -name "*.ko" | xargs -n1 basename | sed
> 's@\.ko$@@' | xargs -n1 modprobe -v -r
> 
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Stephen Hemminger <shemminger@osdl.org>

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

* Re: Fw: [Bug 7297] New: modprobe -v -r causes crash in xt_unregister_match
  2006-10-10 19:42 Fw: [Bug 7297] New: modprobe -v -r causes crash in xt_unregister_match Stephen Hemminger
@ 2006-10-11  7:28 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2006-10-11  7:28 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Netfilter Development Mailinglist, olh

[-- Attachment #1: Type: text/plain, Size: 120 bytes --]

Stephen Hemminger wrote:
> Looks like an xt_tables bug.

Yes, an old one and a new one. I've queued these two patches.


[-- Attachment #2: 01.diff --]
[-- Type: text/plain, Size: 1448 bytes --]

[NETFILTER]: fix cut-and-paste error in exit functions

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit c7b1507f3c040c02efa1b955f7180a33a232c4d9
tree fd21258deca0e5d8859271bb2c745302ce5a1e2a
parent 26da6cf44bc574d528d715a17e48f54da061c151
author Patrick McHardy <kaber@trash.net> Wed, 11 Oct 2006 08:35:50 +0200
committer Patrick McHardy <kaber@trash.net> Wed, 11 Oct 2006 08:35:50 +0200

 net/netfilter/xt_NFQUEUE.c  |    2 +-
 net/netfilter/xt_connmark.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/netfilter/xt_NFQUEUE.c b/net/netfilter/xt_NFQUEUE.c
index db9b896..39e1175 100644
--- a/net/netfilter/xt_NFQUEUE.c
+++ b/net/netfilter/xt_NFQUEUE.c
@@ -68,7 +68,7 @@ static int __init xt_nfqueue_init(void)
 
 static void __exit xt_nfqueue_fini(void)
 {
-	xt_register_targets(xt_nfqueue_target, ARRAY_SIZE(xt_nfqueue_target));
+	xt_unregister_targets(xt_nfqueue_target, ARRAY_SIZE(xt_nfqueue_target));
 }
 
 module_init(xt_nfqueue_init);
diff --git a/net/netfilter/xt_connmark.c b/net/netfilter/xt_connmark.c
index 92a5726..a8f0305 100644
--- a/net/netfilter/xt_connmark.c
+++ b/net/netfilter/xt_connmark.c
@@ -147,7 +147,7 @@ static int __init xt_connmark_init(void)
 
 static void __exit xt_connmark_fini(void)
 {
-	xt_register_matches(xt_connmark_match, ARRAY_SIZE(xt_connmark_match));
+	xt_unregister_matches(xt_connmark_match, ARRAY_SIZE(xt_connmark_match));
 }
 
 module_init(xt_connmark_init);

[-- Attachment #3: 02.diff --]
[-- Type: text/plain, Size: 926 bytes --]

[NETFILTER]: arp_tables: missing unregistration on module unload

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 7f7a882296c917251a7936b41ee001e545a09e6c
tree 9cf7af01ce1b1d8e97caa59d6efceeefab9a3b5b
parent c7b1507f3c040c02efa1b955f7180a33a232c4d9
author Patrick McHardy <kaber@trash.net> Wed, 11 Oct 2006 09:24:54 +0200
committer Patrick McHardy <kaber@trash.net> Wed, 11 Oct 2006 09:24:54 +0200

 net/ipv4/netfilter/arp_tables.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
index 17e1a68..0849f1c 100644
--- a/net/ipv4/netfilter/arp_tables.c
+++ b/net/ipv4/netfilter/arp_tables.c
@@ -1196,6 +1196,8 @@ err1:
 static void __exit arp_tables_fini(void)
 {
 	nf_unregister_sockopt(&arpt_sockopts);
+	xt_unregister_target(&arpt_error_target);
+	xt_unregister_target(&arpt_standard_target);
 	xt_proto_fini(NF_ARP);
 }
 

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

end of thread, other threads:[~2006-10-11  7:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 19:42 Fw: [Bug 7297] New: modprobe -v -r causes crash in xt_unregister_match Stephen Hemminger
2006-10-11  7:28 ` Patrick McHardy

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.