Bug 162509 - [re] [panic] Kernel panic may be related to if_re.c (realtek 8168 )
Summary: [re] [panic] Kernel panic may be related to if_re.c (realtek 8168 )
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 8.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2011-11-12 23:00 UTC by david.keller
Modified: 2022-10-17 12:18 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david.keller 2011-11-12 23:00:24 UTC
Hi,

After installation of a bittorrent daemon (transmission from /usr/port), the host started to panic under heavy downloading.

Here is the stack trace:

------------------------------------------------------------------------
#0  doadump () at pcpu.h:223
223	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) #0  doadump () at pcpu.h:223
#1  0xffffffff805a4d29 in boot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:416
#2  0xffffffff805a515c in panic (fmt=0xffffffff80964764 "%s")
    at /usr/src/sys/kern/kern_shutdown.c:590
#3  0xffffffff8088b928 in trap_fatal (frame=0xffffff00016413e0, eva=Variable "eva" is not available.
)
    at /usr/src/sys/amd64/amd64/trap.c:777
#4  0xffffffff8088bcf4 in trap_pfault (frame=0xffffff80000ad8e0, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:693
#5  0xffffffff8088c53a in trap (frame=0xffffff80000ad8e0)
    at /usr/src/sys/amd64/amd64/trap.c:451
#6  0xffffffff80871f03 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:223
#7  0xffffffff808833ce in pmap_kextract (va=11084830064351325165)
    at /usr/src/sys/amd64/amd64/pmap.c:1172
#8  0xffffffff80870eac in bus_dmamap_load_mbuf_sg (dmat=0xffffff0002403400, 
    map=0xffffff0003420e00, m0=Variable "m0" is not available.
)
    at /usr/src/sys/amd64/amd64/busdma_machdep.c:613
#9  0xffffffff8044e075 in re_newbuf (sc=0xffffff80003c4000, idx=104)
    at /usr/src/sys/dev/re/if_re.c:1709
#10 0xffffffff8044e37f in re_rxeof (sc=0xffffff80003c4000, rx_npktsp=0x0)
    at /usr/src/sys/dev/re/if_re.c:1917
#11 0xffffffff80450172 in re_int_task (arg=Variable "arg" is not available.
)
    at /usr/src/sys/dev/re/if_re.c:2225
#12 0xffffffff805e1b03 in taskqueue_run (queue=0xffffff0001605c80)
    at /usr/src/sys/kern/subr_taskqueue.c:239
#13 0xffffffff8057dedd in intr_event_execute_handlers (p=Variable "p" is not available.
)
    at /usr/src/sys/kern/kern_intr.c:1220
#14 0xffffffff8057f58e in ithread_loop (arg=0xffffff00014bd380)
    at /usr/src/sys/kern/kern_intr.c:1233
#15 0xffffffff8057be98 in fork_exit (
    callout=0xffffffff8057f500 <ithread_loop>, arg=0xffffff00014bd380, 
    frame=0xffffff80000adc80) at /usr/src/sys/kern/kern_fork.c:844
#16 0xffffffff808723de in fork_trampoline ()
    at /usr/src/sys/amd64/amd64/exception.S:562
#17 0x0000000000000000 in ?? ()
#18 0x0000000000000000 in ?? ()
#19 0x0000000000000001 in ?? ()
#20 0x0000000000000000 in ?? ()
#21 0x0000000000000000 in ?? ()
#22 0x0000000000000000 in ?? ()
#23 0x0000000000000000 in ?? ()
#24 0x0000000000000000 in ?? ()
#25 0x0000000000000000 in ?? ()
#26 0x0000000000000000 in ?? ()
#27 0x0000000000000000 in ?? ()
#28 0x0000000000000000 in ?? ()
#29 0x0000000000000000 in ?? ()
#30 0x0000000000000000 in ?? ()
#31 0x0000000000000000 in ?? ()
#32 0x0000000000000000 in ?? ()
#33 0x0000000000000000 in ?? ()
#34 0x0000000000000000 in ?? ()
#35 0x0000000000000000 in ?? ()
#36 0x0000000000000000 in ?? ()
#37 0x0000000000000000 in ?? ()
#38 0x0000000000000000 in ?? ()
#39 0x0000000000000000 in ?? ()
#40 0x0000000000000000 in ?? ()
#41 0x0000000000e92000 in ?? ()
#42 0x0000000000000000 in ?? ()
#43 0xffffff00016413e0 in ?? ()
#44 0xffffffff80c3a6c0 in affinity ()
#45 0xffffff00014c2000 in ?? ()
#46 0xffffff80000ad550 in ?? ()
#47 0xffffff80000ad508 in ?? ()
#48 0xffffff00016413e0 in ?? ()
#49 0xffffffff805c896a in sched_switch (td=0xffffff00014bd380, 
    newtd=0xffffffff8057f500, flags=Variable "flags" is not available.
) at /usr/src/sys/kern/sched_ule.c:1844
------------------------------------------------------------------------

