lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1568861888-34045-1-git-send-email-nixiaoming@huawei.com>
Date:   Thu, 19 Sep 2019 10:58:05 +0800
From:   Xiaoming Ni <nixiaoming@...wei.com>
To:     <gregkh@...uxfoundation.org>, <akpm@...ux-foundation.org>,
        <vvs@...tuozzo.com>, <torvalds@...ux-foundation.org>,
        <adobriyan@...il.com>, <anna.schumaker@...app.com>,
        <arjan@...ux.intel.com>, <bfields@...ldses.org>,
        <chuck.lever@...cle.com>, <davem@...emloft.net>,
        <jlayton@...nel.org>, <luto@...nel.org>, <mingo@...nel.org>,
        <Nadia.Derbey@...l.net>, <paulmck@...ux.vnet.ibm.com>,
        <semen.protsenko@...aro.org>, <stern@...land.harvard.edu>,
        <tglx@...utronix.de>, <trond.myklebust@...merspace.com>,
        <viresh.kumar@...aro.org>
CC:     <stable@...nel.org>, <dylix.dailei@...wei.com>,
        <nixiaoming@...wei.com>, <yuehaibing@...wei.com>,
        <linux-kernel@...r.kernel.org>, <linux-nfs@...r.kernel.org>,
        <netdev@...r.kernel.org>
Subject: [PATCH v4 0/3] kernel/notifier.c: intercepting duplicate registrations to avoid infinite loops

Registering the same notifier to a hook repeatedly can cause the hook
list to form a ring or lose other members of the list.
so, need add a check in in notifier_chain_register(),
intercepting duplicate registrations to avoid infinite loops


v1:
* use notifier_chain_cond_register replace notifier_chain_register

v2:
* Add a check in notifier_chain_register() to avoid duplicate registration
* remove notifier_chain_cond_register() to avoid duplicate code 
* remove blocking_notifier_chain_cond_register() to avoid duplicate code

v3:
* Add a cover letter.

v4:
* Add Reviewed-by and adjust the title.

Xiaoming Ni (3):
  kernel/notifier.c: intercepting duplicate registrations to avoid
    infinite loops
  kernel/notifier.c: remove notifier_chain_cond_register()
  kernel/notifier.c: remove blocking_notifier_chain_cond_register()

 include/linux/notifier.h |  4 ----
 kernel/notifier.c        | 41 +++--------------------------------------
 net/sunrpc/rpc_pipe.c    |  2 +-
 3 files changed, 4 insertions(+), 43 deletions(-)

-- 
1.8.5.6

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