|
本帖最后由 sxgpic 于 2019-4-17 19:38 编辑
实测,@cmheia 的源码跟我自己修改的源码效果完全一致,虽然有些地方改法不一样,但基本一致。
在 lean 的 trunk 版本和 18.06.2 版本中,@cmheia 的源码编译的内核模块一加载也一样直接 kernel panic。
我以为我自己修改的代码有问题,@cmheia 的应该没问题,我错了。
- [ 184.957970] CPU 0 Unable to handle kernel paging request at virtual address 27bdffe0, epc == 27bdffe0, ra == 81421d80
- [ 184.968900] Oops[#1]:
- [ 184.971247] CPU: 0 PID: 4242 Comm: insmod Tainted: P 4.14.109 #0
- [ 184.978676] task: 826ad080 task.stack: 82536000
- [ 184.983279] $ 0 : 00000000 00000000 27bdffe0 00000000
- [ 184.988627] $ 4 : 83805468 00002000 8268665c 01080020
- [ 184.993977] $ 8 : 00000000 80398f30 00000001 000006c0
- [ 184.999329] $12 : 00013880 00012c7b 00000000 00000000
- [ 185.004679] $16 : 83805468 00002000 80245898 825378e2
- [ 185.010029] $20 : 82537934 82527180 00002000 00000005
- [ 185.015380] $24 : 00000000 80470000
- [ 185.020729] $28 : 82536000 82537858 82527180 81421d80
- [ 185.026082] Hi : 0000003d
- [ 185.029022] Lo : 45900000
- [ 185.031966] epc : 27bdffe0 0x27bdffe0
- [ 185.038094] ra : 81421d80 osl_dma_alloc_consistent+0xa8/0xcc [wl]
- [ 185.044554] Status: 11009403 KERNEL EXL IE
- [ 185.048843] Cause : 00800008 (ExcCode 02)
- [ 185.052922] BadVA : 27bdffe0
- [ 185.055855] PrId : 00019749 (MIPS 74Kc)
- [ 185.059844] Modules linked in: wl(P+) wl_glue xt_FULLCONENAT pppoe ppp_async pppox ppp_mppe ppp_generic nf_nat_p p t p nf_conntrack_p p t p nf_conntrack_ipv6 lzo lz4 iptable_nat ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_tcpmss xt_statistic xt_state xt_recent xt_policy xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl xt_helper xt_esp xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_TPROXY xt_TCPMSS xt_REDIRECT xt_LOG xt_HL xt_FLOWOFFLOAD xt_DSCP xt_CT xt_CLASSIFY ts_fsm ts_bm slhc nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_conntrack_ipv4 nf_nat_ipv4 nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_log_ipv4 nf_flow_table_hw nf_flow_table nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp
- [ 185.132463] nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda macvlan lzo_decompress lzo_compress lz4_decompress lz4_compress iptable_raw iptable_mangle iptable_filter ipt_ah ipt_ECN ip_tables crc_ccitt fuse sch_cake tcp_bbr act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_tbf sch_htb sch_hfsc sch_ingress xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip
- [ 185.204341] ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables x_tables ip_gre gre ifb ipcomp6 xfrm6_tunnel xfrm6_mode_tunnel xfrm6_mode_transport xfrm6_mode_beet esp6 ah6 ipcomp xfrm4_tunnel xfrm4_mode_tunnel xfrm4_mode_transport xfrm4_mode_beet esp4 ah4 tunnel6 tunnel4 ip_tunnel tun af_key xfrm_user xfrm_ipcomp xfrm_algo nls_utf8 nls_cp936 nls_base zram zsmalloc sha256_generic sha1_generic jitterentropy_rng drbg md5 hmac echainiv ecb des_generic deflate zlib_inflate zlib_deflate cbc authenc crypto_acompress leds_gpio gpio_button_hotplug aead cryptomgr crypto_null crypto_hash
- [ 185.262191] Process insmod (pid: 4242, threadinfo=82536000, task=826ad080, tls=77f33d98)
- [ 185.270402] Stack : 00000001 01080020 00000000 00000100 00000000 800ceea0 00000000 00080008
- [ 185.278946] 00000020 00002000 8268665c 81419294 81623ad0 81623ae8 81623af4 814607d4
- [ 185.287490] 8268665c 00000400 82537a07 82686600 82537934 825378e2 00000100 00000005
- [ 185.296035] 00000200 00000734 b8001200 81419b30 82537970 81733030 00000002 82537a0c
- [ 185.304581] 82537934 8268665c 00057a04 fffffff0 00001ff0 00000040 00000040 00000040
- [ 185.313125] ...
- [ 185.315628] Call Trace:
- [ 185.315637]
- [ 185.319681] [<800ceea0>] __slab_alloc.isra.21.constprop.24+0x20/0x44
- [ 185.328477] [<81419294>] bcmwpa_cipher2wsec+0x2778/0x2850 [wl]
- [ 185.336602] [<814607d4>] phy_getintvar_default+0x14/0x44 [wl]
- [ 185.345049] [<81419b30>] dma_attach+0x7c4/0xa44 [wl]
- [ 185.353053] [<815aaacc>] wlc_bmac_attach+0xdfc/0x1740 [wl]
- [ 185.361523] [<8156f8f0>] wlc_attach+0x2ac/0x1cac [wl]
- [ 185.366870] [<800cf560>] __kmalloc+0xfc/0x1cc
- [ 185.371495] [<8026e430>] alloc_netdev_mqs+0x248/0x304
- [ 185.378897] [<81421c40>] osl_malloc+0x28/0x78 [wl]
- [ 185.386641] [<81548adc>] wl_free+0x440/0x720 [wl]
- [ 185.391968] [<803861a4>] idr_alloc_cyclic+0xe8/0x118
- [ 185.397244] [<80138474>] kernfs_activate+0xf0/0x128
- [ 185.404932] [<81548da0>] wl_free+0x704/0x720 [wl]
- [ 185.410049] [<825590d8>] wl_glue_set_remove_callback+0x90/0xc0 [wl_glue]
- [ 185.416966] [<801fdc9c>] get_device+0x18/0x30
- [ 185.421599] [<802457c0>] bcma_device_probe+0x38/0x70
- [ 185.426891] [<8013b058>] sysfs_create_dir_ns+0x5c/0xb8
- [ 185.432211] [<80202fc8>] really_probe+0x130/0x2a0
- [ 185.437014] [<800a7c68>] kstrdup+0x40/0x84
- [ 185.441465] [<802031dc>] __driver_attach+0xa4/0xdc
- [ 185.446350] [<80203138>] __driver_attach+0x0/0xdc
- [ 185.451163] [<80201204>] bus_for_each_dev+0x5c/0xbc
- [ 185.456252] [<80387290>] klist_add_tail+0x24/0x50
- [ 185.461286] [<80202544>] bus_add_driver+0xf8/0x218
- [ 185.466283] [<80203988>] driver_find+0x1c/0x48
- [ 185.472915] [<823c0000>] init_module+0x0/0x84 [wl]
- [ 185.477817] [<80203a60>] driver_register+0xac/0xfc
- [ 185.482717] [<80034058>] __queue_work+0x2d4/0x36c
- [ 185.487522] [<825591d0>] wl_glue_register+0x30/0x80 [wl_glue]
- [ 185.495704] [<823c002c>] init_module+0x2c/0x84 [wl]
- [ 185.500685] [<80001250>] do_one_initcall+0xd0/0x1a0
- [ 185.505851] [<80091ef4>] free_hot_cold_page+0x1b8/0x1f4
- [ 185.511209] [<800c3bc4>] remove_vm_area+0x94/0xb0
- [ 185.516184] [<80072214>] do_init_module+0x74/0x1d0
- [ 185.521167] [<800c3ccc>] __vunmap+0xec/0x128
- [ 185.525864] [<80071428>] load_module+0x1f6c/0x2354
- [ 185.530753] [<8006ecc4>] unknown_module_param_cb+0x0/0xa8
- [ 185.536247] [<8006e424>] module_sect_show+0x0/0x18
- [ 185.541166] [<80019734>] blast_dcache32+0x0/0xd8
- [ 185.545882] [<80071930>] SyS_init_module+0x120/0x17c
- [ 185.551064] [<8000fe6c>] syscall_common+0x34/0x58
- [ 185.555878]
- [ 185.557397] Code: (Bad address in epc)
- [ 185.561247]
- [ 185.562928] ---[ end trace 69c49774a8b33eaa ]---
- [ 185.573421] Kernel panic - not syncing: Fatal exception
- [ 185.581565] Rebooting in 3 seconds..
复制代码
|
|