Skip to content

Powerpc Add a null pointer check in opal_event_init()

Mamatha Inamdar requested to merge mainamdar/centos-stream-9:RHEL-37060 into main

Description: Powerpc Add a null pointer check in opal_event_init()

JIRA: https://issues.redhat.com/browse/RHEL-37060

CVE: CVE-2023-52686

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=61353843

Tested: Verified Brew build test kernel RPMs

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

commit 8649829a1dd25199bbf557b2621cedb4bf9b3050 Author: Kunwu Chan chentao@kylinos.cn Date: Mon Nov 27 11:07:55 2023 +0800

powerpc/powernv: Add a null pointer check in opal_event_init()

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

Fixes: 2717a33d6074 ("powerpc/opal-irqchip: Use interrupt names if present")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231127030755.1546750-1-chentao@kylinos.cn

Signed-off-by: Mamatha Inamdar minamdar@redhat.com

Merge request reports