]> git.baikalelectronics.ru Git - kernel.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)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 17:27:00 +0000 (14:27 -0300)
commit0f175c408fc0d7431121814ed644f3b3523e21d4
tree37ad531bfad6b6af9f1d7733521e223a57e67972
parent20390eecd278ff4c22bf8e375eaa630486223ba5
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