linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Various VFP fixes
@ 2012-01-27 16:23 Will Deacon
  2012-01-27 16:24 ` [PATCH 1/4] ARM: vfp: flush thread hwstate before restoring context from sigframe Will Deacon
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Will Deacon @ 2012-01-27 16:23 UTC (permalink / raw)
  To: linux-arm-kernel

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@linaro.org>
Cc: Peter Maydell <peter.maydell@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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-30 16:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 16:23 [PATCH 0/4] Various VFP fixes Will Deacon
2012-01-27 16:24 ` [PATCH 1/4] ARM: vfp: flush thread hwstate before restoring context from sigframe Will Deacon
2012-01-27 16:24 ` [PATCH 2/4] ARM: vfp: fix ptrace regset modification race Will Deacon
2012-01-27 16:24 ` [PATCH 3/4] ARM: vfp: flush thread hwstate before copying ptrace registers Will Deacon
2012-01-27 16:24 ` [PATCH 4/4] ARM: vfp: clear fpscr length and stride bits on return from sig handler Will Deacon
2012-01-27 17:46   ` Will Deacon
2012-01-30 16:49   ` Dave Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).