[Devel] [PATCH v2] tcache/tswap: don't shrink tcache/tswap until they are initialized
Andrey Ryabinin
aryabinin at virtuozzo.com
Tue Dec 11 19:18:11 MSK 2018
On 12/11/18 7:05 PM, Konstantin Khorenko wrote:
> kswapd could run before tcache_init()/tswap_init() finished,
> thus before tcache_nodeinfo/tswap_lru_node are allocated,
> thus lead to a kernel panic in tcache_shrink_count()/tswap_shrink_count().
>
> v2: add smp_{wmb,rmb} to guarantee proper load ordering.
>
> https://pmc.acronis.com/browse/VSTOR-18694
>
> Found-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Acked-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
More information about the Devel
mailing list