From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-43100.protonmail.ch (mail-43100.protonmail.ch [185.70.43.100]) (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 1F63D47ACF9 for ; Fri, 21 Aug 2026 11:42:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.70.43.100 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787312553; cv=none; b=GO8VIAf9ygHERn1IN4q9sipGdobQiXiNJrvzezp8/tFFf4MEyTTCDPI+p36vT6E4T4oZn0MT9nSac/2giizUo8WPApEzhsoRUPDdsMD5hNVSoj2Ow6RGCgW326gOmckiLJbJnIbjpMu76OkIL2In6q7mP3RVjtDXHUCwUBXIrb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787312553; c=relaxed/simple; bh=JNn5clqejdT+zRoq24VhrDeevuyGBfvQGO7Y3R8uxs4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=CvKkaUC23J+9eOt5fvnPQKDzoFyDyAMAZCFmmJr5ENNSwPtdj+jpS/3iQE2w86LeMjbCLogzt52TyVgApaU74kf+FHXxJ37QShPE2NJWOArPOCE1bZvTbJ5//ukAOtX3s613XBFYB2Gw+SnzwsckZiB/oA90xOODAF62Y96/Z5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=csD35pzi; arc=none smtp.client-ip=185.70.43.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="csD35pzi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1787312538; x=1787571738; bh=JNn5clqejdT+zRoq24VhrDeevuyGBfvQGO7Y3R8uxs4=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=csD35pzicLegh/9J0qnpZ/0xSUl5pxIW3tsEiYF49qb67X4Q8MsLSeHBUtqByDUrn GgFFeNWyXxKmoSI8cHZ2R6r4i9Z1wDXIps10DPJQAebeR0NLBiSvTqZWyOB13IK0MN jV0yluz3KLcHFFwuH+egcf65U32mPGIq4SuYuXDtf6aL8/acja/1rl3bo5XKZOezlN oait6oSJdiXjV+e3EmDZzLvqORH/cPeQGCXiGR/eGM0CsKc8FZPvbpZ/rYeygmZipk C6FqA2+PfZOq3KhSgsZClC7qqkr2xR2hGRobsQNCq+ctf3/l0sXWCH8SqwrUBEND4H 0CV7SdLoBX4ag== Date: Fri, 21 Aug 2026 11:42:16 +0000 To: Alexandra Winter , Thorsten Winkler , Jakub Kicinski , Eric Dumazet , Paolo Abeni , "David S . Miller" From: Bryam Vargas Cc: Hidayath Khan , Simon Horman , Ursula Braun , linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net 1/2] net/iucv: drop HiperSockets frames from other network namespaces Message-ID: <20260821114210.430509-1-hexlabsecurity@proton.me> In-Reply-To: References: <20260815-b4-disp-dc82fde4-v1-0-e83b10b22ce9@proton.me> <20260815-b4-disp-dc82fde4-v1-1-e83b10b22ce9@proton.me> Feedback-ID: 199661219:user:proton X-Pm-Message-ID: 70b134f719bcf27898a10dc27797fb8c16cd8016 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=utf-8 Content-Transfer-Encoding: quoted-printable Alexandra, > I am wondering whether a check of > +=09=09if (iucv_sk(sk)->hs_dev !=3D dev) > +=09=09=09continue; > > would cover a broader range of issues. It does, and I'd rather have yours than mine. It covers three things at once: the namespace case, since hs_dev can only come from the init_net scan in iucv_sock_bind(); the transport case the earlier patch went after, since classic sockets have hs_dev =3D=3D NULL and drop out of the walk; and deliv= ery to a socket bound to a different HiperSockets device. I went looking for the regression it could carry -- an accept-queue child left without hs_dev, which would break connection setup -- and it isn't there. The child inherits at af_iucv.c:1908. One thing it doesn't reach, and it's why I'm not dropping both: the check sits after EBCASC() has already rewritten the transport header in place at :2073-2076, and a SYN matching no socket still takes the !iucv branch at :1872-1877, which swaps the frame and hands it to dev_queue_xmit(). So it replaces 1/2 and stays complementary to 2/2. Send yours and I'll drop 1/2. Thanks, Bryam