[PATCH 0/4] Various VFP fixes

Will Deacon will.deacon at arm.com
Fri Jan 27 11:23:59 EST 2012


Hello,

I've recently experienced a few VFP problems that cropped up during runs
of Peter Maydell's excellent `risu' tool:

	https://wiki.linaro.org/PeterMaydell/Risu

After lots of debugging, it became apparent that modifying the ucontext
VFP state from within a signal handler was sometimes unreliable in a
preemptible kernel.

These patches fix the problem and some others that were identified along
the way. The first in the series should probably go to -stable once it's
agreed. The others aren't as critical: patches 2 and 3 could be merged
if there's good reason to do so and the final patch is really just
pedantry.

All feedback welcome.

Cheers,

Will

Cc: Dave Martin <dave.martin at linaro.org>
Cc: Peter Maydell <peter.maydell at linaro.org>

Dave Martin (1):
  ARM: vfp: fix ptrace regset modification race

Will Deacon (3):
  ARM: vfp: flush thread hwstate before restoring context from sigframe
  ARM: vfp: flush thread hwstate before copying ptrace registers
  ARM: vfp: clear fpscr length and stride bits on return from sig handler

 arch/arm/kernel/ptrace.c |    8 +++++---
 arch/arm/kernel/signal.c |   15 ++++++++++-----
 2 files changed, 15 insertions(+), 8 deletions(-)

-- 
1.7.4.1




More information about the linux-arm-kernel mailing list