From: Erhard Furtner <erhard_f@mailbox.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Hardware Monitoring <linux-hwmon@vger.kernel.org>,
Jean Delvare <jdelvare@suse.com>,
Ahmad Khalifa <ahmad@khalifa.ws>
Subject: Re: [PATCH] nct6775: Fix access to temperature configuration registers
Date: Wed, 21 Feb 2024 23:53:35 +0100 [thread overview]
Message-ID: <20240221235335.136d61e9@yea> (raw)
In-Reply-To: <20240221141345.2231350-1-linux@roeck-us.net>
On Wed, 21 Feb 2024 06:13:45 -0800
Guenter Roeck <linux@roeck-us.net> wrote:
> The number of temperature configuration registers does
> not always match the total number of temperature registers.
> This can result in access errors reported if KASAN is enabled.
>
> BUG: KASAN: global-out-of-bounds in nct6775_probe+0x5654/0x6fe9 nct6775_core
>
> Reported-by: Erhard Furtner <erhard_f@mailbox.org>
> Closes: https://lore.kernel.org/linux-hwmon/d51181d1-d26b-42b2-b002-3f5a4037721f@roeck-us.net/
> Fixes: 578ab5f0e4b1 ("hwmon: (nct6775) Add support for NCT6791D")
> Fixes: b7f1f7b2523a ("hwmon: (nct6775) Additional TEMP registers for nct6799")
> Cc: Ahmad Khalifa <ahmad@khalifa.ws>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> Erhard,
>
> it would be great if you can test this patch on your system.
>
> Thanks,
> Guenter
Applied your patch on top of 6.8-rc5 and 6.6.0.
Works fine in both cases, the KASAN hit is gone. Many thanks!
Regards,
Erhard
next prev parent reply other threads:[~2024-02-21 22:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 14:13 [PATCH] nct6775: Fix access to temperature configuration registers Guenter Roeck
2024-02-21 21:31 ` Ahmad Khalifa
2024-02-21 21:59 ` Guenter Roeck
2024-02-21 22:12 ` Ahmad Khalifa
2024-02-21 22:22 ` Guenter Roeck
2024-02-21 22:53 ` Erhard Furtner [this message]
2024-02-21 23:39 ` Guenter Roeck
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=20240221235335.136d61e9@yea \
--to=erhard_f@mailbox.org \
--cc=ahmad@khalifa.ws \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux@roeck-us.net \
/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