Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3e421c66
Commit
3e421c66
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 ARM.
parent
ca79629b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
signal_arm.c
dlls/ntdll/unix/signal_arm.c
+25
-0
No files found.
dlls/ntdll/unix/signal_arm.c
View file @
3e421c66
...
...
@@ -1220,6 +1220,30 @@ __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
,
__ASM_EHABI
(
".cantunwind
\n\t
"
)
"ldr r7, [r1, #0x28]
\n\t
"
/* frame->syscall_cfa */
"sub r7, r7, #0x28
\n\t
"
/* switch to kernel stack */
"mov sp, r7
\n\t
"
__ASM_CFI
(
".cfi_def_cfa 7,0x28
\n\t
"
)
__ASM_CFI
(
".cfi_offset r4,-0x28
\n\t
"
)
__ASM_CFI
(
".cfi_offset r5,-0x24
\n\t
"
)
__ASM_CFI
(
".cfi_offset r6,-0x20
\n\t
"
)
__ASM_CFI
(
".cfi_offset r7,-0x1c
\n\t
"
)
__ASM_CFI
(
".cfi_offset r8,-0x18
\n\t
"
)
__ASM_CFI
(
".cfi_offset r9,-0x14
\n\t
"
)
__ASM_CFI
(
".cfi_offset r10,-0x10
\n\t
"
)
__ASM_CFI
(
".cfi_offset r11,-0x0c
\n\t
"
)
__ASM_CFI
(
".cfi_offset r12,-0x08
\n\t
"
)
__ASM_CFI
(
".cfi_offset lr,-0x04
\n\t
"
)
"bl "
__ASM_NAME
(
"abort_thread"
)
)
/***********************************************************************
* KeUserModeCallback
*/
NTSTATUS
KeUserModeCallback
(
ULONG
id
,
const
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
)
...
...
@@ -1472,6 +1496,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
,
arm_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