Re: [PATCH] net: qrtr: ns: Protect radix_tree_deref_slot() using rcu read locks

From: David Miller
Date: Mon Sep 28 2020 - 19:15:20 EST


From: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>
Date: Sat, 26 Sep 2020 22:26:25 +0530

> The rcu read locks are needed to avoid potential race condition while
> dereferencing radix tree from multiple threads. The issue was identified
> by syzbot. Below is the crash report:
...
> Fixes: 0c2204a4ad71 ("net: qrtr: Migrate nameservice to kernel from userspace")
> Reported-and-tested-by: syzbot+0f84f6eed90503da72fc@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>

Applied and queued up for -stable, thank you.