Skip to content

futex: Fault/error injection capabilities

Davidlohr Bueso lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2futex: Enhance comments in futex_lock_pi() for blocking pathskernel/futex.c+9 -23 replies
2/2futex: Fault/error injection capabilitiesDocumentation/fault-injection/fault-injection.txt kernel/futex.c lib/Kconfig.debug+105 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH -tip 0/2] futex: Fault/error injection capabilities

Hello,

I've been wanting this for a while to improve overall futex testing. I must say that I checked rather late when I was nearly finished with patch 2 if something similar for futexes had already been proposed. Sure enough, in 2009 this was discussed[1].

Coincidently, I also took the natural approach of making use of our fault-injection machinery. I have no idea if perf nowadays does such things, and if it does not, I honestly don't have the bandwidth to do it Ingo's preferred way -- when there is nothing wrong with this approach, imho (0 overhead). Anyway, here's a working patch.

Patch 1 is merely a trivial add-on.

[1]: https://lwn.net/Articles/364742/

Thanks!

Davidlohr Bueso (2):
futex: Enhance comments in futex_lock_pi() for blocking paths
futex: Fault/error injection capabilities

 Documentation/fault-injection/fault-injection.txt |  11 +++
 kernel/futex.c                                    | 100 +++++++++++++++++++++-
 lib/Kconfig.debug                                 |   7 ++
 3 files changed, 114 insertions(+), 4 deletions(-)
Signature · 1 line
2.1.4