diff options
author | 2013-06-01 19:07:47 +0000 | |
---|---|---|
committer | 2013-06-01 19:07:47 +0000 | |
commit | ad0cf9a9b3d7867a18a29ca5fb8e2248ba320eae (patch) | |
tree | bf41a0096eb8097a56582d8f4948d56a61ee881a | |
parent | Work around stack smash protector getting confused because we switched (diff) | |
download | wireguard-openbsd-ad0cf9a9b3d7867a18a29ca5fb8e2248ba320eae.tar.xz wireguard-openbsd-ad0cf9a9b3d7867a18a29ca5fb8e2248ba320eae.zip |
Fix offset error when clearing the resume time stack pages
-rw-r--r-- | sys/arch/amd64/amd64/hibernate_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/hibernate_machdep.c b/sys/arch/amd64/amd64/hibernate_machdep.c index 47e2ed0516a..f6f7f8d7f9d 100644 --- a/sys/arch/amd64/amd64/hibernate_machdep.c +++ b/sys/arch/amd64/amd64/hibernate_machdep.c @@ -263,7 +263,7 @@ hibernate_populate_resume_pt(union hibernate_info *hib_info, bzero((caddr_t)HIBERNATE_PT_LOW2, PAGE_SIZE); bzero((caddr_t)HIBERNATE_PT_HI, PAGE_SIZE); bzero((caddr_t)HIBERNATE_SELTABLE, PAGE_SIZE); - bzero((caddr_t)HIBERNATE_STACK_PAGE, PAGE_SIZE*3); + bzero((caddr_t)(HIBERNATE_STACK_PAGE - 3*PAGE_SIZE) , 3*PAGE_SIZE); /* First 512GB PML4E */ pde = (pt_entry_t *)(HIBERNATE_PML4T + |