lkml.org 
[lkml]   [2019]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] mm/slab_common.c: fix possible spectre-v1 in kmalloc_slab()
On Wed 29-05-19 20:37:28, Dianzhang Chen wrote:
[...]
> @@ -1056,6 +1057,7 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
> if (!size)
> return ZERO_SIZE_PTR;
>
> + size = array_index_nospec(size, 193);
> index = size_index[size_index_elem(size)];

What is this 193 magic number?
--
Michal Hocko
SUSE Labs

\
 
 \ /
  Last update: 2019-05-29 18:25    [W:0.061 / U:0.512 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site