[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190529203106.GA26268@avx2>
Date: Wed, 29 May 2019 23:31:06 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: dianzhangchen0@...il.com
Cc: linux-kernel@...r.kernel.org, mhocko@...nel.org,
willy@...radead.org
Subject: Re: [PATCH] mm/slab_common.c: fix possible spectre-v1 in
kmalloc_slab()
> I think it makes more sense to sanitize size in size_index_elem(),
> don't you?
> - return (bytes - 1) / 8;
> + return array_index_nospec((bytes - 1) / 8, ARRAY_SIZE(size_index));
I think it should be fixed in poll.
Literally every small variable kmalloc call is going through this function.
Powered by blists - more mailing lists