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
e7d8b401
Commit
e7d8b401
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 i386.
parent
d80a662b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
signal_i386.c
dlls/ntdll/unix/signal_i386.c
+23
-1
No files found.
dlls/ntdll/unix/signal_i386.c
View file @
e7d8b401
...
...
@@ -1653,6 +1653,27 @@ __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
,
"movl 8(%esp),%eax
\n\t
"
/* frame */
"movl 0x38(%eax),%ebp
\n\t
"
/* frame->syscall_cfa */
"movl 4(%esp),%eax
\n\t
"
/* status */
"subl $8,%ebp
\n\t
"
/* switch to kernel stack */
"leal -16(%ebp),%esp
\n\t
"
__ASM_CFI
(
".cfi_def_cfa %ebp,8
\n\t
"
)
__ASM_CFI
(
".cfi_offset %eip,-4
\n\t
"
)
__ASM_CFI
(
".cfi_offset %ebp,-8
\n\t
"
)
__ASM_CFI
(
".cfi_offset %ebx,-12
\n\t
"
)
__ASM_CFI
(
".cfi_offset %esi,-16
\n\t
"
)
__ASM_CFI
(
".cfi_offset %edi,-20
\n\t
"
)
"movl %eax,(%esp)
\n\t
"
/* status */
"call "
__ASM_NAME
(
"abort_thread"
)
)
/***********************************************************************
* KeUserModeCallback
*/
NTSTATUS
KeUserModeCallback
(
ULONG
id
,
const
void
*
args
,
ULONG
len
,
void
**
ret_ptr
,
ULONG
*
ret_len
)
...
...
@@ -2061,7 +2082,8 @@ static void abrt_handler( int signal, siginfo_t *siginfo, void *sigcontext )
static
void
quit_handler
(
int
signal
,
siginfo_t
*
siginfo
,
void
*
sigcontext
)
{
init_handler
(
sigcontext
);
abort_thread
(
0
);
if
(
!
is_inside_syscall
(
sigcontext
))
user_mode_abort_thread
(
0
,
x86_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