Article View: linux.kernel.netdev
Article #9265Re: [PATCH net] ipv4/ipv6: preserve multicast filters after a failed source leave
From: Xia Yan
Date: Sun, 01 Nov 2026 10:48
Date: Sun, 01 Nov 2026 10:48
34 lines
10125 bytes
10125 bytes
Hi, The Sashiko review of this patch has two open Medium concerns [1]. Both describe behavior this patch does not change. My reading of each: 1) Empty-filter mode switch before the allocation in ip_mc_source() and ip6_mc_source(). The mode-switch block is untouched. The diff only moves the sflist dereference up and returns early when no source list exists for a deletion. Add requests still reach the block in the original order, so a mode switch followed by a failed allocation is preexisting behavior. Restructuring that path would grow this stable-targeted fix well beyond the bug it addresses. I'm happy to look at it as follow-up work if there is interest. 2) IPv4 leaves a non-NULL, empty sflist after unblock, while IPv6 frees it. This patch changes neither when a source list is freed nor when it is kept. For a non-NULL empty list the new early check is a no-op: the delete path already tested !psl further down, and the mode check keyed on pmc->sflist before this change. The asymmetry predates the patch. Unifying it would alter observable behavior on a long-stable path, so it looks like a separate discussion to me. No respin planned for these two. I will follow up if a maintainer sees them differently. [1] https://sashiko.dev/#/patchset/98602 Best regards, Xia Yan
Technical Details
Message-ID:
<20261101104804.8258-1-yanxia@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354223-linux-kernel-netdev=dewy.ruReferences:
<20261030063603.697510-1-yanxia@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354223-linux-kernel-netdev=dewy.ru From: yanxia@cmss.chinamobile.com (Xia Yan) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] ipv4/ipv6: preserve multicast filters after a failed source leave Date: Sun, 1 Nov 2026 18:48:24 +0800 Organization: Usenet Network Message-ID: <20261101104804.8258-1-yanxia@cmss.chinamobile.com> References: <20261030063603.697510-1-yanxia@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2671441"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3Uw/IblHDHjMr6zea8yypdqJEOk= sha256:kYhhRred6+LnnLucjIRR76n8Wik2S4nAJdfL36BrdT0= sha1:5Ws8NKDDBmnrHjMk8M1mWBGrivg= sha256:ON17X5D5mzFzy5c2f7rSvSp6luEBOisxDd8EmCxj6+s= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 9268A11231E; Sun, 1 Nov 2026 13:50:48 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.75 X-Spam-Status: No, score=-2.75 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.com X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ztGTherpFa61; Sun, 1 Nov 2026 13:50:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-354223-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 79D39112312; Sun, 1 Nov 2026 13:50:22 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 4E96528ACA; Sun, 1 Nov 2026 10:48:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793530134; b=v69MBUDdOzj1rfG90+Ga19qfbBohwqhG4KAnY2+nPJbr0gZIz5IW8SDntptNnFyehEFx UctvTWowcv+iiCfabIKXNDpMcvsVzpoJxt/z4lQI9Rsd1vPiRBtIieQN95jBgq3bT1jco WXpSZ88AM0FquElI42/4i24ryLxmNPBF8oxgv97+Iye7cBO9vHCXGFr4Rvaoab4Obmc+V IdvaGP+Czln3cxRDD2I9oJ8URIZHZ+JywQfxTtjW/8PBqSxXGYBZ5s+UleIS4DOUiK8Bk QtwWKWL5zMsC8gPaSrnRZBwb8oLyJjRkogm/qDX0Xj3IrnPQOTJdsgANNLSHwdv0AZQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793530134; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:X-Mailer:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=vUuYB/b4qAlVy17rDjkH2MMem8gIyNHOZnxT7q6yqts=; b=iC3G8lLl9hipbs7dff8fwJAnXXog2BlHEMwA83YpGos0WLi5Ox1Z+l9ywKQGZtPPoW5w yepPAEnf4liwKXXik36eyB1/HF/TX4k9DBelxj8s/OC3KRl/IMCq4EPCKXIy9b2ff6yH8 FqOMg1u0DIAdKLV49OrGV3RwXxY+KRzpub/H3osEs1VUVWMC8Uyf/ckY51Ez4EXw1Ulky 8J/isX2X+2zoraFpT9BQcnfVcsjbzT4/FCeV64xSWdpwxWvEnt3wl2SibknE5o4hIL+me BqcVoHKDQ83nutx12pvKhefAaDEfSVDZZhy1zHUkTaFppl7iKo6gm3RGGtH6t1FMP4w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=QP4VshIu; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2540E606A332; Sun, 1 Nov 2026 10:48:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=QP4VshIu X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.151 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793530123; b=EHGLpp3c9ThriXvBpgOdbAec4T/kHiC3fYwFSRX9XkMFUGyXtJhd3F08Ie74ZkXd+CKv wdErBIjyhZ/T5fM39TsjUONvTK2L1QUVSwte9wv7DLVSOxnpS/zAnUvMH0DHxXsJokIbz Y5uwuZMJQAg1KQHI21ucZP5BLrIOCSeMbNEBolXnnMh0E5jkX2Hl+YEgmG9QEYSjdatnp xIe7lLZEqKJZpWQ17YDMNubUYTZLst+NzZlewq8sbrAxBkxWZwX3wwDtmnsspiY2MFXEw hh41Xxxdf0u7km5boU0EgRqgCKXZjDiwabKw6W/WPnTbp9G99vcagk+fu1vca4e1/rg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793530123; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: X-Mailer:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=vUuYB/b4qAlVy17rDjkH2MMem8gIyNHOZnxT7q6yqts=; b=D6W4NYnrnqyNlPzVehLTpzUmfUgh42f3n4hPkGUdXemdhDhQBuG7nfnFMHh1Du3cT/BA JrXunHvDGc8BW4YhEoAt2F8qxZW5sccGXAhaacdvKG6WDc6E8ZmisBI8oqFxZWfKxeGCT /j15vxWNwQbtILctLo2OGmklNK/iego4ozCi1413R1A0JnOaLQzLNlMh5kbVKD/pCknvb LiVDsIrLuc/qrX/SmHRJmGRBILnajFsiJ0RNyE2UzPdE0B4gzF+vMN3fLO8mJW/RORNq/ YVAZOskw/RhnbUQutyVMlAZdAiVTdvS4fucZkxE9TpUjSOUAJBgsBJbLminopW6xc7w== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=QP4VshIu; arc=none smtp.remote-ip=111.22.67.151 X-Received: from cmccmta8.chinamobile.com (cmccmta8.chinamobile.com [111.22.67.151]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFE5C606A324; Sun, 1 Nov 2026 10:48:38 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DFE5C606A324 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=QP4VshIulSWgbtkceG+EikOgflJ+S3jBif/7NR/vCEqUD9TRoA0O6eh7E/oy6RE2nWPnDKK3nCemF LzXchgh0U6weTAab3xVZ5YvNEiLHWkMkR3LdvnLymmDZmnPpIW0vJoO+Z4du4StmGyAIex8jAeKmtB cfdR2eoOl8nntq+w= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app02-12002 (RichMail) with SMTP id 2ee26ae71900cb9-bb486; Sun, 01 Nov 2026 18:48:36 +0800 (CST) X-RM-TRANSID: 2ee26ae71900cb9-bb486 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from localhost.localdomain (unknown[112.23.104.16]) by rmsmtp-syy-appsvr05-12005 (RichMail) with SMTP id 2ee56ae71902977-a846b; Sun, 01 Nov 2026 18:48:36 +0800 (CST) X-RM-TRANSID: 2ee56ae71902977-a846b X-Cc: dsahern@kernel.org, idosch@nvidia.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, stable@vger.kernel.org, yana06070@163.com X-Mailer: git-send-email 2.43.0 X-In-Reply-To: <20261030063603.697510-1-yanxia@cmss.chinamobile.com> X-Mailer: git-send-email 2.43.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list