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 BEE541DE3D7 for ; Fri, 7 Feb 2025 20:41:39 +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=1738960899; cv=none; b=M7+x7VejG131948ZXfRaXOBnzDTs4kapKBK1VwPD+7n8MmpiFCGnAO14deW15FYQEe26UxeMyn43dqz4i2gEAMxi1fZSoPFfsYcHEL0UJzigwhBDxSvk7ECG6mdsc9gS+wZzy5OfuO6ZjMqTPQoPw/xLGJw/UZUNJyFGc1PPGG4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738960899; c=relaxed/simple; bh=EQmWSN3GUB87GGGWeFaKRUVw3NTW82dnOWZrVr+GMOA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kb8NhF0/hCb7O4vqu+qx/Rs9/ETA1k9Bul6tYi0QO5oklDCiiPFP0AmmDuybn1G31KGL80h4SwGhYvfnh39jqOoBNEZ5HHyeCHAwCEABG7E+uDuMuFh5hIG9aHOl7WK6hlfxC/iHqNiVHX8xDxPd8ZATGut9lpMvN6cwyrJy7Xc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tzuu8czv; 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="tzuu8czv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2724C4CED1; Fri, 7 Feb 2025 20:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1738960899; bh=EQmWSN3GUB87GGGWeFaKRUVw3NTW82dnOWZrVr+GMOA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=tzuu8czvDBTZQ3FD0dL1f/z+77jM6GdrRT49g3bC1WfHpDPUEzYfcw+7QtNeTFhRH fwyhq9H+iL2fg95si37u3/VGKSTv1KZSOs/WcDv7xvGEO4DrfXf/cykl/zQLYc4fZm zXFCB3xKYYg3VE/FqUPY6+7aJH14SVX572xIWyTy8ijwWBX/NUwfxqxuQbGZBTTd6d 4NYlrckxLlid1iwHavgMWgeK7ctKghvlmZRaw8quVbHal0ZWviExOM2FU7h8SA0HeF 1avZ2Tuqy9BVsvHrST7Mse8bB4GgNSdTmZdTpIJ2rRqESmNUEo70LhYd740toyDH8v 99Nb+cJm8PaEg== Message-ID: <285e43ed-d908-4383-9b18-8921400707f2@kernel.org> Date: Fri, 7 Feb 2025 13:41:38 -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 2/8] ndisc: use RCU protection in ndisc_alloc_skb() 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-3-edumazet@google.com> From: David Ahern In-Reply-To: <20250207135841.1948589-3-edumazet@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/7/25 6:58 AM, Eric Dumazet wrote: > ndisc_alloc_skb() can be called without RTNL or RCU being held. > > Add RCU protection to avoid possible UAF. > > Fixes: de09334b9326 ("ndisc: Introduce ndisc_alloc_skb() helper.") > Signed-off-by: Eric Dumazet > --- > net/ipv6/ndisc.c | 10 ++++------ > 1 file changed, 4 insertions(+), 6 deletions(-) > Reviewed-by: David Ahern