Bug 982313

Summary: ethtool -d on RTL8168b/8111b crashes kernel hard
Product: [Fedora] Fedora Reporter: James <james>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: gansalmon, itamar, james, jonathan, kernel-maint, madhu.chinakonda, michele, michele
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-25 18:52:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James 2013-07-08 15:52:46 UTC
Description of problem:
Running ethtool -d on my notebook's Ethernet port causes the system to freeze. Magic SysRq does not work.

I have no other stackdump information to hand. No error messages appear on the console before the freeze.

Version-Release number of selected component (if applicable):
kernel-3.9.9-301.fc19.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. ethtool -d enp8s0

Actual results:
The register dump is all 0xff; the system then seems to fumble and half a second later freezes completely.

Expected results:
No crash.

Additional info:

dmesg standard info for the chip:
[   21.370839] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[   21.371235] r8169 0000:08:00.0: irq 48 for MSI/MSI-X
[   21.371431] r8169 0000:08:00.0 eth0: RTL8168b/8111b at 0xffffc900103f2000, 00:90:f5:69:d5:9e, XID 18000000 IRQ 48
[   21.371435] r8169 0000:08:00.0 eth0: jumbo features [frames: 4080 bytes, tx checksumming: ko]

Comment 1 Michele Baldessari 2013-08-17 23:12:21 UTC
Hi James,

probably worth keeping an eye on this patch (not ready for net-next yet):
http://patchwork.ozlabs.org/patch/267971/

cheers,
Michele

Comment 2 Josh Boyer 2013-09-18 20:47:08 UTC
*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There is a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 19 kernel bugs.

Fedora 19 has now been rebased to 3.11.1-200.fc19.  Please test this kernel update and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you experience different issues, please open a new bug report for those.

Comment 3 James 2013-09-21 07:35:31 UTC
Still happens with kernel 3.11.1-200.fc19.

Comment 4 Michele Baldessari 2013-11-26 18:12:48 UTC
Hi James, 

the above patch has made it in 3.12:
commit 15edae91cb2d91131ab3b0c6eebf1fbfc12d643e
Author: Peter Wu <lekensteyn>
Date:   Wed Aug 21 23:17:11 2013 +0200

    r8169: fix invalid register dump
    
    For some reason, my PCIe RTL8111E onboard NIC on a GA-Z68X-UD3H-B3
    motherboard reads as FFs when reading from MMIO with a block size
    larger than 7. Therefore change to reading blocks of four bytes.
    
    Ben Hutchings noted that the buffer is large enough to hold all
    registers, so now all registers are read.
    
    Signed-off-by: Peter Wu <lekensteyn>
    Acked-by: Francois Romieu <romieu.com>
    Signed-off-by: David S. Miller <davem>


Could you check a 3.12 kernel and report back?
http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/x86_64/

Thanks,
Michele

Comment 5 James 2013-11-26 19:17:51 UTC
kernel 3.12.1-2.fc21.x86_64 -- output from ethtool looks sensible and there is no crash now.

Comment 6 Michele Baldessari 2013-11-26 19:32:48 UTC
Thanks James!

Josh, this can go in POST for when 3.12 hits Fedora

Comment 7 Josh Boyer 2013-11-26 19:51:49 UTC
Indeed.  Thanks all!

Comment 8 Michele Baldessari 2013-12-25 18:52:32 UTC
3.12.x has hit F19 as well through updates, so am closing this one.

Thanks for the report and testing James

regards,
Michele