linux/arch/s390/mm
Martin Schwidefsky 39efd4ec9a s390/ptrace: race of single stepping vs signal delivery
The current single step code is racy in regard to concurrent delivery
of signals. If a signal is delivered after a PER program check occurred
but before the TIF_PER_TRAP bit has been checked in entry[64].S the code
clears TIF_PER_TRAP and then calls do_signal. This is wrong, if the
instruction completed (or has been suppressed) a SIGTRAP should be
delivered to the debugger in any case. Only if the instruction has been
nullified the SIGTRAP may not be send.

The new logic always sets TIF_PER_TRAP if the program check indicates PER
tracing but removes it again for all program checks that are nullifying.
The effect is that for each change in the PSW address we now get a
single SIGTRAP.

Reported-by: Andreas Arnez <arnez@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-11-23 11:14:33 +01:00
..
cmm.c
dump_pagetables.c s390/mm,vmem: use 2GB frames for identity mapping 2012-11-23 11:14:24 +01:00
extable.c
extmem.c
fault.c s390/ptrace: race of single stepping vs signal delivery 2012-11-23 11:14:33 +01:00
gup.c
hugetlbpage.c
init.c s390/mm: move kernel_page_present/kernel_map_pages to page_attr.c 2012-11-23 11:14:31 +01:00
maccess.c
Makefile s390/memory hotplug: use pfmf instruction to initialize storage keys 2012-11-23 11:14:30 +01:00
mmap.c
page-states.c
pageattr.c s390/mm: move kernel_page_present/kernel_map_pages to page_attr.c 2012-11-23 11:14:31 +01:00
pgtable.c s390/mm: move kernel_page_present/kernel_map_pages to page_attr.c 2012-11-23 11:14:31 +01:00
vmem.c s390/mm,vmemmap: use 1MB frames for vmemmap 2012-11-23 11:14:25 +01:00