Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C00BC197A92 for ; Fri, 7 Feb 2025 20:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738961003; cv=none; b=AO5Ogs9LqU50nadqJlv1mO+KS5P+oi1kBXl7Gl0PebCy3GY76P7f/0469vL6VaAiGZG8CVaFz+27zViUMMI6YknbADbBOVzcZIu44Lgw3PKvvgS/ADaDHqmEGhYzD+j/rAgtFO3ADmcOHxZPwB+zSc75UwNcJ9SgzZ0v7T4YJSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738961003; c=relaxed/simple; bh=MGXGcWu3sVAN7IxyYm02SgBQe46yRJlETy0dWDkkz/U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=E/kc3Yk9ItxZtOjYSGVY+kDtsuatew/YL3w4Lowc1z1K2MuTYFKwfl+Z3FydA0Pk48FWtELXb+HtaANY9vMrqc+o//uOeg6DKYUXSpJhbSecEY1/SHYWKKKwd7GWDgFaTPqlAsBmQvKNp7WfnJUbr5+hqyOQf1GebN9IChyS8h8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=njlNnGTX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="njlNnGTX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 517D6C4CEE2; Fri, 7 Feb 2025 20:43:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738961003; bh=MGXGcWu3sVAN7IxyYm02SgBQe46yRJlETy0dWDkkz/U=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=njlNnGTXe+b4ZlUjqJza79voJLRo2frZAgP+6SbA/463Gxpd0VgLzyRalwF+bTR6q JB4qL7nk0b35YDuNoW3pR3m9DQE4tuyerqH/sDQnhTc95ivBF7ttl4sQ5QNNa4DU0N Ru/KbH49NXv7oQlgyQrpdhBjSA6mk/7PyHaj6g/WvDTUUnEVsrs6wOGSGPWp5yCr7Q UQ6bm/v8pGcEl1++XY+dQ5CTOfIyc19YuB7RVeRgqurNtbnlmIKrMLH9dquc3ui9ml ewmof0rQW5x07RyQhg3/CCI/7YKTZAu8eSNa8VdaZxfQ5BZlHDbpxaxr5Tlygftr9a isNUDdsoxDkrw== Message-ID: <26cd3ec5-cf35-4162-af3c-ef185cf82916@kernel.org> Date: Fri, 7 Feb 2025 13:43:22 -0700 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net 3/8] neighbour: use RCU protection in __neigh_notify() Content-Language: en-US To: Eric Dumazet , "David S . Miller" , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, Kuniyuki Iwashima , Simon Horman , eric.dumazet@gmail.com References: <20250207135841.1948589-1-edumazet@google.com> <20250207135841.1948589-4-edumazet@google.com> From: David Ahern In-Reply-To: <20250207135841.1948589-4-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/7/25 6:58 AM, Eric Dumazet wrote: > __neigh_notify() can be called without RTNL or RCU protection. > > Use RCU protection to avoid potential UAF. > > Fixes: 426b5303eb43 ("[NETNS]: Modify the neighbour table code so it handles multiple network namespaces") > Signed-off-by: Eric Dumazet > --- > net/core/neighbour.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > Reviewed-by: David Ahern