From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm2-f2.google.com (mail-wm2-f2.google.com [74.125.225.130]) (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 D646621CC58 for ; Wed, 8 Jul 2026 18:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783535327; cv=none; b=oJ8Ror8Dc97Nfm6gi6OGGjJ191xeOcbyM0D3ImlBCX8zSA7Mtqq93RRUDOALsZwAnAU4RGSVB/Z38WqxWuIOsHrH78udc82y006glkczJmum8qowRchQUIY6AmkmPQYoEfIHtyqw654TQygS1OnFiQBXHDkoc14mf2t2EbKDWXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783535327; c=relaxed/simple; bh=qznbZWEKvVbYbB3UWzzKOo3tdMbOv/BFQoeRrvOLZXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LpuZtkx1EHICByPSObbHn3QRIROPLagzQ2V5lLfhJp5hrMEoQNUn30B3skfmeqcb1aqIx1RVUuca4RrQOlWqX6Hnb1TqFK8S9GsOEeeLFIX6NIgm8//xtsPLiX5aEMxGR4jd4kUZ0rDKTDw2/ag5lF1jjfGlXp34cVKuskrgkH0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=r5oU935R; arc=none smtp.client-ip=74.125.225.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="r5oU935R" Received: by mail-wm2-f2.google.com with SMTP id 5b1f17b1804b1-4926d058720so2737285e9.0 for ; Wed, 08 Jul 2026 11:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783535324; x=1784140124; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Gq3cohTqbBoe5iaxO0km5tQIUkVdi62JW772GqwwYl0=; b=r5oU935RvmsEfixZVIKhPNdDrF63hqKBm9ll5p0TflXmwngGm1Ce91L5JqKlvQmygt jAFAZmmqw9i5sm/oSvNbGvwFVUElsk99zpAUxXf6BypiQaS9D9FFLk0lexOJr6Qdgh8e Xl7yTHbshhKIxb0nK5r+FTx/qtgctj+0ojAD4Ml1EiFSCaet5hbdhS9pDpJ8+4CEkaf8 6IpHAT+khgYwrXbtnPjXsJ579KNmTV2DKV2V+RWPL9pDLoGhA5ElzoBNMq4VDK5d3eYX /G681XMDwiZtCJok3bRJkh7VRkt6CdYAbzMukRs7FaOhOUUdtVylVmevMyQLd/tbY5MS Ahag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783535324; x=1784140124; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Gq3cohTqbBoe5iaxO0km5tQIUkVdi62JW772GqwwYl0=; b=LuW/N3qs24xiODZ+kNUQkiOF2BETY7rantnd66KUqe3A/GRdX2xQzaNYsvU5E2RAiu KUHhPSTKYIRmemwTbbdhWqEoyfNi48zdsDHldHuxeMPk/1ILpA+GyZBNVGZmlrLijZRp VNh3CW83UjjasipS/yYvJpOMCkY2RokPy1WpRYAUKSV53RrNjeGwAeQgqn7pVDn94nlH CPsRVicgBwquogHdjhsmAtp2rzUq0+DPRw1Eao3esfgc3oMjreRSAcQrobR/t2dFFWAZ zGbvoUdBlCD0wVuUT2vZithmg8hifUxC2DjdHDU3LLlpO/YvIAH8u/Afr2cUSnES8fgN OAJQ== X-Forwarded-Encrypted: i=1; AHgh+RpHYRg9eAv6PEcPA3BxlhRgVuB7AX4arNp6cqyWhiJ01zVqsK0bz8XaaJjABQqh4QbMEoMOAVEw0eyDz38=@vger.kernel.org X-Gm-Message-State: AOJu0YzonsiYZFrBotmOlbXEv4JjdlszyDKsEDu3tyi1bGKgISkb8MG1 q5krCEj+58+FSxoi/Ukss0arCmP1xIb/TRIgPNUdopOP5LBVTuGKCLRq X-Gm-Gg: AfdE7clR04MNxEwb90NyEI9bvf1Vu/GBhnSrfP+la5eUmnP2zk7J2A+aEAz9rEqJAom 7r8nD99YlyE06K2KZzZO06QGQUwQi3odIVACsr2VIPxjt5dYdcu3sR0u09+R8HNeY67d598ylnT ShGy7uvX42duoVueSeBlOy27SRskQ52/Lx3+yiFW59DlmcVfv6uf9IpnTPIQsG6bhRT+In4O4lu wmPsYGCPhxoJ+htfLumdmBql01H4srGIW6G1lRd/9gV3bYqeIus7D1RpbBxgTT8Rxw/inGpAaqz 8hv5fo7NYBnCDDsYqBkMbf73JTTGtwHferbUFvLjMf7l4RvIeto07IOIeCZ68nAGMXIy4GDCLi9 cgKhQ2/Vs+RTpEHEqtdnkhcZFpnZ+u3CWUL0atJfVzxTFBnse6azQjvKanqaraCD0WKeKYWAmI/ +N5FO0c38Qqy8= X-Received: by 2002:a05:600c:4743:b0:48f:d5b8:5b07 with SMTP id 5b1f17b1804b1-493e68c4a07mr37875705e9.20.1783535324110; Wed, 08 Jul 2026 11:28:44 -0700 (PDT) Received: from fedora ([212.253.209.56]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-493e5a61135sm49702335e9.1.2026.07.08.11.28.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jul 2026 11:28:43 -0700 (PDT) From: Serhat Kumral To: yanjun.zhu@linux.dev Cc: dsahern@kernel.org, jgg@ziepe.ca, leon@kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, serhatkumral1@gmail.com, syzbot+8c9eede336e3a843750e@syzkaller.appspotmail.com, zyjzyj2000@gmail.com Subject: Re: [PATCH v3] RDMA/rxe: rework per-net tunnel socket lifetime to fix refcount underflow Date: Wed, 8 Jul 2026 21:10:07 +0300 Message-ID: <20260708181007.24280-1-serhatkumral1@gmail.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <6ced0145-30ab-4af5-9005-9da024933fff@linux.dev> References: <6ced0145-30ab-4af5-9005-9da024933fff@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi Yanjun, > However, after the network namespace teardown, the associated netdevice > is still unregistered, which > triggers the NETDEV_UNREGISTER notifier. In rxe_notify(), this event > eventually calls rxe_net_del() to > remove the RDMA link. Isn't the ordering the other way around? The netdevices of a dying netns are unregistered by default_device_exit_batch(), a pernet device op, while rxe_net_ops is a pernet subsys, and subsys exits run after all device exits. So NETDEV_UNREGISTER (and the notifier's rxe_net_del()) should have already completed before rxe_ns_exit() destroys the mutex. Am I missing a path where rxe_net_del() can run after rxe_ns_exit()? Thanks, Serhat