From owner-freebsd-bugs@freebsd.org Thu Jan 7 07:29:27 2021 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 275A94C54DC for ; Thu, 7 Jan 2021 07:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DBHtH0R42z4dJl for ; Thu, 7 Jan 2021 07:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 0D0DD4C53F5; Thu, 7 Jan 2021 07:29:27 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0CCB64C53F2 for ; Thu, 7 Jan 2021 07:29:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DBHtG6sXTz4dKr for ; Thu, 7 Jan 2021 07:29:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DA30E4F65 for ; Thu, 7 Jan 2021 07:29:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1077TQPO006889 for ; Thu, 7 Jan 2021 07:29:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1077TQTI006888 for bugs@FreeBSD.org; Thu, 7 Jan 2021 07:29:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 252485] [re] [panic] Panic in if_re.c (Realtek RTL8111/8168/8411) Date: Thu, 07 Jan 2021 07:29:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: maciej@suszko.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2021 07:29:27 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252485 Bug ID: 252485 Summary: [re] [panic] Panic in if_re.c (Realtek RTL8111/8168/8411) Product: Base System Version: 12.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: maciej@suszko.eu Panic occurs quite often - sometimes after 30 minutes, sometimes after a few hours... but running 12.2-RELEASE on this motherboard for a few days did not succeed in 24h uptime. Motherborad is Gigabyte GA-J3455N-D3H with 16GB of RAM. On previous hardware (Intel D2500CC) running with if_em - system was rock solid. I tried a few combinations of loader tunables - It looks like default configuration leads to panic quickly in case of higher transfers. At the mo= ment I have those: hw.re.msix_disable=3D"1" hw.re.prefer_iomap=3D"1" Here's some information from recent core.txt: Fatal trap 9: general protection fault while in kernel mode cpuid =3D 1; apic id =3D 02 instruction pointer =3D 0x20:0xffffffff8071b2a2 stack pointer =3D 0x28:0xfffffe000047d8d0 frame pointer =3D 0x28:0xfffffe000047d920 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 12 (irq266: re0) trap number =3D 9 panic: general protection fault cpuid =3D 1 time =3D 1609991554 KDB: stack backtrace: #0 0xffffffff80659775 at kdb_backtrace+0x65 #1 0xffffffff8060da2b at vpanic+0x17b #2 0xffffffff8060d8a3 at panic+0x43 #3 0xffffffff8095e0d1 at trap_fatal+0x391 #4 0xffffffff8095d557 at trap+0x67 #5 0xffffffff809376a8 at calltrap+0x8 #6 0xffffffff8073755a at netisr_dispatch_src+0xca #7 0xffffffff8071a6eb at ether_input+0x4b #8 0xffffffff81740349 at re_rxeof+0x5f9 #9 0xffffffff8173db0f at re_intr_msi+0xef #10 0xffffffff805d24ac at ithread_loop+0x23c #11 0xffffffff805cf35e at fork_exit+0x7e #12 0xffffffff809386de at fork_trampoline+0xe Uptime: 3h27m16s Dumping 2386 out of 16207 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..= 91% Reading symbols from /boot/kernel/zfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/zfs.ko.debug...done. done. Loaded symbols for /boot/kernel/zfs.ko Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from /usr/lib/debug//boot/kernel/opensolaris.ko.debug...done. done. Loaded symbols for /boot/kernel/opensolaris.ko Reading symbols from /boot/kernel/if_re.ko...Reading symbols from /usr/lib/debug//boot/kernel/if_re.ko.debug...done. done. Loaded symbols for /boot/kernel/if_re.ko Reading symbols from /boot/kernel/fdescfs.ko...Reading symbols from /usr/lib/debug//boot/kernel/fdescfs.ko.debug...done. done. Loaded symbols for /boot/kernel/fdescfs.ko Reading symbols from /boot/kernel/pflog.ko...Reading symbols from /usr/lib/debug//boot/kernel/pflog.ko.debug...done. done. Loaded symbols for /boot/kernel/pflog.ko Reading symbols from /boot/kernel/pf.ko...Reading symbols from /usr/lib/debug//boot/kernel/pf.ko.debug...done. done. Loaded symbols for /boot/kernel/pf.ko #0 doadump () at src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb) #0 doadump () at src/sys/amd64/include/pcpu_aux.h:55 #1 0xffffffff8060d645 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:451 #2 0xffffffff8060da83 in vpanic (fmt=3D,=20 ap=3D) at /usr/src/sys/kern/kern_shutdown.c:880 #3 0xffffffff8060d8a3 in panic (fmt=3D) at /usr/src/sys/kern/kern_shutdown.c:807 #4 0xffffffff8095e0d1 in trap_fatal (frame=3D,=20 eva=3D) at /usr/src/sys/amd64/amd64/trap.c:921 #5 0xffffffff8095d557 in trap (frame=3D0xfffffe000047d810) at src/sys/amd64/include/counter.h:86 #6 0xffffffff809376a8 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:289 #7 0xffffffff8071b2a2 in ether_nh_input (m=3D0xfffff802a7792000) at /usr/src/sys/net/if_ethersubr.c:520 #8 0xffffffff8073755a in netisr_dispatch_src (proto=3D5,=20 source=3D, m=3D) at /usr/src/sys/net/netisr.c:1124 #9 0xffffffff8071a6eb in ether_input (ifp=3D0xfffff80002aab000,=20 m=3D) at /usr/src/sys/net/if_ethersubr.c:787 #10 0xffffffff81740349 in re_rxeof (sc=3D) at /usr/src/sys/dev/re/if_re.c:2385 #11 0xffffffff8173db0f in re_intr_msi (xsc=3D0xfffffe00003f2000) at /usr/src/sys/dev/re/if_re.c:2681 #12 0xffffffff805d24ac in ithread_loop (arg=3D0xfffff80002a21300) at /usr/src/sys/kern/kern_intr.c:1143 #13 0xffffffff805cf35e in fork_exit ( callout=3D0xffffffff805d2270 , arg=3D0xfffff80002a21300,= =20 frame=3D0xfffffe000047db00) at /usr/src/sys/kern/kern_fork.c:1080 #14 0xffffffff809386de in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:1078 #15 0x0000000000000000 in ?? () Current language: auto; currently minimal (kgdb)=20 ------------------------------------------------------------------------ ps -axlww UID PID PPID C PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND 0 0 0 2 -16 0 0 0 swapin DLs - 0:00.25 [kernel] 0 1 0 3 20 0 9916 1032 wait DLs - 0:00.11 [init] 0 2 0 1 -16 0 0 0 crypto_w DL - 0:00.00 [crypto] 0 3 0 1 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 0] 0 4 0 1 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 1] 0 5 0 0 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 2] 0 6 0 1 -16 0 0 0 crypto_r DL - 0:00.00 [crypto returns 3] 0 7 0 2 -16 0 0 0 - RL - 0:00.07 [cam] 0 8 0 3 -16 0 0 0 - DL - 0:00.00 [soaiod= 1] 0 9 0 0 -16 0 0 0 - DL - 0:00.00 [soaiod= 2] 0 10 0 1 -16 0 0 0 audit_wo DL - 0:00.00 [audit] 0 11 0 0 155 0 0 0 - RL - 809:05.84 [idle] 0 12 0 -1 -56 0 0 0 - WL - 1:33.71 [intr] 0 13 0 2 -8 0 0 0 - DL - 0:00.00 [geom] 0 14 0 0 -68 0 0 0 - DL - 0:00.52 [usb] 0 15 0 1 -16 0 0 0 - DL - 0:00.00 [soaiod= 3] 0 16 0 2 -16 0 0 0 - DL - 0:00.00 [soaiod= 4] 0 17 0 2 -8 0 0 0 t->zthr_ DL - 0:03.98 [zfsker= n] 0 18 0 3 -16 0 0 0 waiting_ DL - 0:00.00 [sctp_iterator] 0 19 0 2 -16 0 0 0 - DL - 0:10.92 [rand_harvestq] 0 20 0 1 -16 0 0 0 tzpoll DL - 0:00.25 [acpi_thermal] 0 21 0 2 -16 0 0 0 cooling DL - 0:00.07 [acpi_cooling0] 0 22 0 1 -16 0 0 0 psleep DL - 0:01.79 [pagedaemon] 0 23 0 3 -16 0 0 0 psleep DL - 0:00.00 [vmdaem= on] 0 24 0 2 -16 0 0 0 qsleep DL - 0:01.03 [bufdae= mon] 0 25 0 2 16 0 0 0 syncer DL - 0:01.71 [syncer] 0 26 0 2 -16 0 0 0 vlruwt DL - 0:00.08 [vnlru] 0 27 0 3 -16 0 0 0 spa->spa DL - 1:17.42 [zpool-rpool] 0 720 1 2 52 0 11396 2616 select Ds - 0:00.00 [dhclie= nt] 0 723 1 3 52 0 11676 2796 select Ds - 0:00.00 [dhclie= nt] 65 741 1 2 20 0 11784 2908 select DCs - 0:00.00 [dhclie= nt] 0 757 1 3 20 0 10500 1476 select Ds - 0:00.01 [devd] 0 765 0 0 -16 0 0 0 pftm DL - 0:06.20 [pf pur= ge] 0 777 1 0 20 0 12524 3132 sbwait Ds - 0:00.00 [pflogd] 64 779 777 3 20 0 12592 3156 bpf D - 0:01.29 [pflogd] 0 866 1 3 20 0 11376 2756 select Ds - 0:00.18 [syslog= d] 0 875 1 1 20 0 11296 2592 select Ds - 0:00.03 [rpcbin= d] 53 962 1 2 52 0 143168 101508 sigwait Ds - 0:02.75 [named] 0 1061 1 0 20 0 17548 4376 select Ds - 0:01.70 [mountd] 0 1067 1 2 52 0 17316 4364 accept Ds - 0:00.02 [nfsd] 0 1070 1067 3 52 0 11140 2296 rpcsvc D - 0:00.03 [nfsd] 0 1071 1 1 20 0 279456 4344 select Ds - 0:00.02 [rpc.st= atd] 0 1073 1071 3 20 0 285828 6316 nanslp D - 0:00.04 [rpc.st= atd] 0 1075 1 0 52 0 17336 4340 rpcsvc Ds - 0:00.03 [rpc.lo= ckd] 0 1084 1 3 20 0 11192 2420 nanslp Ds - 0:00.78 [uptime= d] 0 1087 1 3 52 0 11496 2556 select Ds - 0:00.00 [in.tft= pd] 0 1099 1 3 52 0 11176 2548 select Ds - 0:00.00 [lpd] 0 1121 1 2 20 0 10884 2296 select Ds - 0:05.18 [powerd] 136 1149 1 2 20 0 20608 8672 select Ds - 0:00.07 [dhcpd] 0 1156 1 2 20 -20 13440 3396 select D