Re: [PATCH] include/linux/kasan.h: Notice about 0 for kasan_[dis/en]able_current()

2016-05-02 Thread Chen Gang
On 5/2/16 19:23, Alexander Potapenko wrote: > On Mon, May 2, 2016 at 1:20 PM, Chen Gang wrote: >> On 5/2/16 18:49, Alexander Potapenko wrote: >>> On Mon, May 2, 2016 at 7:35 AM, wrote: According to their comments and the kasan_depth's initialization, if kasan_depth is zero, it mea

Re: [PATCH] include/linux/kasan.h: Notice about 0 for kasan_[dis/en]able_current()

2016-05-02 Thread Alexander Potapenko
On Mon, May 2, 2016 at 1:20 PM, Chen Gang wrote: > On 5/2/16 18:49, Alexander Potapenko wrote: >> On Mon, May 2, 2016 at 7:35 AM, wrote: >>> >>> According to their comments and the kasan_depth's initialization, if >>> kasan_depth is zero, it means disable. So kasan_depth need consider >>> about

Re: [PATCH] include/linux/kasan.h: Notice about 0 for kasan_[dis/en]able_current()

2016-05-02 Thread Chen Gang
On 5/2/16 18:49, Alexander Potapenko wrote: > On Mon, May 2, 2016 at 7:35 AM, wrote: >> >> According to their comments and the kasan_depth's initialization, if >> kasan_depth is zero, it means disable. So kasan_depth need consider >> about the 0 overflow. >> >> Also remove useless comments for du

Re: [PATCH] include/linux/kasan.h: Notice about 0 for kasan_[dis/en]able_current()

2016-05-02 Thread Alexander Potapenko
On Mon, May 2, 2016 at 7:35 AM, wrote: > From: Chen Gang > > According to their comments and the kasan_depth's initialization, if > kasan_depth is zero, it means disable. So kasan_depth need consider > about the 0 overflow. > > Also remove useless comments for dummy kasan_slab_free(). > > Signed

[PATCH] include/linux/kasan.h: Notice about 0 for kasan_[dis/en]able_current()

2016-05-01 Thread chengang
From: Chen Gang According to their comments and the kasan_depth's initialization, if kasan_depth is zero, it means disable. So kasan_depth need consider about the 0 overflow. Also remove useless comments for dummy kasan_slab_free(). Signed-off-by: Chen Gang --- include/linux/kasan.h | 8 -