]> asedeno.scripts.mit.edu Git - linux.git/commit
um: Revert to using stack for pt_regs in signal handling
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Fri, 4 Jan 2019 15:38:21 +0000 (15:38 +0000)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 21:18:28 +0000 (23:18 +0200)
commit5c2ffce1e9496477720966e70d79f2da3e4b84e6
tree12e77ce3c8debd687029236435ea5f3f7fbfdf70
parent37624b58542fb9f2d9a70e6ea006ef8a5f66c30b
um: Revert to using stack for pt_regs in signal handling

Reverts commit b6024b21fec8367ef961a771cc9dde31f1831965 and
adjusts default stack sizing to cope with larger size of
floating point save registers on the newer Intel CPUs.

b6024b21fec8367ef961a771cc9dde31f1831965 replaced storing the
register state on the stack with kmalloc-ed storage. That has
a number of issues and a panic if that fails.
    1. kmalloc/ATOMIC can fail. There was a latent hard crash
in all interrupt and fault handling as a result.
    2. kmalloc in the interrupt path introduces a considerable
performance penalty for networking ~ 14% on iperf.

This commit restores uml to a stable state until a better
solution is found.

Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Kconfig
arch/um/os-Linux/signal.c