Re: [PATCH 2/2] notifiers: double register detection

2016-10-27 Thread Vasily Averin
Dear Andrew, could you please pick up this patch? It helps to detect double register of the same notifiers. This kind of problem can lead to unexpected failures (some notifiers can be not called), endless cycles, memory corruption or crashes. Initially I've found such cases in OpenVZ kernels in

Re: [PATCH 2/2] notifiers: double register detection

2016-10-27 Thread Vasily Averin
Dear Andrew, could you please pick up this patch? It helps to detect double register of the same notifiers. This kind of problem can lead to unexpected failures (some notifiers can be not called), endless cycles, memory corruption or crashes. Initially I've found such cases in OpenVZ kernels in

[PATCH 2/2] notifiers: double register detection

2016-09-21 Thread Vasily Averin
WARN_ON should help to detect double register of the same notifiers Signed-off-by: Vasily Averin --- kernel/notifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/notifier.c b/kernel/notifier.c index fd2c9ac..e02b2f0 100644 --- a/kernel/notifier.c +++

[PATCH 2/2] notifiers: double register detection

2016-09-21 Thread Vasily Averin
WARN_ON should help to detect double register of the same notifiers Signed-off-by: Vasily Averin --- kernel/notifier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/notifier.c b/kernel/notifier.c index fd2c9ac..e02b2f0 100644 --- a/kernel/notifier.c +++ b/kernel/notifier.c @@ -22,6