As you can see on frames 9->11, the realtek driver may be involved.

Here is output from dmesg:

------------------------------------------------------------------------
re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0xde00-0xdeff mem 0xfbeff000-0xfbefffff,0xfbef8000-0xfbefbfff irq 17 at device 0.0 on pci3
re0: Using 1 MSI messages
re0: Chip rev. 0x28000000
re0: MAC rev. 0x00000000
--------------------------------------------------------------

And some more infos:

------------------------------------------------------------------------
vmstat -s

291219800 cpu context switches
  3534176 device interrupts
  7331877 software interrupts
  1802211 traps
 29899147 system calls
       20 kernel threads created
     1373  fork() calls
       52 vfork() calls
        0 rfork() calls
        0 swap pager pageins
        0 swap pager pages paged in
        0 swap pager pageouts
        0 swap pager pages paged out
      673 vnode pager pageins
     5821 vnode pager pages paged in
      169 vnode pager pageouts
      245 vnode pager pages paged out
        0 page daemon wakeups
        0 pages examined by the page daemon
      380 pages reactivated
    51571 copy-on-write faults
      433 copy-on-write optimized faults
   110427 zero fill pages zeroed
        0 zero fill pages prezeroed
       48 intransit blocking page faults
   207372 total VM faults taken
        0 pages affected by kernel thread creation
   352978 pages affected by  fork()
    14563 pages affected by vfork()
        0 pages affected by rfork()
      629 pages cached
   188030 pages freed
        0 pages freed by daemon
    62413 pages freed by exiting processes
    16293 pages active
   623393 pages inactive
       99 pages in VM cache
   127566 pages wired down
   193593 pages free
     4096 bytes per page
   111313 total name lookups
          cache hits (88% pos + 4% neg) system 0% per-directory
          deletions 0%, falsehits 0%, toolong 0%

