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

            Bug ID: 251736
           Summary: [panic] memcpy_erms general protection fault on AMD
                    Zen 3 (Ryzen 5000 series)
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Keywords: panic
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: b...@freebsd.org
          Reporter: greg@unrelenting.technology
                CC: k...@freebsd.org, m...@freebsd.org

With Enhanced REP MOVSB/STOSB enabled in firmware settings on an AMD Zen 3
system, FreeBSD panics pretty quickly, e.g. (yeah, started a scrub because I
initially thought the panics might've been related to my zfs pool)

[152] Fatal trap 9: general protection fault while in kernel mode
[152] cpuid = 6; apic id = 06
[152] instruction pointer       = 0x20:0xffffffff807a4380
[152] stack pointer             = 0x28:0xfffffe010e9af250
[152] frame pointer             = 0x28:0xfffffe010e9af250
[152] code segment              = base 0x0, limit 0xfffff, type 0x1b
[152]                   = DPL 0, pres 1, long 1, def32 0, gran 1
[152] processor eflags  = interrupt enabled, resume, IOPL = 0
[152] current process           = 0 (z_rd_int_3)
[152] trap number               = 9
[152] panic: general protection fault
[152] cpuid = 6
[152] time = 1607620126
[152] KDB: stack backtrace:
[152] db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
0xfffffe010e9aef60
[152] vpanic() at vpanic+0x181/frame 0xfffffe010e9aefb0
[152] panic() at panic+0x43/frame 0xfffffe010e9af010
[152] trap_fatal() at trap_fatal+0x387/frame 0xfffffe010e9af070
[152] trap() at trap+0x8e/frame 0xfffffe010e9af180
[152] calltrap() at calltrap+0x8/frame 0xfffffe010e9af180
[152] --- trap 0x9, rip = 0xffffffff807a4380, rsp = 0xfffffe010e9af250, rbp =
0xfffffe010e9af250 ---
[152] memcpy_erms() at memcpy_erms+0x130/frame 0xfffffe010e9af250
[152] abd_copy_off_cb() at abd_copy_off_cb+0x9/frame 0xfffffe010e9af260
[152] abd_iterate_func2() at abd_iterate_func2+0x27c/frame 0xfffffe010e9af340
[152] abd_copy_off() at abd_copy_off+0x1c/frame 0xfffffe010e9af360
[152] vdev_mirror_scrub_done() at vdev_mirror_scrub_done+0xd3/frame
0xfffffe010e9af3b0

kgdb "helpfully" points at support.S:577 which is just the whole macro
invocation `MEMMOVE erms=1 overlap=0 begin=MEMMOVE_BEGIN end=MEMMOVE_END` :/

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to