Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e91d19a5
Commit
e91d19a5
authored
Jun 17, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove special case for setting permissions on stack pages.
We are running on the kernel stack at this point. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b4ca95a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
virtual.c
dlls/ntdll/unix/virtual.c
+1
-15
No files found.
dlls/ntdll/unix/virtual.c
View file @
e91d19a5
...
@@ -1675,21 +1675,7 @@ static BOOL set_vprot( struct file_view *view, void *base, size_t size, BYTE vpr
...
@@ -1675,21 +1675,7 @@ static BOOL set_vprot( struct file_view *view, void *base, size_t size, BYTE vpr
mprotect_range
(
base
,
size
,
0
,
0
);
mprotect_range
(
base
,
size
,
0
,
0
);
return
TRUE
;
return
TRUE
;
}
}
if
(
mprotect_exec
(
base
,
size
,
unix_prot
))
return
FALSE
;
/* if setting stack guard pages, store the permissions first, as the guard may be
* triggered at any point after mprotect and change the permissions again */
if
((
vprot
&
VPROT_GUARD
)
&&
(
base
>=
NtCurrentTeb
()
->
DeallocationStack
)
&&
(
base
<
NtCurrentTeb
()
->
Tib
.
StackBase
))
{
set_page_vprot
(
base
,
size
,
vprot
);
mprotect
(
base
,
size
,
unix_prot
);
return
TRUE
;
}
if
(
mprotect_exec
(
base
,
size
,
unix_prot
))
/* FIXME: last error */
return
FALSE
;
set_page_vprot
(
base
,
size
,
vprot
);
set_page_vprot
(
base
,
size
,
vprot
);
return
TRUE
;
return
TRUE
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment