https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297982

            Bug ID: 297982
           Summary: page fault around asmc_sms_intrfast
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 274161
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=274161&action=edit
Example of /var/crash/core.txt

On my Macbook Pro mid. 2012, when asmc(4) is detected, a page fault occurs
randomly.

An example of /var/crash/core.txt is attached.

Here is part of backtrace:
===
__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57              __asm("movq %%gs:%c1,%0" : "=r" (td)
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
        td = <optimized out>
#1  doadump (textdump=textdump@entry=1)
    at /usr/src/sys/kern/kern_shutdown.c:399
        error = 0
        coredump = <optimized out>
#2  0xffffffff80c5dee7 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:519
        once = 0
        __pc = 0x0
#3  0xffffffff80c5e3fd in vpanic (fmt=<optimized out>, 
    ap=ap@entry=0xfffffe008cc20af0) at /usr/src/sys/kern/kern_shutdown.c:974
        buf = "page fault", '\000' <repeats 245 times>
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        other_cpus = {__bits = {14, 0 <repeats 15 times>}}
        td = 0xfffff8000240a780
        bootopt = <unavailable>
        newpanic = <optimized out>
#4  0xffffffff80c5e243 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:887
        ap = {{gp_offset = 16, fp_offset = 48, 
            overflow_arg_area = 0xfffffe008cc20b20, 
            reg_save_area = 0xfffffe008cc20ac0}}
#5  0xffffffff811f1b09 in trap_fatal (frame=<optimized out>, 
    eva=<optimized out>) at /usr/src/sys/amd64/amd64/trap.c:1031
        type = <optimized out>
        handled = <optimized out>
#6  0xffffffff811f1b09 in trap_pfault (frame=0xfffffe008cc20b90, 
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        td = <optimized out>
        p = <optimized out>
        eva = 16
        map = <optimized out>
        ftype = <optimized out>
        rv = <optimized out>
#7  <signal handler called>
No locals.
#8  0xffffffff837fe1d4 in asmc_sms_intrfast (arg=0xfffff80001417e00)
    at /usr/src/sys/dev/asmc/asmc.c:2318
        dev = 0xfffff80001417e00
        sc = 0xfffff8000d5e6000
        type = <optimized out>
#9  0xffffffff80c0e2f8 in intr_event_handle (ie=ie@entry=0xfffff8000136db00, 
    frame=frame@entry=0xfffffe008cc20d20) at /usr/src/sys/kern/kern_intr.c:1395
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        __pc = 0x0
        td = 0xfffff8000240a780
        filter = <optimized out>
        thread = false
        ret = <optimized out>
        oldframe = 0x0
        ih = 0xfffff80003fac180
        phase = <optimized out>
(snip)
===

And, asmc(4) is detected by devmatch, then macbook will get page fault with no
human operations.

A workaround is 'sysrc devmatch_enable="NO"'

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

Reply via email to