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)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 17:27:00 +0000 (14:27 -0300)
commit32ac9e4399b12d3e54d312a0e0e30ed5cd19bd4e
tree37ad531bfad6b6af9f1d7733521e223a57e67972
parent679824148364773c8390abbf122bd7d9825e81eb
RDMA/cma: Teach lockdep about the order of rtnl and lock

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>
drivers/infiniband/core/cma.c