lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 17 Sep 2015 13:02:30 +0100
From:	David Woodhouse <dwmw2@...radead.org>
To:	Francois Romieu <romieu@...zoreil.com>
Cc:	Stephen Hemminger <stephen@...workplumber.org>,
	David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net 2/2]  8139cp: reset BQL when ring tx ring cleared

On Mon, 2015-09-14 at 23:59 +0200, Francois Romieu wrote:
> Instant (untested) hack below.

That seems to trigger a lot, but ultimately doesn't help...

[  250.998980] 8139cp 0000:00:0b.0 eth1: Timeout head=0000000b, tail=0000000a   
[  252.637287] net_ratelimit: 5 callbacks suppressed                            
[  252.642022] 8139cp 0000:00:0b.0 eth1: Timeout head=0000003f, tail=0000003e   
[  252.973255] 8139cp 0000:00:0b.0 eth1: Timeout head=00000028, tail=00000027   
[  253.911945] 8139cp 0000:00:0b.0 eth1: Timeout head=00000010, tail=0000000f   
[  254.151013] 8139cp 0000:00:0b.0 eth1: Timeout head=0000000e, tail=0000000d   
[  255.551730] 8139cp 0000:00:0b.0 eth1: Timeout head=00000025, tail=00000024   
[  255.568070] 8139cp 0000:00:0b.0 eth1: Timeout head=00000027, tail=00000024   
[  255.575717] 8139cp 0000:00:0b.0 eth1: Timeout head=0000002a, tail=00000024   
[  255.583035] 8139cp 0000:00:0b.0 eth1: Timeout head=0000002b, tail=00000024   
[  255.590361] 8139cp 0000:00:0b.0 eth1: Timeout head=0000002c, tail=00000024   
[  255.598080] 8139cp 0000:00:0b.0 eth1: Timeout head=0000002e, tail=00000024   
[  267.066384] ------------[ cut here ]------------                             
[  267.071053] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x1e5/0x200()                                                                 
[  267.079526] NETDEV WATCHDOG: eth1 (8139cp): transmit queue 0 timed out       
[  267.086051] Modules linked in: 8139cp sch_teql mii iptable_nat pppoe nf_nat_ipv4 nf_conntrack_ipv6 nf_conntrack_ipv4 ipt_REJECT ipt_MASQUERADE xt_time xt_tcpudp xt_state xt_nat xt_multiport xt_mark xt_mac xt_limit xt_conntrack xt_comment xt_TCPMSS xt_REDIRECT xt_LOG xt_CT solos_pci pppox ppp_async nf_reject_ipv4 nf_nat_redirect nf_nat_masquerade_ipv4 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_ftp nf_conntrack iptable_raw iptable_mangle iptable_filter ip_tables crc_ccitt act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress ledtrig_heartbeat ledtrig_gpio ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables x_tables pppoatm ppp_generic slhc br2684 atm geode_aes cbc arc4 aes_i586 [last unloaded: 8139cp]                                       
[  267.161698] CPU: 0 PID: 0 Comm: swapper Not tainted 4.2.0-gx+ #26            
[  267.167800]  00000000 c10313eb ddc53000 00000000 fffffde1 00000258 c1031446 00000009                                                                         
[  267.171408]  dec0bf74 c13c3afc dec0bf8c c1272ef5 c13bfe82 0000012f c13c3afc ddc53000                                                                         
[  267.183847]  e06f9dec 00000000 ddc53000 ddc53240 00000258 80000100 c1272d10 ddc53000                                                                         
[  267.191812] Call Trace:                                                      
[  267.194376]  [<c10313eb>] ? warn_slowpath_common+0x5b/0x90                   
[  267.199874]  [<c1031446>] ? warn_slowpath_fmt+0x26/0x30                      
[  267.205200]  [<c1272ef5>] ? dev_watchdog+0x1e5/0x200                         
[  267.210179]  [<c1272d10>] ? qdisc_rcu_free+0x30/0x30                         
[  267.215250]  [<c105b19e>] ? call_timer_fn.isra.7+0xe/0x60                    
[  267.220661]  [<c1272d10>] ? qdisc_rcu_free+0x30/0x30                         
[  267.225739]  [<c105b33d>] ? run_timer_softirq+0xfd/0x1b0                     
[  267.231071]  [<c1033777>] ? __do_softirq+0xa7/0x190                          
[  267.236054]  [<c10336d0>] ? __hrtimer_tasklet_trampoline+0x20/0x20           
[  267.242274]  [<c100336b>] ? do_softirq_own_stack+0x1b/0x20                   
[  267.247768]  <IRQ>  [<c1003165>] ? do_IRQ+0x35/0xa0                          
[  267.252248]  [<c131e2a9>] ? common_interrupt+0x29/0x30                       
[  267.258062]  [<c104007b>] ? put_unbound_pool+0x17b/0x1a0                     
[  267.263391]  [<c1008bf2>] ? default_idle+0x2/0x10                            
[  267.268186]  [<c1009106>] ? arch_cpu_idle+0x6/0x10                           
[  267.272999]  [<c104eee5>] ? cpu_startup_entry+0xf5/0x190                     
[  267.278410]  [<c142a9b9>] ? start_kernel+0x2e5/0x2e8                         
[  267.283378] ---[ end trace a08600e9030733fc ]---                             
[  267.288100] cp_tx_timeout                                                    
[  267.290750] 8139cp 0000:00:0b.0 eth1: Transmit timeout, status  c   2b    1 c0ac                                                                             
[  267.298166] will lock...                                                     
[  267.300709] Handling tx timeout, flags 200286                                
[  267.305281] Will wake queue...                                               
[  267.308153] Will unlock... flags 200286                                      
[  292.120424] NMI watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper:0]
[  292.127561] Modules linked in: 8139cp sch_teql mii iptable_nat pppoe nf_nat_i...
[  292.130412] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.2.0-gx+ #26                                                                              
[  292.130412] task: c13f7540 ti: c13f0000 task.ti: c13f0000                    
[  292.130412] EIP: 0060:[<c131d6fa>] EFLAGS: 00200286 CPU: 0                   
[  292.130412] EIP is at _raw_spin_unlock_irqrestore+0xa/0x10                   
[  292.130412] EAX: 00000000 EBX: 00200286 ECX: c1409ee4 EDX: 00200286          
[  292.130412] ESI: 00200286 EDI: ddc53428 EBP: ddc53420 ESP: dec0bf68          
[  292.130412]  DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068                    
[  292.130412] CR0: 8005003b CR2: 0805244c CR3: 1edf6000 CR4: 00000090          
[  292.130412] Stack:                                                           
[  292.130412]  ddc53000 e06f8055 e06f9e2e 00200286 e06f9e18 e06f9f0c 00200286 ddc53000                                                                         
[  292.130412]  00000000 fffffde1 00000258 c1272ecb ddc53000 ddc53240 00000258 80000100                                                                         
[  292.130412]  c1272d10 ddc53000 00000100 c105b19e 00000442 c1272d10 c105b33d ddc7c444                                                                         
[  292.130412] Call Trace:                                                      
[  292.130412]  [<e06f8055>] ? cp_tx_timeout+0x1a5/0x1c0 [8139cp]               
[  292.130412]  [<c1272ecb>] ? dev_watchdog+0x1bb/0x200                         
[  292.130412]  [<c1272d10>] ? qdisc_rcu_free+0x30/0x30                         
[  292.130412]  [<c105b19e>] ? call_timer_fn.isra.7+0xe/0x60                    
[  292.130412]  [<c1272d10>] ? qdisc_rcu_free+0x30/0x30                         
[  292.130412]  [<c105b33d>] ? run_timer_softirq+0xfd/0x1b0                     
[  292.130412]  [<c1033777>] ? __do_softirq+0xa7/0x190                          
[  292.130412]  [<c10336d0>] ? __hrtimer_tasklet_trampoline+0x20/0x20           
[  292.130412]  [<c100336b>] ? do_softirq_own_stack+0x1b/0x20                   
[  292.130412]  <IRQ>                                                           
[  292.130412]  [<c1003165>] ? do_IRQ+0x35/0xa0                                 
[  292.130412]  [<c131e2a9>] ? common_interrupt+0x29/0x30                       
[  292.130412]  [<c104007b>] ? put_unbound_pool+0x17b/0x1a0                     
[  292.130412]  [<c1008bf2>] ? default_idle+0x2/0x10                            
[  292.130412]  [<c1009106>] ? arch_cpu_idle+0x6/0x10                           
[  292.130412]  [<c104eee5>] ? cpu_startup_entry+0xf5/0x190                     
[  292.130412]  [<c142a9b9>] ? start_kernel+0x2e5/0x2e8                         
[  292.130412] Code: 00 b8 01 00 00 00 c3 8d 76 00 8d bc 27 00 00 00 00 e8 db 2e d3 ff c3 8d 76 00 8d bc 27 00 00 00 00 53 89 d3 e8 c8 2e d3 ff 53 9d <5b> c3 8d 74 26 00 e8 bb 2e d3 ff fb c3 89 f6 8d bc 27 00 00 00                          
[  292.130412] Kernel panic - not syncing: softlockup: hung tasks               
[  292.130412] CPU: 0 PID: 0 Comm: swapper Tainted: G        W    L  4.2.0-gx+ #26                                                                              
[  292.130412]  00000000 c1319a5f c13f7540 00000000 00000000 000000f9 c1071439 c1399de4                                                                         
[  292.130412]  dec0bf2c c140b660 c10712f0 00000001 c140aac0 c105bf8e 00000000 03bbae55                                                                         
[  292.130412]  00000044 c140aacc 03bbae55 00000044 00000003 c141b860 c141b801 ffffffff                                                                         
[  292.130412] Call Trace:                                                      
[  292.130412]  [<c1319a5f>] ? panic+0x76/0x161                                 
[  292.130412]  [<c1071439>] ? watchdog_timer_fn+0x149/0x150                    
[  292.130412]  [<c10712f0>] ? watchdog_cleanup+0x10/0x10                       
[  292.130412]  [<c105bf8e>] ? __hrtimer_run_queues.constprop.7+0xae/0x180      
[  292.130412]  [<c105c187>] ? hrtimer_interrupt+0x87/0x1d0                     
[  292.130412]  [<c106817f>] ? tick_handle_oneshot_broadcast+0xcf/0x130         
[  292.130412]  [<c100388a>] ? timer_interrupt+0xa/0x10                         
[  292.130412]  [<c1054d6f>] ? handle_irq_event_percpu+0x4f/0xf0                
[  292.130412]  [<c1054e3d>] ? handle_irq_event+0x2d/0x50                       
[  292.130412]  [<c1056c39>] ? handle_level_irq+0x69/0xf0                       
[  292.130412]  [<c1056bd0>] ? handle_simple_irq+0x80/0x80                      
[  292.130412]  [<c10033b3>] ? handle_irq+0x43/0x70                             
[  292.130412]  <IRQ>  [<c100315c>] ? do_IRQ+0x2c/0xa0                          
[  292.130412]  [<c131e2a9>] ? common_interrupt+0x29/0x30                       
[  292.130412]  [<c105007b>] ? remove_waiter+0x11b/0x120                        
[  292.130412]  [<c131d6fa>] ? _raw_spin_unlock_irqrestore+0xa/0x10             
[  292.130412]  [<e06f8055>] ? cp_tx_timeout+0x1a5/0x1c0 [8139cp]               

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@...el.com                              Intel Corporation


Download attachment "smime.p7s" of type "application/x-pkcs7-signature" (5691 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