加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Unhandled kernel unaligned access  崩溃的mips内核问题

(2013-07-26 12:39:28)
标签:

linux

mips

it

分类: Linux/Unix
log信息如下:
http://s8/mw690/4ba5b45etx6BmddWHyL77&690kernel unaligned access  崩溃的mips内核问题" TITLE="Unhandled kernel unaligned access  崩溃的mips内核问题" />

Jul 26 12:21:27 localhost kernel: [ 1767.676000] kernel cap : sys_cap_user_set() begin...
Jul 26 12:21:27 localhost kernel: [ 1767.724000] kernel cap : sys_cap_user_set() user = 507
Jul 26 12:21:27 localhost kernel: [ 1767.772000] Unhandled kernel unaligned access[#4]:
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Cpu 2
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $ 0   : 0000000000000000 000000007000fce1 0041401800414008 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $ 4   : 0000000000000000 98000000f5b13d50 0000000000000000 0000001ae7c96c29
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $ 8   : 0000000000000000 000000000000003e ffffffffffffffff ffffffff80ab99a8
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $12   : 000000007000fce1 000000001000001e 90000000403d7790 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $16   : ffffff0000000000 ffffffff8c450000 0000000000000000 00000000000001fb
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $20   : 0000000000000000 0000000000000000 0000000000000000 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $24   : 0000000000000000 ffffffff805e5fc4                                  
Jul 26 12:21:27 localhost kernel: [ 1767.824000] $28   : 98000000f5b10000 98000000f5b13d20 000000007fb4acc0 ffffffff80300404
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Hi    : 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Lo    : 003d0a55be075700
Jul 26 12:21:27 localhost kernel: [ 1767.824000] epc   : ffffffff80321994 do_ade+0x138/0x5f0
Jul 26 12:21:27 localhost kernel: [ 1767.824000]     Tainted: G      D    
Jul 26 12:21:27 localhost kernel: [ 1767.824000] ra    : ffffffff80300404 ret_from_exception+0x0/0x10
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Status: 7000fce3    KX SX UX KERNEL EXL IE 
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Cause : 10000010
Jul 26 12:21:27 localhost kernel: [ 1767.824000] BadVA : 004140180041400b
Jul 26 12:21:27 localhost kernel: [ 1767.824000] PrId  : 00006305 (ICT Loongson-3A)
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Modules linked in: fuse sunrpc bios ipv6 snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Process capset (pid: 7120, threadinfo=98000000f5b10000, task=98000000f59c2910, tls=000000002ac4f490)
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Stack : 00000000000003e8 000000003b9aca00 0000000000000000 000000007fb4acd8
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         0000000000000000 ffffffff80300404 0000000000000000 000000007000fce1
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         0041401800414008 0000000000000000 ffffffff80a0f9b0 0000000000000001
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         0000000000000000 0000001ae7c96c29 0000000000000000 000000000000003e
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         ffffffffffffffff ffffffff80ab99a8 98000000fc306250 0000000000000003
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         90000000403d7790 0000000000000000 0000000000000000 000000007fb4acd8
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         0000000000000000 00000000000001fb 0000000000000000 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         0000000000000000 0000000000000000 0000000000000000 ffffffff805e5fc4
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         98000000f5b13e48 ffffffff81b60000 98000000f5b10000 98000000f5b13e80
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         000000007fb4acc0 ffffffff8056deb0 000000007000fce3 0000000000000000
Jul 26 12:21:27 localhost kernel: [ 1767.824000]         ...
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Call Trace:
Jul 26 12:21:27 localhost kernel: [ 1767.824000] [] do_ade+0x138/0x5f0
Jul 26 12:21:27 localhost kernel: [ 1767.824000] [] ret_from_exception+0x0/0x10
Jul 26 12:21:27 localhost kernel: [ 1767.824000] [] sys_cap_user_set+0x48/0x1cc
Jul 26 12:21:27 localhost kernel: [ 1767.824000] [] trace_a_syscall+0x90/0xb4
Jul 26 12:21:27 localhost kernel: [ 1767.824000] 
Jul 26 12:21:27 localhost kernel: [ 1767.824000] 
Jul 26 12:21:27 localhost kernel: [ 1767.824000] Code: 00641824  14600102  00000000 <88520003> 98520000  24020000  080c868d  00000000  df840028 
********************************************************************************************************************
要死了,什么问题????????????????????

*************************************************
代码错误,一步一步打印找问题所在
》》》》》》》》》》》》》》》》》》》》》》
问题的原因是此系统内核是64bit,而操作系统是32bit,这样用户空间和内核空间传参可能存在问题。
so...改为 用户空间传递字符串到内核空间,内核空间再将字符串转换下就ok了

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有