git: bd9e0f5df681 - main - amd64: eliminate td_md.md_fpu_scratch

Konstantin Belousov kostikbel at gmail.com
Tue Sep 21 21:18:06 UTC 2021


On Tue, Sep 21, 2021 at 01:53:14PM -0700, Cy Schubert wrote:
> In message <202109211721.18LHLGn6028952 at gitrepo.freebsd.org>, Konstantin 
> Belous
> ov writes:
> > The branch main has been updated by kib:
> >
> > URL: https://cgit.FreeBSD.org/src/commit/?id=bd9e0f5df681da8b5ef05a587b4b5b07
> > 572d3fc2
> >
> > commit bd9e0f5df681da8b5ef05a587b4b5b07572d3fc2
> > Author:     Konstantin Belousov <kib at FreeBSD.org>
> > AuthorDate: 2021-09-15 18:37:47 +0000
> > Commit:     Konstantin Belousov <kib at FreeBSD.org>
> > CommitDate: 2021-09-21 17:20:15 +0000
> >
> >     amd64: eliminate td_md.md_fpu_scratch
>
> This commit causes a panic running and i386 poudriere on an amd64. Notice 
> the ud2 machine instruction at line 107 in the disassemble portion of this 
> reply.
> 
> Unread portion of the kernel message buffer:
> interrupt enabled, resume, IOPL = 0
> current process		= 5200 (cc)
> trap number		= 1
> panic: privileged instruction fault
> cpuid = 3
> time = 1632253591
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 
> 0xfffffe00e52377d0
> vpanic() at vpanic+0x187/frame 0xfffffe00e5237830
> panic() at panic+0x43/frame 0xfffffe00e5237890
> trap_fatal() at trap_fatal+0x387/frame 0xfffffe00e52378f0
> trap() at trap+0x8b/frame 0xfffffe00e5237a00
> calltrap() at calltrap+0x8/frame 0xfffffe00e5237a00
> --- trap 0x1, rip = 0xffffffff80a5fef1, rsp = 0xfffffe00e5237ad0, rbp = 
> 0xfffffe00e5237af0 ---
> ia32_get_mcontext() at ia32_get_mcontext+0x181/frame 0xfffffe00e5237af0
> freebsd32_getcontext() at freebsd32_getcontext+0x52/frame 0xfffffe00e5237df0
> ia32_syscall() at ia32_syscall+0x126/frame 0xfffffe00e5237f30
> int0x80_syscall_common() at int0x80_syscall_common+0x9c/frame 0xffffca38

Should be fixed by c2ee4dfd0497. I converted get_fpcontext(), but forgot
about same change for ia32_get_fpcontext(), sorry.

Thank you for the report.


More information about the dev-commits-src-main mailing list