------------------------------------------------------------------------
vmstat -m

         Type InUse MemUse HighUse Requests  Size(s)
       acpica  3044   297K       -    86259  16,32,64,128,256,512,1024,2048,4096
        sigio     1     1K       -        1  64
     filedesc    65    49K       -     1472  16,32,64,512,1024,2048,4096
         kenv    69    11K       -       73  16,32,64,128
       kqueue     2     5K       -     1321  256,2048,4096
     acpitask     1     2K       -        1  2048
    proc-args    29     2K       -     1869  16,32,64,128,256
      fw_xfer     0     0K       -        1  256
      ithread    82    13K       -       82  32,128,256
     firewire    11    35K       -       14  64,128,512,1024,2048,4096
       KTRACE   100    13K       -      100  128
      entropy  1024    64K       -     1024  64
       linker   108     8K       -      110  16,32,64,512
        lockf    51     6K       -    10026  64,128
       ip6ndp     5     1K       -        5  64,128
         temp    36     5K       -    12997  16,32,64,128,256,512,1024,2048,4096
       devbuf 18195 42377K       -    18555  16,32,64,128,256,512,1024,2048,4096
          agp     1     1K       -        1  32
       module   407    51K       -      407  128
      CAM XPT    12     3K       -       26  32,64,128,2048
     mtx_pool     2    16K       -        2  
      subproc   170   274K       -     1562  512,4096
         proc     2    16K       -        2  
      session    28     4K       -       64  128
         pgrp    28     4K       -       76  128
         cred    52     9K       -    80704  64,256
      uidinfo     4     3K       -    14763  128,2048
       plimit    16     4K       -      598  256
         UART     3     2K       -        3  16,512,1024
    sysctltmp     0     0K       -      983  16,32,64,128,256,4096
    sysctloid  3910   192K       -     4029  16,32,64,128
       sysctl     0     0K       -      848  16,32,64
      callout     3  1536K       -        3  
         umtx   260    33K       -      260  128
     p1003.1b     1     1K       -        1  16
         SWAP     2   549K       -        2  64
      acpisem    14     2K       -       14  128
       bus-sc    92   405K       -     3242  16,32,64,128,256,512,1024,2048,4096
          bus  1230   111K       -     6519  16,32,64,128,256,512,1024
      devstat    20    41K       -       20  32,4096
 eventhandler    72     6K       -       72  64,128
         kobj   286  1144K       -      354  4096
      Per-cpu     1     1K       -        1  32
         rman   203    25K       -      706  16,32,128
         sbuf     0     0K       -     1296  16,32,64,128,256,512,1024,2048,4096
        stack     0     0K       -        2  256
    taskqueue    13     2K       -       13  16,32,128
       Unitno    11     1K       -     1269  32,64
          iov     0     0K       -  6189223  16,64,128,256,512
       select   103    13K       -      103  128
     ioctlops     0     0K       -  5528447  16,32,64,128,256,512,1024,2048,4096
          msg     4    30K       -        4  2048,4096
          sem     4    11K       -        4  512,1024
          shm     1    20K       -        1  
          tty    20    20K       -       23  1024,2048
          pts     0     0K       -        1  256
     mbuf_tag     0     0K       -        5  32,128
         ksem     1     8K       -        1  
        shmfd     1     8K       -        1  
          pcb    43   158K       -    48368  16,32,128,1024,2048,4096
       soname     7     1K       -   928165  16,32,128
          acl     0     0K       -       48  4096
       biobuf     0     0K       -        9  2048
     vfscache     1  1024K       -        1  
   cl_savebuf     0     0K       -       18  64,128
     vfs_hash     1   512K       -        1  
       vnodes     2     1K       -        2  256
  vnodemarker     0     0K       -     2796  512
        mount   120     7K       -      320  16,32,64,128,256,512
          BPF     4     1K       -        4  128
  ether_multi    17     1K       -       18  16,32,64
       ifaddr    42    13K       -       42  32,64,128,256,512,4096
        ifnet     5     9K       -        5  128,2048
        clone     6    24K       -        6  4096
       arpcom     2     1K       -        2  16
       fw_com     1     1K       -        1  64
      lltable    13     6K       -       13  256,512
       USBdev    82    34K       -      113  64,128,512,1024,2048
          USB    73    59K       -       75  16,32,64,128,256,2048
CAM dev queue     1     1K       -        1  128
    CAM queue     3     1K       -        7  16
      CAM SIM     1     1K       -        1  256
  ata_generic     4     4K       -       78  16,512,1024
     routetbl    25  1036K       -      137  32,64,128,256,512
         igmp     4     1K       -        4  256
       kbdmux     6    10K       -        6  16,512,1024,2048,4096
     in_multi     2     1K       -        2  256
    sctp_iter     0     0K       -        3  256
     sctp_ifn     2     1K       -        2  128
     sctp_ifa     4     1K       -        4  128
     sctp_vrf     1     1K       -        1  64
    sctp_a_it     0     0K       -        3  16
    hostcache     1    28K       -        1  
     syncache     1    96K       -        1  
    ad_driver     4     1K       -        4  32
 ip6_moptions     2     1K       -        2  32,256
    in6_multi    13     2K       -       13  32,256
  in6_mfilter     1     1K       -        1  1024
    ar_driver     2     2K       -        6  1024,2048
       DEVFS1   136    68K       -      137  512
          mld     4     1K       -        4  128
      NFS FHA     1     2K       -        3  64,2048
          NLM     0     0K       -        1  32
          rpc    66    17K       -      230  16,32,64,128,256,512,1024,2048
