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(-)
--
2.43.0