Home
last modified time | relevance | path

Searched hist:f26b32ef2fe6f7ae0ba56854e666339e105610ad (Results 1 – 1 of 1) sorted by relevance

/linux/net/qrtr/
H A Dns.cdiff f26b32ef2fe6f7ae0ba56854e666339e105610ad Fri Jul 14 07:58:45 CEST 2023 Vignesh Viswanathan <quic_viswanat@quicinc.com> net: qrtr: ns: Change nodes radix tree to xarray

There is a use after free scenario while iterating through the nodes
radix tree despite the ns being a single threaded process. This can
happen when the radix tree APIs are not synchronized with the
rcu_read_lock() APIs.

Convert the radix tree for nodes to xarray to take advantage of the
built in rcu lock usage provided by xarray.

Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Signed-off-by: Vignesh Viswanathan <quic_viswanat@quicinc.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>