創建的內核線程長期佔用cpu,一直內核認為線程soft lockup,如無法獲取自旋鎖等;因此線程可適度調用schdule(),以進行進程的調度;因為kwatchdog的執行級別低,一直得不到執行

[ 8644.084020] BUG: soft lockup - CPU#0 stuck for 22s! [ip_consumer:7777]

[ 8644.087361] Modules linked in: kfw(O) dm_crypt snd_hda_codec_realtek nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc snd_hda_intel snd_hda_codec snd_hwdep ppdev snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd edac_core psmouse serio_raw fam15h_power k10temp edac_mce_amd soundcore sp5100_tco snd_page_alloc i2c_piix4 parport_pc mac_hid shpchp lp parport radeon ttm drm_kms_helper pata_atiixp drm i2c_algo_bit r8169 wmi [last unloaded: kfw]

[ 8644.087391] CPU 0

[ 8644.087392] Modules linked in: kfw(O) dm_crypt snd_hda_codec_realtek nfsd nfs lockd fscache auth_rpcgss nfs_acl sunrpc snd_hda_intel snd_hda_codec snd_hwdep ppdev snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device snd edac_core psmouse serio_raw fam15h_power k10temp edac_mce_amd soundcore sp5100_tco snd_page_alloc i2c_piix4 parport_pc mac_hid shpchp lp parport radeon ttm drm_kms_helper pata_atiixp drm i2c_algo_bit r8169 wmi [last unloaded: kfw]

[ 8644.087414]

[ 8644.087416] Pid: 7777, comm: ip_consumer Tainted: G           O 3.2.0-60-generic #91-Ubuntu MSI MS-7699/960-P43 (MS-7699)

[ 8644.087421] RIP: 0010:[<ffffffff81661cf9>]  [<ffffffff81661cf9>] _raw_spin_unlock_irqrestore+0x19/0x30

[ 8644.087428] RSP: 0018:ffff880607603618  EFLAGS: 00000282

[ 8644.087430] RAX: 0000000000000000 RBX: ffff8806076035a0 RCX: 000000000000009c

[ 8644.087432] RDX: 0000000000000001 RSI: 0000000000000282 RDI: 0000000000000282

[ 8644.087434] RBP: ffff880607603620 R08: 0000000000000004 R09: ffff88060760359c

[ 8644.087436] R10: 00000000000000c3 R11: ffff8805f31c1690 R12: ffff880607603588

[ 8644.087437] R13: ffffffff8166adde R14: ffff880607603620 R15: ffff88033556e400

[ 8644.087440] FS:  00007fc06919c700(0000) GS:ffff880607600000(0000) knlGS:0000000000000000

[ 8644.087442] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b

[ 8644.087443] CR2: 00007f5c7fc43000 CR3: 0000000001c05000 CR4: 00000000000406f0

[ 8644.087445] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000

[ 8644.087447] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

[ 8644.087449] Process ip_consumer (pid: 7777, threadinfo ffff8803687dc000, task ffff8805e0ea8000)

[ 8644.087451] Stack:

[ 8644.088005]  0000000000000282 ffff880607603640 ffffffff8103f331 ffff8805f5c87000

[ 8644.088005]  00000000c4c544f6 ffff880607603660 ffffffff8103f6b2 0000000000000002

[ 8644.088005]  ffff8805f2f28000 ffff8806076036e0 ffffffffa0006cba 000000000000003c

[ 8644.088005] Call Trace:

[ 8644.088005]  <IRQ>

[ 8644.088005]  [<ffffffff8103f331>] flush_gart+0x41/0x50

[ 8644.088005]  [<ffffffff8103f6b2>] gart_map_page+0x72/0x80

[ 8644.088005]  [<ffffffffa0006cba>] rtl8169_start_xmit+0x17a/0x580 [r8169]

[ 8644.088005]  [<ffffffff8103f640>] ? dma_map_area+0x130/0x130

[ 8644.088005]  [<ffffffff81549ce6>] dev_hard_start_xmit+0x246/0x520

[ 8644.088005]  [<ffffffff815669ad>] ? pfifo_fast_enqueue+0x8d/0xa0

[ 8644.088005]  [<ffffffff81566b6e>] sch_direct_xmit+0xfe/0x1d0

[ 8644.088005]  [<ffffffff81566ce6>] __qdisc_run+0xa6/0x130

[ 8644.088005]  [<ffffffff8153a19b>] ? __alloc_skb+0x4b/0x240

[ 8644.088005]  [<ffffffff8154a1a4>] dev_queue_xmit+0x1e4/0x420

[ 8644.088005]  [<ffffffff81551fc2>] neigh_resolve_output+0x122/0x210

[ 8644.088005]  [<ffffffff81580ffe>] ip_finish_output+0x17e/0x2f0

[ 8644.088005]  [<ffffffff81581b48>] ip_output+0x98/0xa0