audit_evclass   172     6K       -      211  32
     savedino     0     0K       -      179  256
       dirrem     0     0K       -      404  64
        mkdir     0     0K       -       18  64
       diradd     0     0K       -      438  64
     freefile     0     0K       -      179  64
     freeblks     0     0K       -      171  256
     freefrag     0     0K       -       57  64
   allocindir   557    70K       -   129758  128
     indirdep    22     2K       -     2403  64
  allocdirect     0     0K       -      404  256
    bmsafemap     7     1K       -     1155  128
       newblk     1     1K       -   130163  64,512
     inodedep     1   512K       -      488  256
      pagedep     1   128K       -       87  128
  ufs_dirhash    63    13K       -       63  16,32,64,128,512
    ufs_mount    18   255K       -       18  512,2048,4096
      UMAHash     2     2K       -        3  512,1024
       DEVFS3   153    39K       -      155  256
    vm_pgdata     2   129K       -        2  128
        DEVFS    22     1K       -       23  16,128
       DEVFSP     2     1K       -       32  64
    pfs_nodes    21     6K       -       21  256
      io_apic     1     2K       -        1  2048
         GEOM   329   112K       -     1274  16,32,64,128,256,512,1024
      memdesc     1     4K       -        1  4096
          msi     1     1K       -        1  128
     nexusdev     3     1K       -        3  16
      acpidev    88     6K       -       88  64
     atkbddev     2     1K       -        2  64
   CAM periph     2     1K       -       12  16,32,64,128,256
       isadev     7     1K       -        7  128
     pci_link    16     2K       -       16  64,128
    acpi_perf     4     2K       -        4  512
         cdev    10     3K       -       10  256

------------------------------------------------------------------------
vmstat -z

ITEM                     SIZE     LIMIT      USED      FREE  REQUESTS  FAILURES

UMA Kegs:                 208,        0,       88,       14,       88,        0
UMA Zones:                320,        0,       88,        8,       88,        0
UMA Slabs:                568,        0,      871,       18,     2860,        0
UMA RCntSlabs:            568,        0,     1944,        2,     1944,        0
UMA Hash:                 256,        0,        1,       14,        3,        0
16 Bucket:                152,        0,      129,       21,      129,        0
32 Bucket:                280,        0,      147,        7,      147,        0
64 Bucket:                536,        0,      144,        3,      144,       46
128 Bucket:              1048,        0,      136,        2,      136,        0
VM OBJECT:                216,        0,     1763,      235,    23185,        0
MAP:                      232,        0,        7,       25,        7,        0
KMAP ENTRY:               120,   144801,       45,      141,    15106,        0
MAP ENTRY:                120,        0,     1284,      638,    42807,        0
DP fakepg:                120,        0,        0,        0,        0,        0
SG fakepg:                120,        0,        0,        0,        0,        0
mt_zone:                 2056,        0,      260,        3,      260,        0
16:                        16,        0,     2098,      422,  6492216,        0
32:                        32,        0,     2649,      785,    76279,        0
64:                        64,        0,     8858,      550,  5970862,        0
128:                      128,        0,     6565,     2222,   598346,        0
256:                      256,        0,      598,      377,    52250,        0
512:                      512,        0,      475,      127,     6516,        0
1024:                    1024,        0,       69,      227,     2670,        0
2048:                    2048,        0,       41,       93,     1127,        0
4096:                    4096,        0,      394,      122,     5542,        0
Files:                     80,        0,      468,      432,    80380,        0
TURNSTILE:                136,        0,      261,       59,      261,        0
umtx pi:                   96,        0,        0,        0,        0,        0
MAC labels:                40,        0,        0,        0,        0,        0
PROC:                    1120,        0,       53,       61,     1445,        0
THREAD:                   984,        0,      184,       76,      811,        0
SLEEPQUEUE:                80,        0,      261,       87,      261,        0
VMSPACE:                  392,        0,       34,       86,     1427,        0
cpuset:                    72,        0,        2,       98,        2,        0
audit_record:             952,        0,        0,        0,        0,        0
mbuf_packet:              256,        0,      653,      893,  2560431,        0
mbuf:                     256,        0,      934,      740,  2957428,        0
mbuf_cluster:            2048,    25600,     1536,       46,     1574,        0
mbuf_jumbo_page:         4096,    12800,      791,      362,    79991,        0
mbuf_jumbo_9k:           9216,    19200,        0,        0,        0,        0
mbuf_jumbo_16k:         16384,    12800,        0,        0,        0,        0
mbuf_ext_refcnt:            4,        0,        0,        0,        0,        0
g_bio:                    232,        0,        0,     1056,   204719,        0
ttyinq:                   160,        0,      120,       96,      270,        0
ttyoutq:                  256,        0,       64,       56,      144,        0
ata_request:              320,        0,        2,      868,   649518,        0
ata_composite:            336,        0,        1,      551,   312382,        0
VNODE:                    472,        0,     4663,       57,     4844,        0
VNODEPOLL:                112,        0,        0,        0,        0,        0
S VFS Cache:              108,        0,     3016,      185,     4574,        0
L VFS Cache:              328,        0,     1815,       81,     1962,        0
NAMEI:                   1024,        0,        0,       48,    35157,        0
DIRHASH:                 1024,        0,       91,       37,       91,        0
NFSMOUNT:                 616,        0,        0,        0,        0,        0
NFSNODE:                  656,        0,        0,        0,        0,        0
pipe:                     728,        0,        9,       71,      900,        0
ksiginfo:                 112,        0,      104,      952,      338,        0
itimer:                   344,        0,        1,       21,        1,        0
KNOTE:                    128,        0,      305,      565,  4709010,        0
socket:                   680,    25602,      441,      189,    70597,        0
ipq:                       56,      819,        0,        0,        0,        0
udp_inpcb:                336,    25608,       29,       59,     1676,        0
udpcb:                     16,    25704,       29,      643,     1676,        0
tcp_inpcb:                336,    25608,      519,      306,    68698,        0
tcpcb:                    880,    25600,      389,      199,    68698,        0
tcptw:                     72,     5150,      130,      320,     9658,        0
syncache:                 144,    15366,        8,      174,    22650,        0
hostcache:                136,    15372,     1761,      507,     2182,        0
tcpreass:                  40,     1680,       34,      386,   190101,        0
sackhole:                  32,        0,       21,      787,    13459,        0
sctp_ep:                 1272,    25602,        0,        0,        0,        0
sctp_asoc:               2232,    40000,        0,        0,        0,        0
sctp_laddr:                48,    80064,        0,      144,        3,        0
sctp_raddr:               616,    80004,        0,        0,        0,        0
sctp_chunk:               136,   400008,        0,        0,        0,        0
sctp_readq:               104,   400032,        0,        0,        0,        0
sctp_stream_msg_out:       96,   400026,        0,        0,        0,        0
sctp_asconf:               40,   400008,        0,        0,        0,        0
sctp_asconf_ack:           48,   400032,        0,        0,        0,        0
ripcb:                    336,    25608,        0,        0,        0,        0
unpcb:                    240,    25600,       22,      106,      221,        0
rtentry:                  200,        0,        9,       48,        9,        0
selfd:                     56,        0,      162,      405,   118319,        0
SWAPMETA:                 288,   116519,        0,        0,        0,        0
ip4flow:                   56,    99351,     1800,     1287,   225306,        0
ip6flow:                   80,    99360,        0,        0,        0,        0
Mountpoints:              752,        0,        7,        8,        7,        0
FFS inode:                168,        0,     4602,      128,     4781,        0
FFS1 dinode:              128,        0,        0,        0,        0,        0
FFS2 dinode:              256,        0,     4602,      123,     4781,        0


