Skip to content

cpu: fix leaks and udev race in register_cpu()

Igor Mammedov lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v1 RFC2 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpu: fix "crash_notes" and "crash_notes_size" leaks in register_cpu()drivers/base/cpu.c+18 -70 replies
2/2cpu: make sure that cpu/online file created before KOBJ_ADD is emitteddrivers/base/cpu.c+21 -130 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKonrad Rzeszutek Wilk
1/2T-b R-b
2/2T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH 0/2 v2] cpu: fix leaks and udev race in register_cpu()

1. move "crash_notes" and "crash_notes_size" to static attributes to guarantee that it's destroyed with CPU on unregister.

2. fixes race between hotplugged CPU and onlining it via udev, described at https://lkml.org/lkml/2012/4/30/193

Igor Mammedov (2):
cpu: fix "crash_notes" and "crash_notes_size" leaks in register_cpu()
cpu: make sure that cpu/online file created before KOBJ_ADD is
emitted

 drivers/base/cpu.c |   59 ++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 39 insertions(+), 20 deletions(-)