From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 583FC28C037 for ; Sat, 18 Jul 2026 16:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784390684; cv=none; b=fxL6xWrvOzBJgwVSBOm54SvVO9PX7vZEGruVb3GyvFlNj+RSSTGxB/Zd5xtAsk2BtaxpzvR5z9GNanHu3shGbyYYO+tZgx4hsPhmwc2jNHKT69mWO/HBvqPeIDUdZ8gz+19BJ+fn0FpJjm7MP39yR4GYpAoplqz+zslCl4fja84= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784390684; c=relaxed/simple; bh=ObBl2TT6fkqb1ycB/6fG953huqnqc6cUmP96XRVZ/+c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OZ3GyItxFKIPUXrCuF6h5oHA/na35Zx2bSoHESW7bWOFRMRTrlRBoy5u8YZN8vgk1Sz7jXXwlEZ22NPaoT/IUQU68IBxkVTa2+fB3l85+xB8tmRjKcIN3/M19OulGoAp6CVVLdpfex9eepgbIhZg/a5XH55vYSColaN3MW0++3M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=ZaurwVqw; arc=none smtp.client-ip=209.85.219.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="ZaurwVqw" Received: by mail-qv1-f45.google.com with SMTP id 6a1803df08f44-8efef6533aaso53917476d6.0 for ; Sat, 18 Jul 2026 09:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1784390677; x=1784995477; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ObBl2TT6fkqb1ycB/6fG953huqnqc6cUmP96XRVZ/+c=; b=ZaurwVqwc13bq4f4kKV9boV3tmELjS8SgCrHsRSt7yhzhVJs3Q27BLolKg7lV42pDK P4HD2LEq81bAzQuIPLAT4DgjWzz/r2utNS3gZfS2R67cHUD+YElZ7QDifSk/OGjA86ea ZTPuOSOCRjN0laSSwWCdtxTkdQ3uiHd8mIGmTWW22NZG2AW7GpSzTFzXdt+qoK7ALZDS 39DCcxn9wszvke4LOsdYiLXZTfRVdRC91P1P2R5P1+n5Vdu9T0RVtcWitPstKzoOT0gH 96HdQI/mT5q6Wc0jp1OpjiPqNZVQYF/F55gfUmBkS7oUPbcAItwhS1YJbSwv5PE+9UA0 EOuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784390677; x=1784995477; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ObBl2TT6fkqb1ycB/6fG953huqnqc6cUmP96XRVZ/+c=; b=A7OTCEtG0O3+EhlSX5AaHeQqXYzHVNII1pcUNpS1PojKDNDFCXlJqotcFfdk1CelLl f2S7dPluJs5uC/uXzl4+4b93wy2gPfjFGa4eMJXTrZ3or+liwhAI/7qV6FRl5sITQUDQ sdHeiUdeH+nd4fO7wm2hHONAe5kzecKhJVTOTNPucLWVc+dB2eX9JApa5ynN2BGWFzBc arMClavRUDxd16TOkz4cJMpZo16fS141wCArXMwW/m/1VXkbELK6C80Vvl+5ok4Kq1DM dzRM+5cZxiO3auwB8YuCQ0XIuJcn5EDTwX0XPwilLzPVVdTs03rPgYhAFdyuCHPgBNat QzAA== X-Forwarded-Encrypted: i=1; AHgh+Rp5xvbqBvJdMOfp+5ughN6Q2Nr2njA+iBrrB3N4fxBSO6lGp5dVkk2eAq+aTlC3n0nNqXVmci4xWv5wJ6w=@vger.kernel.org X-Gm-Message-State: AOJu0Yx2vvj8Ag4wQMwDnDr+pWeMg3HspPwHZCHxBH2aOmaoWKB5Qj8+ 7O/NKXfmIUxQf/D9yN1SpqO0Rkk52beBNrHPNHNn2w2JGDq+38EdkpMmPokr+smzSl4= X-Gm-Gg: AfdE7cm6IX6GYnwrP6PRJg1ie2xQXNTOcw//UpAaLHCRcwS3IaAnp/PYamdV+tV2Igz LWQCKqzA2FL/kMIa9UAYZAnehqAmd4o+IxWA1HVOKhmzBFw97TxffUrBbIpAfKV8+9VMGGssfR+ WxO7Pu9qrp/5iYFYX9plWswkrS1/T35YNFRj2R8N8pYVvq3KZJ5E1jBcfHAWjUT3a6Es3Isbj9Y DOA/kYxs5mHT/aN+9z1cLQcsJSd530pXGAGchP70bOma9hCgeOiuYRc/X3oyUZR5UFlsl7lxWYz Sodt0YzDGD/sCfLGxAQ73K9+fwdwi5j8LzRDvWmYwC3aA5XFVMJ53rvOaR2C9gEkOcsOvxtyI/q 8WdJ8c4+XfFlCxsF3VeEp6fwFRj9Vbwt7laT15KHQv+AGgYKoTw== X-Received: by 2002:a05:6214:33c2:b0:8fd:6df3:b379 with SMTP id 6a1803df08f44-9077853d176mr83985206d6.61.1784390676807; Sat, 18 Jul 2026 09:04:36 -0700 (PDT) Received: from ziepe.ca ([159.2.72.92]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-9078b6d8cd4sm12607736d6.29.2026.07.18.09.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2026 09:04:35 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1wl7Wk-00000006axc-46kQ; Sat, 18 Jul 2026 13:04:34 -0300 Date: Sat, 18 Jul 2026 13:04:34 -0300 From: Jason Gunthorpe To: Zhu Yanjun Cc: Serhat Kumral , Leon Romanovsky , Zhu Yanjun , David Ahern , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+8c9eede336e3a843750e@syzkaller.appspotmail.com Subject: Re: [RFC PATCH 1/2] RDMA/rxe: drive UDP tunnel socket lifetime from the GID table Message-ID: <20260718160434.GH701389@ziepe.ca> References: <20260718142642.102924-1-serhatkumral1@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Jul 18, 2026 at 09:01:50AM -0700, Zhu Yanjun wrote: > However, hiding the socket setup failures from the user-space netlink > interface concerns me. If rxe_setup_udp_tunnel() fails during > rxe_add_gid() (e.g., due to port 4791 conflicts or transient -ENOMEM), > rdma link add will return success. We don't have any way to fully deal with GID creation failures due to how everything works, but we should be to arrange things so that the failed GID is at least unusable. This may already be the case, I haven't check carefully. So the failure mode is not silent and is reported to userspace through missing GID table entries. If you want newlink to also return a failure code we'd have to make it synchronously create the gid entries and ensure that they are all created. I view that as a followup topic though Jason