开发者社区 问答 正文

Linux系统内核报错?报错

生产环境的centos 5.5 宕机,查看系统日志如下,各位大侠看看是什么原因.

Sep 19 01:55:33 localhost kernel: Bad page state in process 'sshd'
Sep 19 01:55:33 localhost kernel: page:c1eac980 flags:0xc0000000 mapping:00000000 mapcount:-65536 count:0 (Tainted: G    B)
Sep 19 01:55:33 localhost kernel: Trying to fix it up, but a reboot is needed
Sep 19 01:55:33 localhost kernel: Backtrace:
Sep 19 01:55:33 localhost kernel:  [<c045ae56>] bad_page+0x52/0x79
Sep 19 01:55:33 localhost kernel:  [<c045b62c>] get_page_from_freelist+0x1fc/0x370
Sep 19 01:55:33 localhost kernel:  [<c045b7f7>] __alloc_pages+0x57/0x297
Sep 19 01:55:33 localhost kernel:  [<c0468a8d>] anon_vma_prepare+0x76/0xa5
Sep 19 01:55:33 localhost kernel:  [<c0462d89>] __handle_mm_fault+0x1c4/0xa15
Sep 19 01:55:33 localhost kernel:  [<c0466c3a>] do_mmap_pgoff+0x57b/0x6c1
Sep 19 01:55:33 localhost kernel:  [<c06190b7>] do_page_fault+0x233/0x4e1
Sep 19 01:55:33 localhost kernel:  [<c0618e84>] do_page_fault+0x0/0x4e1
Sep 19 01:55:33 localhost kernel:  [<c0405a89>] error_code+0x39/0x40
Sep 19 01:55:33 localhost kernel:  =======================

展开
收起
爱吃鱼的程序员 2020-06-22 15:38:24 667 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
    @晓俊 @蟋蟀 @鸟哥

    trytorebootplease

    就是想知道原因,不能老是手动重启吧……

    引用来自“张大鹏”的答案

    trytorebootplease

    ssh只是登陆协议,怎么会造成系统崩溃,而且报错的时候并没有人为的ssh登陆很少见到内核报错的。是不是你升级之后的情景?是否升级没有成功出现的问题呢?可能是内核的bug,由于某些情况触发(类似资源死锁),今天有台服务器就是出现写硬盘超时,导致系统宕机。重启搞电。这个可能性很大这种问题不多见,最好记录下来。好好的,ssh怎么会导致系统崩溃呢,有人在暴力猜解ssh密码吧,应该不会,防火墙有限制,只有内网指定ip才能使用ssh登陆服务器

    引用来自“张大鹏”的答案

    引用来自“张大鹏”的答案

    trytorebootplease

    ssh的Bug吧看上去是内存冲突了
    2020-06-22 15:38:42
    赞同 展开评论