{"id":2069,"date":"2017-02-05T23:14:22","date_gmt":"2017-02-05T15:14:22","guid":{"rendered":"http:\/\/www.51cos.com\/?p=2069"},"modified":"2017-02-05T23:29:32","modified_gmt":"2017-02-05T15:29:32","slug":"linux%e5%a6%82%e4%bd%95%e5%ae%9a%e4%bd%8d%e6%ad%bb%e6%9c%ba%e9%97%ae%e9%a2%98%ef%bc%9a-cpu-0-unable-to-handle-kernel-paging-request-at-virtual-address","status":"publish","type":"post","link":"http:\/\/www.51cos.com\/?p=2069","title":{"rendered":"Linux\u5982\u4f55\u5b9a\u4f4d\u6b7b\u673a\u95ee\u9898\uff1a CPU 0 Unable to handle kernel paging request at virtual address"},"content":{"rendered":"<p>Linux\u8fd0\u884c\u7684\u65f6\u5019\u5d29\u6e83\u6b7b\u673a\u4e86\uff0c\u6253\u5370\u5982\u4e0b\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\nCPU 0 Unable to handle kernel paging request at virtual address 0000000000000318, epc == ffffffffc0445a10, ra == ffffffffc04459dc<br \/>\nOops[#1]:<br \/>\nCpu 0<br \/>\n<span class=\"katex math inline\">0   : 0000000000000000 ffffffff808b1da0 0000000000000300 0000000000000030<\/span> 4   : 0000000000000000 a8000000029d2160 000000000000002e a800000002559000<br \/>\n<span class=\"katex math inline\">8   : a8000000029d2140 0000000000000001 0000000000000000 0000000000000018<\/span>12   : 0000000000000000 000000001000001f a800000031180000 0000000000000000<br \/>\n<span class=\"katex math inline\">16   : a8000000029d214e 0000000000000300 a8000000012d1600 a8000000029c8580<\/span>20   : a8000000012d1870 ffffffff812408e8 0000000000000806 0000000000000000<br \/>\n<span class=\"katex math inline\">24   : 00000000000002b1 000000555d5887b0<\/span>28   : ffffffff811c4000 ffffffff811c7970 ffffffff811c7970 ffffffffc04459dc<br \/>\nHi    : 0000000000000000<br \/>\nLo    : 0000000000000000<br \/>\nepc   : ffffffffc0445a10 rlb_arp_recv+0x128\/0x228 [bonding]<br \/>\n    Tainted: P<br \/>\nra    : ffffffffc04459dc rlb_arp_recv+0xf4\/0x228 [bonding]<br \/>\nStatus: 1010cce3    KX SX UX KERNEL EXL IE<br \/>\nCause : 00800008<br \/>\nBadVA : 0000000000000318<br \/>\nPrId  : 000d9202 (Cavium Octeon II)<br \/>\nModules linked in: bonding run(P) raid vscsih iscsitgt disk vdisk cache(P) service gmeta mpt2sas netlink bubble platform octeon_ethernet at24<br \/>\nProcess swapper (pid: 0, threadinfo=ffffffff811c4000, task=ffffffff811e5280, tls=0000000000000000)<br \/>\nStack : 0000000000000003 ffffffff81241498 ffffffff812414d8 a8000000029c8580<br \/>\n        a8000000029c8644 a800000002559000 ffffffff811c79b0 ffffffff807a7648<br \/>\n        000d0300000d0300 ffffffff808b22e0 000000000000003c a800000002559600<br \/>\n        a8000000029c8580 a800000002b7d280 0000000000000000 0000000000000001<br \/>\n        0000000000000001 0000000000000001 ffffffff811c7a10 ffffffffc0010154<br \/>\n        ffffffff811c7b80 ffffffff802d22e8 0000000000000000 ffffffff80356140<br \/>\n        0000000000000000 0000000000000000 8001670000000000 0000000000000001<br \/>\n        0000000000000003 0000000000000001 0000000000000000 000000000000ffff<br \/>\n        0000000000000000 ffffffffc001ac00 0000000000000020 000000011000001f<br \/>\n        a800000031180000 0000000000000000 ffffffff811d2a00 8001670000000100<br \/>\n        ...<br \/>\nCall Trace:<br \/>\n[<ffffffffc0445a10>] rlb_arp_recv+0x128\/0x228 [bonding]<br \/>\n[<ffffffff807a7648>] netif_receive_skb+0x3f0\/0x4d8<br \/>\n[<ffffffffc0010154>] cvm_oct_napi_poll_38+0x7ac\/0x10e8 [octeon_ethernet]<br \/>\n[<ffffffff807a8218>] net_rx_action+0x128\/0x280<br \/>\n[<ffffffff80314018>] __do_softirq+0x130\/0x248<br \/>\n[<ffffffff803141b8>] do_softirq+0x88\/0x90<br \/>\n[<ffffffff80314418>] irq_exit+0x70\/0x88<br \/>\n[<ffffffff808b22e0>] do_IRQ+0x48\/0x60<br \/>\n[<ffffffff80104cd4>] octeon_irq_ip2_ciu+0x94\/0xb8<br \/>\n[<ffffffff80103348>] plat_irq_dispatch+0x80\/0xd0<br \/>\n[<ffffffff802d22e8>] ret_from_irq+0x0\/0x4<br \/>\n[<ffffffff802d24e0>] r4k_wait+0x20\/0x40<br \/>\n[<ffffffff802d4794>] cpu_idle+0x84\/0xa0<br \/>\n[<ffffffff808a3270>] rest_init+0x80\/0x98<br \/>\n[<ffffffff81243b5c>] start_kernel+0x37c\/0x4c4<\/p>\n<p>Code: de440268  70431003  0082882d <92230018> 10600007  3c02808b  8a020018  8e230000  9a02001b<br \/>\nKernel panic - not syncing: Fatal exception in interrupt<\/p>\n<p>*** NMI Watchdog interrupt on Core 0x01 ***<br \/>\n $0 0x0000000000000000 at 0xffffffff803471bc<br \/>\n v0 0xffffffff802d24c0 v1 0x0000000000000001<br \/>\n a0 0xfffffffffffffffd a1 0x0000000000000000<br \/>\n a2 0xffffffff812403c8 a3 0x0000000000000001<br \/>\n a4 0x0000000000000800 a5 0x0000000000000020<br \/>\n a6 0x0000000000000000 a7 0x000000aaab43b498<br \/>\n t0 0x0000000000000000 t1 0x000000001000001f<br \/>\n t2 0xa800000031188000 t3 0x0000000000000000<br \/>\n s0 0xffffffff853e0000 s1 0xffffffff853f0000<br \/>\n s2 0xffffffff811c8980 s3 0x0000000000000000<br \/>\n s4 0x0000000000000002 s5 0x0000000000200200<br \/>\n s6 0xffffffff811c8990 s7 0xffffffff811287d0<br \/>\n t8 0x0000000000000000 t9 0x0000005561b7f7b0<br \/>\n k0 0x0000000000000000 k1 0x0000000000000000<br \/>\n gp 0xa8000000310fc000 sp 0xa8000000310ffb10<br \/>\n s8 0xa8000000310ffb10 ra 0xffffffff802dbc18<br \/>\n err_epc 0xffffffff802d24e0 epc 0xffffffff802d24e0<br \/>\n status 0x000000001058cce4 cause 0x0000000040808800<br \/>\n sum0 0x0000000000000000 en0 0x0000000000000000<br \/>\n*** Chip soft reset soon ***<\/p>\n<p>\u91cd\u70b9\u5728\u8fd9\u91cc\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\nepc   : ffffffffc0445a10 rlb_arp_recv+0x128\/0x228<br \/>\nCall Trace:<br \/>\n[<ffffffffc0445a10>] rlb_arp_recv+0x128\/0x228 [bonding]<\/p>\n<p>\u53cd\u6c47\u7f16\u53d1\u751f\u6b7b\u673a\u7684ko\u6a21\u5757<\/p>\n<pre class=\"prettyprint linenums\" >\nmips64-octeon-linux-gnu-objdump -S  bonding.ko<\/p>\n<p>\u641c\u7d22 rlb_arp_recv\u7684\u57fa\u5740\uff0c\u5e76\u8ba1\u7b97\u6b7b\u673a\u7684\u4f4d\u7f6e\uff1a<\/p>\n<pre class=\"prettyprint linenums\" >\n000000000000e8e8 <rlb_arp_recv>:<\/p>\n<p>0xe8e8 + 0x128 = 0xea10<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c\u6b63\u786e\u7684\u51fa\u9519\u4f4d\u7f6e\u662f     if ((client_info->assigned) &&<\/p>\n<pre class=\"prettyprint linenums\" >\n _lock_rx_hashtbl(bond);<\/p>\n<p>        hash_index = _simple_hash((u8*)&(arp->ip_src), sizeof(arp->ip_src));<br \/>\n        client_info = &(bond_info->rx_hashtbl[hash_index]);<br \/>\n    e9fc:       7c82f803        dext    v0,a0,0x0,0x20<br \/>\n    ea00:       24030030        li      v1,48<br \/>\n    ea04:       de440268        ld      a0,616(s2)<br \/>\n    ea08:       70431003        dmul    v0,v0,v1<br \/>\n    ea0c:       0082882d        daddu   s1,a0,v0<\/p>\n<p>        if ((client_info->assigned) &&<br \/>\n    ea10:       92230018        lbu     v1,24(s1)<br \/>\n    ea14:       10600007        beqz    v1,ea34 <rlb_arp_recv+0x14c><br \/>\n    ea18:       3c020000        lui     v0,0x0<br \/>\n    ea1c:       8a020018        lwl     v0,24(s0)<br \/>\n    ea20:       8e230000        lw      v1,0(s1)<br \/>\n    ea24:       9a02001b        lwr     v0,27(s0)<br \/>\n    ea28:       10620019        beq     v1,v0,ea90 <rlb_arp_recv+0x1a8><br \/>\n    ea2c:       00000000        nop<br \/>\n        spin_lock_bh(&(BOND_ALB_INFO(bond).rx_hashtbl_lock));<\/p>\n<p>epc\u00a0:exception\u00a0program\u00a0counter\u00a0\u00a0,\u00a0\u5f02\u5e38\u7a0b\u5e8f\u8ba1\u6570\u5668,\u00a0\u00a0ra\u00a0:\u00a0return\u00a0address\u00a0\u8fd4\u56de\u5730\u5740<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u8fd0\u884c\u7684\u65f6\u5019\u5d29\u6e83\u6b7b\u673a\u4e86\uff0c\u6253\u5370\u5982\u4e0b\uff1a CPU 0 Unable to handle kernel pag [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2069","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2069"}],"version-history":[{"count":2,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2069\/revisions"}],"predecessor-version":[{"id":2071,"href":"http:\/\/www.51cos.com\/index.php?rest_route=\/wp\/v2\/posts\/2069\/revisions\/2071"}],"wp:attachment":[{"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2069"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.51cos.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}