From: Sudeep Holla <sudeep.holla@arm.com>
To: Mario Limonciello <mario.limonciello@amd.com>
Cc: Jassi Brar <jassisinghbrar@gmail.com>,
Sudeep Holla <sudeep.holla@arm.com>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mailbox: pcc: Fix an invalid-load caught by the address sanitizer
Date: Tue, 10 May 2022 15:46:56 +0100 [thread overview]
Message-ID: <20220510144656.nxbayvxdfcia3ykm@bogus> (raw)
In-Reply-To: <20220509141716.1270-1-mario.limonciello@amd.com>
On Mon, May 09, 2022 at 09:17:16AM -0500, Mario Limonciello wrote:
> `pcc_mailbox_probe` doesn't initialize all memory that has been allocated
> before the first time that one of it's members `txdone_irq` may be
> accessed.
>
> This leads to a an invalid load any time that this member is accessed:
> [ 2.429769] UBSAN: invalid-load in drivers/mailbox/pcc.c:684:22
> [ 2.430324] UBSAN: invalid-load in drivers/mailbox/mailbox.c:486:12
> [ 4.276782] UBSAN: invalid-load in drivers/acpi/cppc_acpi.c:314:45
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=215587
> Fixes: ce028702ddbc ("mailbox: pcc: Move bulk of PCCT parsing into pcc_mbox_probe")
Thanks for catching and fixing this.
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
--
Regards,
Sudeep
next prev parent reply other threads:[~2022-05-10 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-09 14:17 Mario Limonciello
2022-05-10 14:46 ` Sudeep Holla [this message]
2022-05-10 14:49 ` Limonciello, Mario
2022-05-10 14:56 ` Sudeep Holla
2022-05-10 15:22 ` Limonciello, Mario
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220510144656.nxbayvxdfcia3ykm@bogus \
--to=sudeep.holla@arm.com \
--cc=jassisinghbrar@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®