On Tue, Feb 25, 2020 at 02:54:45PM -0500, Dennis Dalessandro wrote: > The packet handling function, specifically the iteration of the qp list > for mad packet processing misses locking RCU before running through the > list. Not only is this incorrect, but the list_for_each_entry_rcu() call > can not be called with a conditional check for lock dependency. Remedy > this by invoking the rcu lock and unlock around the critical section. > > This brings MAD packet processing in line with what is done for non-MAD > packets. > > Cc: Madhuparna Bhowmik <madhuparnabhowmik04@xxxxxxxxx> > Reviewed-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx> > Signed-off-by: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxx> > --- > drivers/infiniband/hw/hfi1/verbs.c | 4 +++- > drivers/infiniband/hw/qib/qib_verbs.c | 2 ++ > 2 files changed, 5 insertions(+), 1 deletion(-) Applied to for-next, thanks Jason