Re: BUG: KASAN: global-out-of-bounds in unmap_kernel_at_el0+0x70/0x1a0

From: Mark Rutland
Date: Sun Apr 22 2018 - 15:06:59 EST


On Sun, Apr 22, 2018 at 12:47:57PM +0200, Jan Kiszka wrote:
> Hi,
>
> this can be triggered simply by running
>
> # echo 0 > /sys/devices/system/cpu/cpu3/online
> # echo 1 > /sys/devices/system/cpu/cpu3/online
>
> [ 455.904854] ==================================================================
> [ 455.906108] BUG: KASAN: global-out-of-bounds in unmap_kernel_at_el0+0x70/0x1a0
> [ 455.906668] Read of size 4 at addr ffff200008e3a9d8 by task swapper/3/0

It looks like we miss a sentinel in kpti_safe_list.

Does the below help?

Mark.

---->8----