[ 8644.088005]  [<ffffffff81581249>] ip_local_out+0x29/0x30

[ 8644.088005]  [<ffffffff815817aa>] ip_build_and_send_pkt+0x16a/0x210

[ 8644.088005]  [<ffffffff8159c9f2>] tcp_v4_send_synack+0x72/0xd0

[ 8644.088005]  [<ffffffff8159f974>] tcp_v4_conn_request+0x524/0x680

[ 8644.088005]  [<ffffffff8154fe0a>] ? dst_alloc+0x5a/0x170

[ 8644.088005]  [<ffffffff81596083>] ? tcp_rcv_state_process+0x163/0x5f0

[ 8644.088005]  [<ffffffff81164c74>] ? kmem_cache_free+0x104/0x110

[ 8644.088005]  [<ffffffff81596083>] ? tcp_rcv_state_process+0x163/0x5f0

[ 8644.088005]  [<ffffffff81596083>] ? tcp_rcv_state_process+0x163/0x5f0

[ 8644.088005]  [<ffffffff8153abb6>] ? __kfree_skb+0x26/0x30

[ 8644.088005]  [<ffffffff81596070>] tcp_rcv_state_process+0x150/0x5f0

[ 8644.088005]  [<ffffffff8159ee27>] tcp_v4_do_rcv+0xc7/0x1d0

[ 8644.088005]  [<ffffffff815a0861>] tcp_v4_rcv+0x691/0x7f0

[ 8644.088005]  [<ffffffffa0298d4d>] ? kfw_hook_func+0xad/0x140 [kfw]

[ 8644.088005]  [<ffffffff81574545>] ? nf_hook_slow+0x145/0x150

[ 8644.088005]  [<ffffffff815743c5>] ? nf_iterate+0x85/0xc0

[ 8644.088005]  [<ffffffff8157c3e5>] ip_local_deliver_finish+0xe5/0x280

[ 8644.088005]  [<ffffffff8157c748>] ip_local_deliver+0x88/0x90

[ 8644.088005]  [<ffffffff8157c09d>] ip_rcv_finish+0x10d/0x370

[ 8644.088005]  [<ffffffff8157c985>] ip_rcv+0x235/0x300

[ 8644.088005]  [<ffffffff8153a19b>] ? __alloc_skb+0x4b/0x240

[ 8644.088005]  [<ffffffff815477be>] __netif_receive_skb+0x4de/0x560

[ 8644.088005]  [<ffffffff815485b0>] netif_receive_skb+0x80/0x90

[ 8644.088005]  [<ffffffff815489ed>] ? dev_gro_receive+0x1cd/0x2d0

[ 8644.088005]  [<ffffffff81548700>] napi_skb_finish+0x50/0x70

[ 8644.088005]  [<ffffffff81548d35>] napi_gro_receive+0xf5/0x140

[ 8644.088005]  [<ffffffffa0002f18>] rtl8169_rx_interrupt.isra.73+0xe8/0x2b0 [r8169]

[ 8644.088005]  [<ffffffffa0006010>] rtl8169_poll+0x40/0xa0 [r8169]

[ 8644.088005]  [<ffffffff81548f7c>] net_rx_action+0x12c/0x280

[ 8644.088005]  [<ffffffff8106fc48>] __do_softirq+0xa8/0x210

[ 8644.088005]  [<ffffffff81661cce>] ? _raw_spin_lock+0xe/0x20

[ 8644.088005]  [<ffffffff8166c56c>] call_softirq+0x1c/0x30

[ 8644.088005]  [<ffffffff810162f5>] do_softirq+0x65/0xa0

[ 8644.088005]  [<ffffffff8107002e>] irq_exit+0x8e/0xb0

[ 8644.088005]  [<ffffffff8166ce33>] do_IRQ+0x63/0xe0

[ 8644.088005]  [<ffffffffa0298030>] ? kfw_ip_check_handler+0x200/0x200 [kfw]

[ 8644.088005]  [<ffffffff8166216e>] common_interrupt+0x6e/0x6e

[ 8644.088005]  <EOI>

[ 8644.088005]  [<ffffffffa0297996>] ? kfw_ip_hashtable_find+0x46/0x60 [kfw]

[ 8644.088005]  [<ffffffffa0297e4e>] kfw_ip_check_handler+0x1e/0x200 [kfw]

[ 8644.088005]  [<ffffffffa02980b8>] kfw_ip_work_thread+0x88/0xa0 [kfw]

[ 8644.088005]  [<ffffffff8108b8ac>] kthread+0x8c/0xa0

[ 8644.088005]  [<ffffffff8166c474>] kernel_thread_helper+0x4/0x10

[ 8644.088005]  [<ffffffff8108b820>] ? flush_kthread_worker+0xa0/0xa0

[ 8644.088005]  [<ffffffff8166c470>] ? gs_change+0x13/0x13

