FreeBSD Bugzilla – Attachment 184641 Details for
Bug 219399
System panics after several hours of 14-threads-compilation orgies using poudriere on AMD Ryzen...
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to move amd64 shared page to a lower address to avoid Ryzen problem with executing code near user address upper limit
ryzen-shared-page.patch (text/plain), 1.44 KB, created by
Don Lewis
on 2017-07-23 20:52:54 UTC
(
hide
)
Description:
patch to move amd64 shared page to a lower address to avoid Ryzen problem with executing code near user address upper limit
Filename:
MIME Type:
Creator:
Don Lewis
Created:
2017-07-23 20:52:54 UTC
Size:
1.44 KB
patch
obsolete
>Index: sys/amd64/amd64/elf_machdep.c >=================================================================== >--- sys/amd64/amd64/elf_machdep.c (revision 320570) >+++ sys/amd64/amd64/elf_machdep.c (working copy) >@@ -77,7 +77,7 @@ > .sv_fetch_syscall_args = cpu_fetch_syscall_args, > .sv_syscallnames = syscallnames, > .sv_shared_page_base = SHAREDPAGE, >- .sv_shared_page_len = PAGE_SIZE, >+ .sv_shared_page_len = 2*PAGE_SIZE, > .sv_schedtail = NULL, > .sv_thread_detach = NULL, > .sv_trap = NULL, >Index: sys/amd64/include/vmparam.h >=================================================================== >--- sys/amd64/include/vmparam.h (revision 320570) >+++ sys/amd64/include/vmparam.h (working copy) >@@ -176,7 +176,7 @@ > > #define VM_MAXUSER_ADDRESS UVADDR(NUPML4E, 0, 0, 0) > >-#define SHAREDPAGE (VM_MAXUSER_ADDRESS - PAGE_SIZE) >+#define SHAREDPAGE (VM_MAXUSER_ADDRESS - 2*PAGE_SIZE) > #define USRSTACK SHAREDPAGE > > #define VM_MAX_ADDRESS UPT_MAX_ADDRESS >Index: sys/amd64/linux/linux_sysvec.c >=================================================================== >--- sys/amd64/linux/linux_sysvec.c (revision 320570) >+++ sys/amd64/linux/linux_sysvec.c (working copy) >@@ -823,7 +823,7 @@ > .sv_fetch_syscall_args = linux_fetch_syscall_args, > .sv_syscallnames = NULL, > .sv_shared_page_base = SHAREDPAGE, >- .sv_shared_page_len = PAGE_SIZE, >+ .sv_shared_page_len = 2*PAGE_SIZE, > .sv_schedtail = linux_schedtail, > .sv_thread_detach = linux_thread_detach, > .sv_trap = linux_vsyscall,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 219399
:
182736
|
183054
|
184037
|
184051
|
184539
|
184542
| 184641 |
184707
|
184714
|
185022
|
186143