Skip to content

powerpc: assorted fixes (gpci, imc, energy, iommu)

Xixin Liu linuxppc-dev lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4powerpc/perf: hv-gpci: bound sysfs hex formatting to PAGE_SIZEarch/powerpc/perf/hv-gpci.c+52 -250 replies
2/4powerpc/powernv: opal-imc: fix debugfs name buffer sizearch/powerpc/platforms/powernv/opal-imc.c+4 -30 replies
3/4powerpc/pseries: energy: bound H_BEST_ENERGY cnt and sysfs outputarch/powerpc/platforms/pseries/pseries_energy.c+14 -20 replies
4/4powerpc/iommu: fix debugfs name buffer for 64-bit it_indexarch/powerpc/kernel/iommu.c+5 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 0/4] powerpc: assorted fixes (gpci, imc, energy, iommu)

Hi,

This series fixes some bugs in powerpc paths found by static review of linux-next:

1) hv-gpci sysfs hex formatting can overflow the PAGE_SIZE show buffer; switch to sysfs_emit_at() and return -EFBIG
2) opal-imc debugfs names use char[16] with sprintf for a u32 id
3) pseries energy walks H_BEST_ENERGY cnt and sprintf()s without page bounds
4) iommu debugfs uses char[10] with %08lx while it_index is unsigned long

Patches are independent. Please review.

Thanks,
Xixin Liu

---

Xixin Liu (4):
powerpc/perf: hv-gpci: bound sysfs hex formatting to PAGE_SIZE powerpc/powernv: opal-imc: fix debugfs name buffer size powerpc/pseries: energy: bound H_BEST_ENERGY cnt and sysfs output powerpc/iommu: fix debugfs name buffer for 64-bit it_index

 arch/powerpc/kernel/iommu.c                     |  9 +++--
 arch/powerpc/perf/hv-gpci.c                     | 77 +++++++++++++++---------
 arch/powerpc/platforms/powernv/opal-imc.c       |  7 +++--
 arch/powerpc/platforms/pseries/pseries_energy.c | 16 ++++-
 4 files changed, 75 insertions(+), 34 deletions(-)
Signature · 1 line
2.43.0