powerpc: assorted fixes (gpci, imc, energy, iommu)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | powerpc/perf: hv-gpci: bound sysfs hex formatting to PAGE_SIZEarch/ | +52 | 0 replies | |
| 2/4 | powerpc/powernv: opal-imc: fix debugfs name buffer sizearch/ | +4 | 0 replies | |
| 3/4 | powerpc/pseries: energy: bound H_BEST_ENERGY cnt and sysfs outputarch/ | +14 | 0 replies | |
| 4/4 | powerpc/iommu: fix debugfs name buffer for 64-bit it_indexarch/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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