Re: [PATCH 04/11] regmap: kunit: Run sparse cache tests at non-zero register addresses

From: Guenter Roeck
Date: Fri May 17 2024 - 11:20:05 EST


On 5/17/24 04:28, Mark Brown wrote:
On Thu, May 16, 2024 at 12:53:34PM -0700, Guenter Roeck wrote:


With this patch in mainline, I get lots of errors such as

[ 23.494308] =============================================================================
[ 23.496391] BUG kmalloc-64 (Tainted: G N): kmalloc Redzone overwritten

Bisect log and first of many backtraces attached for reference.

What's your kernel architecture and config for this - it looks like
there's some sanitiser enabled?

I have CONFIG_SLUB_DEBUG and CONFIG_SLUB_DEBUG_ON enabled. I also have
various other debug options enabled, but slub debugging should be the
relevant one. I see the problem with several architectures.

- arm (all variants)
- arm64 (little and big endian)
- loongarch
- mips (all variants)
- nios2
- ppc (all variants)
- riscv (32 and 64 bit)
- x86 (32 and 64 bit)

Guenter