[Bug 267704] net/realtek-re-kmod: frequent kernel panic

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 11 Nov 2022 01:22:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267704

            Bug ID: 267704
           Summary: net/realtek-re-kmod: frequent kernel panic
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ale@FreeBSD.org
          Reporter: henry.hu.sh@gmail.com
             Flags: maintainer-feedback?(ale@FreeBSD.org)
          Assignee: ale@FreeBSD.org

I'm getting non-deterministic kernel panic with this kmod.
I'm using FreeBSD 14-CURRENT (1400073):
FreeBSD goldpeak.local 14.0-CURRENT FreeBSD 14.0-CURRENT #3
main-n259127-689a9368eb60: Wed Nov  9 22:34:33 EST 2022    
root@goldpeak.local:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL amd64

and I'm getting repeated kernel panic (~30m to 1h). It crashed more than 10
times today, when I was not at home and the machine was idle.

(kgdb) where
#0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:59
#1  dump_savectx () at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff807a59d8 in dumpsys (di=0x0) at
/usr/src/sys/x86/include/dump.h:87
#3  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:434
#4  kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:541
#5  0xffffffff807a5ef2 in vpanic (fmt=0xffffffff80bbdc7d "%s",
ap=0xfffffe014dd95a50) at /usr/src/sys/kern/kern_shutdown.c:979
#6  0xffffffff807a5cf3 in panic (fmt=<unavailable>) at
/usr/src/sys/kern/kern_shutdown.c:903
#7  0xffffffff80b63f9a in trap_fatal (frame=0xfffffe014dd95c80, eva=65543) at
/usr/src/sys/amd64/amd64/trap.c:955
#8  0xffffffff80b63fef in trap_pfault (frame=frame@entry=0xfffffe014dd95c80,
usermode=false, signo=signo@entry=0x0, ucode=ucode@entry=0x0) at
/usr/src/sys/amd64/amd64/trap.c:763
#9  0xffffffff80b63672 in trap (frame=frame@entry=0xfffffe014dd95c80) at
/usr/src/sys/amd64/amd64/trap.c:445
#10 0xffffffff80b64339 in trap_check (frame=0xfffffe014dd95c80) at
/usr/src/sys/amd64/amd64/trap.c:667
#11 <signal handler called>
#12 ether_input (ifp=<optimized out>, m=0xffff) at
/usr/src/sys/net/if_ethersubr.c:822
#13 0xffffffff85387ea2 in re_rxeof () from /boot/modules/if_re.ko
#14 0x0000000000000000 in ?? ()

The common thing seems to be that ether_input is always called with m = 0xffff.
I'm trying to figure out how to get debug info from the kernel module.

-- 
You are receiving this mail because:
You are the assignee for the bug.