Bug 220035

Summary: vmalloc-out-of-bounds in scomp_acomp_comp_decomp
Product: Memory Management Reporter: Marius Dinu (m95d)
Component: OtherAssignee: Andrew Morton (akpm)
Status: NEW ---    
Severity: normal    
Priority: P3    
Hardware: ARM   
OS: Linux   
Kernel Version: Subsystem:
Regression: Yes Bisected commit-id: 01d5b167dc230cf3b6eb9dd7205f6a705026d1ce
Attachments: kernel config
dmesg error

Description Marius Dinu 2025-04-19 08:12:54 UTC
Created attachment 307994 [details]
kernel config

Asus Tinkerboard S (RK3288, armv7, 2GB RAM)

When I enable zswap, and the memory is getting full, I start getting errors like this and the process freezes:

BUG: KASAN: vmalloc-out-of-bounds in scomp_acomp_comp_decomp+0xdb8/0xe8c

It can be reproduced by running "stress-ng --pageswap 1". When zswap is enabled, this command crashes immediately.

I did a git bisect and the result was this:
first bad commit: [01d5b167dc230cf3b6eb9dd7205f6a705026d1ce] Merge tag 'modules-6.15-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux

I'm attaching the kernel config and the complete error with debugging enabled.
Comment 1 Marius Dinu 2025-04-19 08:13:43 UTC
Created attachment 307995 [details]
dmesg error
Comment 2 Marius Dinu 2025-04-19 08:14:01 UTC
Thank you.