[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174475000897.3429336.4470350657359091880.b4-ty@kernel.org>
Date: Tue, 15 Apr 2025 13:46:51 -0700
From: Kees Cook <kees@...nel.org>
To: linux-kernel@...r.kernel.org,
kasan-dev@...glegroups.com,
linux-hardening@...r.kernel.org,
Mostafa Saleh <smostafa@...gle.com>
Cc: Kees Cook <kees@...nel.org>,
akpm@...ux-foundation.org,
elver@...gle.com,
andreyknvl@...il.com,
ryabinin.a.a@...il.com
Subject: Re: [PATCH v2] lib/test_ubsan.c: Fix panic from test_ubsan_out_of_bounds
On Tue, 15 Apr 2025 20:33:54 +0000, Mostafa Saleh wrote:
> Running lib_ubsan.ko on arm64 (without CONFIG_UBSAN_TRAP) panics the
> kernel
>
> [ 31.616546] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: test_ubsan_out_of_bounds+0x158/0x158 [test_ubsan]
> [ 31.646817] CPU: 3 UID: 0 PID: 179 Comm: insmod Not tainted 6.15.0-rc2 #1 PREEMPT
> [ 31.648153] Hardware name: linux,dummy-virt (DT)
> [ 31.648970] Call trace:
> [ 31.649345] show_stack+0x18/0x24 (C)
> [ 31.650960] dump_stack_lvl+0x40/0x84
> [ 31.651559] dump_stack+0x18/0x24
> [ 31.652264] panic+0x138/0x3b4
> [ 31.652812] __ktime_get_real_seconds+0x0/0x10
> [ 31.653540] test_ubsan_load_invalid_value+0x0/0xa8 [test_ubsan]
> [ 31.654388] init_module+0x24/0xff4 [test_ubsan]
> [ 31.655077] do_one_initcall+0xd4/0x280
> [ 31.655680] do_init_module+0x58/0x2b4
>
> [...]
Applied to for-linus/hardening, thanks!
[1/1] lib/test_ubsan.c: Fix panic from test_ubsan_out_of_bounds
https://git.kernel.org/kees/c/7fd007c84e4b
Take care,
--
Kees Cook
Powered by blists - more mailing lists