WSL2-Linux-Kernel/arch/m68k/fpsp040
Eric W. Biederman a3616a3c02 signal/m68k: Use force_sigsegv(SIGSEGV) in fpsp040_die
In the fpsp040 code when copyin or copyout fails call
force_sigsegv(SIGSEGV) instead of do_exit(SIGSEGV).

This solves a couple of problems.  Because do_exit embeds the ptrace
stop PTRACE_EVENT_EXIT a complete stack frame needs to be present for
that to work correctly.  There is always the information needed for a
ptrace stop where get_signal is called.  So exiting with a signal
solves the ptrace issue.

Further exiting with a signal ensures that all of the threads in a
process are killed not just the thread that malfunctioned.  Which
avoids confusing userspace.

To make force_sigsegv(SIGSEGV) work in fpsp040_die modify the code to
save all of the registers and jump to ret_from_exception (which
ultimately calls get_signal) after fpsp040_die returns.

v2: Updated the branches to use gas's pseudo ops that automatically
    calculate the best branch instruction to use for the purpose.

v1: https://lkml.kernel.org/r/87a6m8kgtx.fsf_-_@disp2133
Link: https://lkml.kernel.org/r/87tukghjfs.fsf_-_@disp2133
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
2021-08-26 09:59:15 -05:00
..
Makefile m68k: fpsp040,ifpsp060: Remove meaningless EXTRA_LDFLAGS 2021-04-06 09:33:20 +02:00
README Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bindec.S Fix common misspellings 2011-03-31 11:26:23 -03:00
binstr.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
bugfix.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
decbin.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
do_func.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
fpsp.h [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
gen_except.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
get_op.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
kernel_ex.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
res_func.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
round.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
sacos.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
sasin.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
satan.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
satanh.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
scale.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
scosh.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
setox.S m68k: fix trigraph ignored warning in setox.S 2008-12-28 20:00:05 +01:00
sgetem.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
sint.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
skeleton.S signal/m68k: Use force_sigsegv(SIGSEGV) in fpsp040_die 2021-08-26 09:59:15 -05:00
slog2.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
slogn.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
smovecr.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
srem_mod.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
ssin.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
ssinh.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
stan.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
stanh.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
sto_res.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
stwotox.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
tbldo.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
util.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_bsun.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_fline.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_operr.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_ovfl.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_snan.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_store.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_unfl.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_unimp.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00
x_unsupp.S [PATCH] Add wording to m68k .S files to help clarify license info 2006-02-11 21:41:11 -08:00

README

MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
M68000 Hi-Performance Microprocessor Division
M68040 Software Package

M68040 Software Package Copyright (c) 1993, 1994 Motorola Inc.
All rights reserved.

THE SOFTWARE is provided on an "AS IS" basis and without warranty.
To the maximum extent permitted by applicable law,
MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE and any warranty against infringement with
regard to the SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
and any accompanying written materials.

To the maximum extent permitted by applicable law,
IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
(INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE
SOFTWARE.  Motorola assumes no responsibility for the maintenance
and support of the SOFTWARE.

You are hereby granted a copyright license to use, modify, and
distribute the SOFTWARE so long as this entire notice is retained
without alteration in any modified and/or redistributed versions,
and that such modified versions are clearly identified as such.
No licenses are granted by implication, estoppel or otherwise
under any patents or trademarks of Motorola, Inc.