On Tue, 22 Apr 2025 09:50:24 -0700 Kees Cook wrote: > On Mon, Apr 21, 2025 at 12:04:08PM +0200, Erhard Furtner wrote: > > fortify_test_alloc_size_kvmalloc_const test failure still in v6.15-rc3, also with a 'GCC14 -O2'-built kernel: > > [...] > > BUG: KASAN: vmalloc-out-of-bounds in vrealloc_noprof+0x2a2/0x370 > > [...] > > not ok 7 fortify_test_alloc_size_kvmalloc_const > > [...] > > > I gave v6.15-rc1 a test ride on my Ryzen 5950 system with some debugging options turned on, getting a KASAN vmalloc-out-of-bounds hit at running fortify_kunit test: > > I'm not able to reproduce this yet. What does your .config look like? > > I tried this on Linus's latest and next-20250422: > > $ gcc --version > gcc (GCC) 14.2.1 20250110 (Red Hat 14.2.1-7) > ... > $ ./tools/testing/kunit/kunit.py run \ > --kconfig_add CONFIG_KASAN=y \ > --kconfig_add CONFIG_KASAN_VMALLOC=y \ > fortify > > both showing passes: > [16:14:44] Testing complete. Ran 26 tests: passed: 26 > > What other debugging do you have enabled? > > -- > Kees Cook Hi! Sorry, I forgot to attach my v6.15-rc3 kernel .config. It's basically the same as the -rc1 one from my first report (https://lore.kernel.org/all/20250408192503.6149a816@outsider.home/), but with GCC 14 and -O2 instead of Clang 19 and -Os. Regards, Erhard