------------------------------------------------------------------------
vmstat -i

interrupt                          total       rate
irq17: fwohci0+                        2          0
irq18: uhci2 ehci0+                28989        467
irq19: uhci4+                     104042       1678
cpu0: timer                     12991662     209542
irq256: re0                      3401143      54857
cpu1: timer                     12991468     209539
cpu2: timer                     12991468     209539
cpu3: timer                     12991469     209539
Total                           55500243     895165

------------------------------------------------------------------------
pstat -T

468/12328 files
0M/4095M swap space
--------------------------------------------------------------

How can I help ?

How-To-Repeat: Download THE Internet using bittorrent.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-11-13 20:34:04 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Pyun YongHyeon freebsd_committer freebsd_triage 2012-04-25 05:33:24 UTC
State Changed
From-To: open->feedback

There had been a lot of change since 8.1-RELEASE. Could you 
reproduce this on 8.3-RELEASE? 
If yes, please show me full back trace information on 8.3-RELEASE. 


Comment 3 Pyun YongHyeon freebsd_committer freebsd_triage 2012-04-25 05:33:24 UTC
Responsible Changed
From-To: freebsd-net->yongari

Grab.
Comment 4 david.keller 2012-04-25 08:46:08 UTC
I'm running right now on 9.0-RELEASE, and reproduced it once.

Are you still interested by the callstack ?
Comment 5 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:47 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2022-10-17 12:18:18 UTC
Keyword: 

    crash

– in lieu of summary line prefix: 

    [panic]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>