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
ca79629b
Commit
ca79629b
authored
Nov 20, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Switch to the kernel stack to abort a thread on ARM64.
parent
3c53d89e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
signal_arm64.c
dlls/ntdll/unix/signal_arm64.c
+26
-0
No files found.
dlls/ntdll/unix/signal_arm64.c
View file @
ca79629b
...
...
@@ -1210,6 +1210,31 @@ __ASM_GLOBAL_FUNC( user_mode_callback_return,
/***********************************************************************
* user_mode_abort_thread
*/
extern
void
DECLSPEC_NORETURN
user_mode_abort_thread
(
NTSTATUS
status
,
struct
syscall_frame
*
frame
);
__ASM_GLOBAL_FUNC
(
user_mode_abort_thread
,
"ldr x1, [x1, #0x110]
\n\t
"
/* frame->syscall_cfa */
"sub x29, x1, #0xc0
\n\t
"
/* switch to kernel stack */
"mov sp, x29
\n\t
"
__ASM_CFI
(
".cfi_def_cfa 29,0xc0
\n\t
"
)
__ASM_CFI
(
".cfi_offset 29,-0xc0
\n\t
"
)
__ASM_CFI
(
".cfi_offset 30,-0xb8
\n\t
"
)
__ASM_CFI
(
".cfi_offset 19,-0xb0
\n\t
"
)
__ASM_CFI
(
".cfi_offset 20,-0xa8
\n\t
"
)
__ASM_CFI
(
".cfi_offset 21,-0xa0
\n\t
"
)
__ASM_CFI
(
".cfi_offset 22,-0x98
\n\t
"
)
__ASM_CFI
(
".cfi_offset 23,-0x90
\n\t
"
)
__ASM_CFI
(
".cfi_offset 24,-0x88
\n\t
"
)
__ASM_CFI
(
".cfi_offset 25,-0x80
\n\t
"
)
__ASM_CFI
(
".cfi_offset 26,-0x78
\n\t
"
)
__ASM_CFI
(
".cfi_offset 27,-0x70
\n\t
"
)
__ASM_CFI
(
".cfi_offset 28,-0x68
\n\t
"
)
"bl "
__ASM_NAME
(
"abort_thread"
)
)
/***********************************************************************
* KeUserModeCallback
*/
NTSTATUS
KeUserModeCallback
(
ULONG
id
,
const
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
)
...
...
@@ -1479,6 +1504,7 @@ static void abrt_handler( int signal, siginfo_t *siginfo, void *sigcontext )
*/
static
void
quit_handler
(
int
signal
,
siginfo_t
*
siginfo
,
void
*
sigcontext
)
{
if
(
!
is_inside_syscall
(
sigcontext
))
user_mode_abort_thread
(
0
,
arm64_thread_data
()
->
syscall_frame
);
abort_thread
(
0
);
}
...
...
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