RE: [PATCH] kernel/notifier.c: remove notifier_chain_register

2019-06-16 Thread Nixiaoming
On Fri, 14 Jun 2019 03:38 AM Andrew Morton wrote: >On Thu, 13 Jun 2019 22:07:44 +0800 Xiaoming Ni wrote: > >> Registering the same notifier to a hook repeatedly can cause the hook >> list to form a ring or lose other members of the list. >> . >> >> diff --git a/kernel/notifier.c b/kernel/not

Re: [PATCH] kernel/notifier.c: remove notifier_chain_register

2019-06-13 Thread Andrew Morton
On Thu, 13 Jun 2019 22:07:44 +0800 Xiaoming Ni wrote: > Registering the same notifier to a hook repeatedly can cause the hook > list to form a ring or lose other members of the list. > > case1: An infinite loop in notifier_chain_register can cause soft lockup > atomic_notifier_chain_regist

[PATCH] kernel/notifier.c: remove notifier_chain_register

2019-06-13 Thread Xiaoming Ni
Registering the same notifier to a hook repeatedly can cause the hook list to form a ring or lose other members of the list. case1: An infinite loop in notifier_chain_register can cause soft lockup atomic_notifier_chain_register(&test_notifier_list, &test_notifier1); atomic_notifie