]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/cma: Teach lockdep about the order of rtnl and lock
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 27 Feb 2020 20:36:51 +0000 (16:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 11:16:36 +0000 (13:16 +0200)
commit157391c38676134a6d69959638f9e4df784e1b68
treed367dc4b876ca1a85d9c43f4b668559848c3b36b
parentb538f04af4ea3d60ce274bf8107349f71b2298e5
RDMA/cma: Teach lockdep about the order of rtnl and lock

commit 32ac9e4399b12d3e54d312a0e0e30ed5cd19bd4e upstream.

This lock ordering only happens when bonding is enabled and a certain
bonding related event fires. However, since it can happen this is a global
restriction on lock ordering.

Teach lockdep about the order directly and unconditionally so bugs here
are found quickly.

See https://syzkaller.appspot.com/bug?extid=55de90ab5f44172b0c90

Link: https://lore.kernel.org/r/20200227203651.GA27185@ziepe.ca
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/cma.c