Skip to content

Catching del_timer_sync() on uninitialized timers

Stephen Boyd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 7 repliesIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3debugobjects: Be smarter about static objectskernel/timer.c lib/debugobjects.c+19 -56 replies
2/3debugobjects: Extend to assert that an object is initializedDocumentation/DocBook/debugobjects.tmpl include/linux/debugobjects.h lib/debugobjects.c+94 -01 reply
3/3kernel/timer.c: Use debugobjects to catch deletion of uninitialized timerskernel/timer.c+48 -51 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 0/3] Catching del_timer_sync() on uninitialized timers

These are an update for previous patches sent by Christine. I've reworked them to hopefully address Thomas' comments. The new patch is the first patch, which tries to actually use debugobjects code to print the warning instead of relying on users of the API to do so (as suggested by Thomas).

Christine Chan (2):
debugobjects: Extend to assert that an object is initialized kernel/timer.c: Use debugobjects to catch deletion of uninitialized
timers

Stephen Boyd (1):
debugobjects: Be smarter about static objects

Cc Thomas Gleixner <[email protected]>
Cc John Stultz <[email protected]>
Cc Christine Chan <[email protected]>
Cc Andrew Morton <[email protected]>
 Documentation/DocBook/debugobjects.tmpl |   50 +++++++++++++++++++++++++
 include/linux/debugobjects.h            |    6 +++
 kernel/timer.c                          |   62 ++++++++++++++++++++++++++++---
 lib/debugobjects.c                      |   53 ++++++++++++++++++++++++--
 4 files changed, 161 insertions(+), 10 deletions(-)
Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.