[PATCH 0/2] powerpc: Fix integer underflow & leak

Nam Cao posted 2 patches 2 months ago
arch/powerpc/platforms/powernv/pci-ioda.c | 2 +-
arch/powerpc/platforms/pseries/msi.c      | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[PATCH 0/2] powerpc: Fix integer underflow & leak
Posted by Nam Cao 2 months ago
Hi,

This series fixes integer overflow & leak problem. I noticed this problem
when Gautam reported a kernel bug with another patch series of mine:
https://lore.kernel.org/linuxppc-dev/aH9Na8ZqrI0jPhtl@li-c6426e4c-27cf-11b2-a85c-95d65bc0de0e.ibm.com/

The root cause of that report is a bug in that series. However, that bug
triggered another existing bug, causing the reported end results.

Nam Cao (2):
  powerpc/pseries/msi: Fix potential underflow and leak issue
  powerpc/powernv/pci: Fix underflow and leak issue

 arch/powerpc/platforms/powernv/pci-ioda.c | 2 +-
 arch/powerpc/platforms/pseries/msi.c      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.39.5
Re: [PATCH 0/2] powerpc: Fix integer underflow & leak
Posted by Madhavan Srinivasan 4 weeks, 1 day ago
On Mon, 04 Aug 2025 12:07:26 +0200, Nam Cao wrote:
> This series fixes integer overflow & leak problem. I noticed this problem
> when Gautam reported a kernel bug with another patch series of mine:
> https://lore.kernel.org/linuxppc-dev/aH9Na8ZqrI0jPhtl@li-c6426e4c-27cf-11b2-a85c-95d65bc0de0e.ibm.com/
> 
> The root cause of that report is a bug in that series. However, that bug
> triggered another existing bug, causing the reported end results.
> 
> [...]

Applied to powerpc/next.

[1/2] powerpc/pseries/msi: Fix potential underflow and leak issue
      https://git.kernel.org/powerpc/c/3443ff3be6e59b80d74036bb39f5b6409eb23cc9
[2/2] powerpc/powernv/pci: Fix underflow and leak issue
      https://git.kernel.org/powerpc/c/a39087905af9ffecaa237a918a2c03a04e479934

Thanks