New: modprobe -v -r causes crash in xt_unregister_match
Subsystems (2)
Looks like an xt_tables bug.
Quoted 65 lines · On Tue, 10 Oct 2006 05:10:47 -0700 [email protected] 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: [email protected]
Submitter: [email protected]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_krb5auth_rpcgsssunrpcebt_802_3ebt_redirectebt_snatebt_markebtable_na
tebt_pkttypeebt_dnatebt_amongebt_limitebtable_filterebt_ipebt_arpreplyebt_stpebt_logebt_mark_mebt_arpebt_vlanebtable_brouteebtablesxt_NFQUEUExt_CONNSE
CMARKxt_statisticxt_policyxt_multiportxt_lengthbridge sctpts_kmpdccp_ipv6dccp_ipv4dccpxt_pkttypeipt_LOGxt_limitautofs4ip6t_REJECTxt_tcpudpipt_REJECTxt_stateiptable_filterip_conntracknfnetlinkip_tablesip6table_filterip6_tablesx_tablesipv6 loopdm_modtg3 generic qla2xxxscsi_transport_fcfirmware_classsd_m
odscsi_mod
NIP: D0000000000E667C LR: D0000000000E665C CTR: C000000000391EDC
REGS:c0000000510db900TRAP: 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:c0000000510d8000CPU: 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/0x40Instruction dump:e87b00001f9c00607c7c1a1448001999e8410028e95d0008e97d00003c0000103d20002060000100 61290200f96a0000<f94b0008>f81d0000f93d000860000000Steps to reproduce:
Quoted 8 lines
find
/lib/modules/uname -r/kernel/net/ -name "*.ko" | xargs -n1 basename | sed 's@\.ko$@@' | xargs -n1 modprobe -vfind
/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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Stephen Hemminger <[email protected]>
Quoted 1 line · Stephen Hemminger
Looks like an
xt_tablesbug.
Yes, an old one and a new one. I've queued these two patches.
[NETFILTER]: fix cut-and-paste error in exit functions
---
commit c7b1507f3c040c02efa1b955f7180a33a232c4d9
tree fd21258deca0e5d8859271bb2c745302ce5a1e2a
parent 26da6cf44bc574d528d715a17e48f54da061c151
author Patrick McHardy <[email protected]> Wed, 11 Oct 2006 08:35:50 +0200 committer Patrick McHardy <[email protected]> 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(-)
net/netfilter/xt_NFQUEUE.c +1 -1
@@ -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);
net/netfilter/xt_connmark.c +1 -1
@@ -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);
[NETFILTER]: arp_tables: missing unregistration on module unload
---
commit 7f7a882296c917251a7936b41ee001e545a09e6c
tree 9cf7af01ce1b1d8e97caa59d6efceeefab9a3b5b
parent c7b1507f3c040c02efa1b955f7180a33a232c4d9
author Patrick McHardy <[email protected]> Wed, 11 Oct 2006 09:24:54 +0200 committer Patrick McHardy <[email protected]> Wed, 11 Oct 2006 09:24:54 +0200
net/ipv4/netfilter/arp_tables.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
net/ipv4/netfilter/arp_tables.c +2 -0
@@ -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 ); }