Re: [Patch] slub: Fix a missing-check bug in mm/slub.c file of Linux 5.1.1

2019-05-19 Thread David Rientjes
On Wed, 15 May 2019, Gen Zhang wrote: > Pointer s is allocated with kmem_cache_zalloc(). And s is used in the > follwoing codes. However, when kmem_cache_zalloc fails, using s will > cause null pointer dereference and the kernel will go wrong. Thus we > check whether the kmem_cache_zalloc

[Patch] slub: Fix a missing-check bug in mm/slub.c file of Linux 5.1.1

2019-05-15 Thread Gen Zhang
Pointer s is allocated with kmem_cache_zalloc(). And s is used in the follwoing codes. However, when kmem_cache_zalloc fails, using s will cause null pointer dereference and the kernel will go wrong. Thus we check whether the kmem_cache_zalloc fails. Signed-off-by: Gen Zhang --- --- mm/slub.c

[Patch] slub: Fix a missing-check bug in mm/slub.c file of Linux 5.1.1

2019-05-13 Thread Gen Zhang
Pointer s is allocated with kmem_cache_zalloc(). And s is used in the follwoing codes. However, when kmem_cache_zalloc fails, using s will cause null pointer dereference and the kernel will go wrong. Thus we check whether the kmem_cache_zalloc fails. Signed-off-by: Gen Zhang --- --- mm/slub.c