Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2016 03:19:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-i386@FreeBSD.org
Subject:   [Bug 212639] kernel/386: i386_set_ldt/i386_ldt_grow run out of LDT, because M_ZERO  missing in user_ldt_alloc?
Message-ID:  <bug-212639-10@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212639

            Bug ID: 212639
           Summary: kernel/386: i386_set_ldt/i386_ldt_grow run out of LDT,
                    because M_ZERO  missing in user_ldt_alloc?
           Product: Base System
           Version: CURRENT
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: wheelcomplex@gmail.com
                CC: freebsd-i386@FreeBSD.org
                CC: freebsd-i386@FreeBSD.org

Go compiler crash with "signal: trace/BPT trap" when running testing
concurrently(and lead to heavy load).

Core-dump and kernel debug log telling that it is trigger by
i386_set_ldt/i386_ldt_grow run out of LDT.

Fix by change kmem_malloc flags from "M_WAITOK" to "M_WAITOK | M_ZERO" in
user_ldt_alloc=20
(https://github.com/freebsd/freebsd/blob/master/sys/i386/i386/sys_machdep.c=
#L441)

More detail:
https://github.com/golang/go/issues/16950

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212639-10>