Skip to content

Commit f8d5faf

Browse files
Martin SchwidefskyMartin Schwidefsky
authored andcommitted
[S390] clear TIF_SINGLE_STEP for new process.
Clear the TIF_SINGLE_STEP bit in copy_thread. The new process did not get a PER event of its own. It is wrong deliver a SIGTRAP that was meant for the parent process. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent c3311c1 commit f8d5faf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/s390/kernel/process.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ int copy_thread(unsigned long clone_flags, unsigned long new_stackp,
217217
p->thread.mm_segment = get_fs();
218218
/* Don't copy debug registers */
219219
memset(&p->thread.per_info, 0, sizeof(p->thread.per_info));
220+
clear_tsk_thread_flag(p, TIF_SINGLE_STEP);
220221
/* Initialize per thread user and system timer values */
221222
ti = task_thread_info(p);
222223
ti->user_timer = 0;

0 commit comments

Comments
 (0)