[ 8644.088005] Code: 66 90 5d c3 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 53 66 66 66 66 90 48 89 f3 e8 0e cf 9d ff 66 90 48 89 df 57 9d <66> 66 90 66 90 5b 5d c3 66 66 66 66 66 66 2e 0f 1f 84 00 00 00

linux內核輸出soft lockup的更多相关文章

  1. 【转】Linux內核驅動之GPIO子系統(一)GPIO的使用 _蝸牛

    原文网址:http://tc.chinawin.net/it/os/article-2512b.html 一 概述 Linux內核中gpio是最簡單,最常用的資源(和interrupt ,dma,ti ...

  2. 第一章 Linux內核簡介

    1. Linux是類Unix系統,但他不是Unix. 儘管Linux借鑑了Unix的許多設計並且實現了Unix的API(由Posix標準和其他Single Unix Specification定義的) ...

  3. Linux內核中常用的一些延時方法

    Linux內核中常用的一些延時方法 這些方法在以下路徑下定義:kernel/include/linux/delay.h #ifndef _LINUX_DELAY_H #define _LINUX_DE ...

  4. CVE-2016-8655,af_packet Linux 內核通殺提權漏洞淺析

    簡單寫一下思路 這個東西需要namespace方面的支援, 首先open socket , 一連串路徑(packet_set_ring()->init_prb_bdqc()->prb_se ...

  5. linux缺頁異常處理--內核空間[v3.10]

    缺頁異常被觸發通常有兩種情況—— 1.程序設計的不當導致訪問了非法的地址 2.訪問的地址是合法的,但是該地址還未分配物理頁框 下面解釋一下第二種情況,這是虛擬內存管理的一個特性.盡管每個進程獨立擁有3 ...

  6. Linux下安裝Oracle database內核參數設置

    參考:1529864.1 ************************************************** RAM                                  ...

  7. Linux soft lockup分析

    关键词:watchdog.soft lockup.percpu thread.lockdep等. 近日遇到一个soft lockup问题,打印类似“[ 56.032356] NMI watchdog: ...

  8. Linux soft lockup 和 hard lockup

    一. 整体介绍 soft lockup:检测调度异常, 一般是驱动禁止调度或者阻塞比如while(1), 导致无法调度其他线程, 需要注意的是, 应用程序while(1)不会影响其调度, 只要有更高的 ...

  9. soft lockup和hard lockup介绍

    转自:http://www.cnblogs.com/openix/p/4034530.html 转自:http://blog.csdn.net/panzhenjie/article/details/1 ...

随机推荐

  1. T1加权像(T1 weighted image,T1WI)

    T1加权成像(T1-weighted imaging,T1WI)是指这种成像方法重点突出组织纵向弛豫差别,而尽量减少组织其他特性如横向弛豫等对图像的影响. 弛豫:物理用语,从某一个状态恢复到平衡态的过 ...

  2. Max double slice sum 的解法

    1. 上题目: Task description A non-empty zero-indexed array A consisting of N integers is given. A tripl ...

  3. jquery load 和 iframe 比较

    如果要加载的东西比较简单,里面的没有复杂的数据和逻辑,可以使用load.如果要加载的页面自身有复杂的逻辑.操作,还是建议使用ifame,因为iframe里面可以引入自身的js和样式,而load引入的东 ...

  4. 设置session生存时间问题

    // 在 php.ini 中设置 session.gc_maxlifetime = 1440 (默认) // 或者在 session_start() 前,设置 $lifetime = 86400 , ...

  5. 学习 opencv---(8)非线性滤波:中值滤波,双边滤波

    正如我们上一篇文章中讲到的,线性滤波可以实现很多种不同的图像变换.然而非线性滤波,如中值滤波器和双边滤波器,有时可以达到更好的实现效果. 邻域算子的其他一些例子还有对 二值图像进行操作的形态学算子,用 ...

  6. 用Burpsuite破解网站密码

    burpsuite专业版 一个网站 方法/步骤   1 切换至proxy选项卡的Option选项下,设置代理地址和端口:127.0.0.1:8080. 2 启动刚刚设置的代理 3 打开Internet ...

  7. xml编辑器

    cstring转cha型方法在mfc中用过可行 int CstringToch(CString str, char *ch) { assert(ch); memset(ch, 0, sizeof(ch ...

  8. linux下vmware的安装、物理分区使用及卸载

    1.安装 先下载安装文件VMware-Workstation-Full-12 在命令行下执行下载的文件安装即可(需要root权限) wget https://download3.vmware.com/ ...

  9. C# I/O

    获取运行时的动态目录 private static string GetDataDir_Data() { var parent = Directory.GetParent(Directory.GetC ...

  10. Mosquitto pub/sub服务实现代码浅析-主体框架

    Mosquitto 是一个IBM 开源pub/sub订阅发布协议 MQTT 的一个单机版实现(目前也只有单机版),MQTT主打轻便,比较适用于移动设备等上面,花费流量少,解析代价低.相对于XMPP等来 ...