Skip to content

s390/cpum_cf: Check session cpu mask during hotplug

Sumanth Korikkar linux-s390 sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2s390/cpum_cf: Check session mask before cpu offlinearch/s390/kernel/perf_cpum_cf.c+3 -00 replies
2/2s390/cpum_cf: Honor hwctr session cpu mask during hotplugarch/s390/kernel/perf_cpum_cf.c+9 -71 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] s390/cpum_cf: Check session cpu mask during hotplug

The cpu hotplug callbacks start and stop counter sets for every active hwctr session without checking the session cpu mask. This causes a reference count underflow when an unrelated cpu goes offline, and silently adds cpus to a session when they come online.

Patch 1 fixes the reference count underflow in cfset_offline_cpu() and is suitable for stable kernels. It does not change the online behavior, so no matching lshwc change is required.

Patch 2 extends the mask check to cfset_online_cpu() and keeps the userspace provided cpu mask unchanged across hotplug events. It requires a matching lshwc change and is therefore kept separate from patch 1.

Sumanth Korikkar (2):
s390/cpum_cf: Check session mask before cpu offline s390/cpum_cf: Honor hwctr session cpu mask during hotplug

 arch/s390/kernel/perf_cpum_cf.c | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
Signature · 1 line
2.53.0