Article View: linux.kernel.netdev
Article #27084Re: [PATCH RFC net v5 01/10] net/iucv: record that a HiperSockets socket sent its SYN
From: Alexandra Winter
Date: Fri, 04 Dec 2026 18:58
Date: Fri, 04 Dec 2026 18:58
51 lines
14528 bytes
14528 bytes
On 04.12.26 04:02, Bryam Vargas via B4 Relay wrote:
> From: Bryam Vargas <hexlabsecurity@proton.me>
>
> A HiperSockets socket is IUCV_BOUND from bind() until the SYN|ACK
> arrives, with or without a SYN on its way, and nothing tells the two
> apart:
Maybe sth like this is even clearer?:
..until the SYN|ACK arrives. The sk_state is the same whether or not a
SYN has already been sent. This leads to the following problems:
No strong feeling, but as this is still an RFC...
>
> - SO_MSGLIMIT is accepted after the SYN carried msglimit to the peer as
> the receive window, while recvmsg() counts the frames it reads against
> the new value. When the limit is lowered, a peer that keeps to its
> window has the socket closed on it once the receive buffer is full and
> frames wait in backlog_skb_q: WARN_ON(), -EFAULT, the rest of the
> stream lost. When it is raised far enough, no window update is sent
> and the peer's writer waits for one that only a data frame from us
> would carry.
> - A later connect() sends another SYN: one restarted after a signal, or
> one that follows a non-blocking or timed-out connect(). The listener
> makes a second child with the same names.
> - A SYN|ACK or SYN|FIN is accepted by a socket that sent no SYN.
>
> Record that the SYN was handed to the device. From then on SO_MSGLIMIT
> fails with -EINVAL, as on a connected socket, and connect() sends no
> other SYN: it waits for the reply to the first, or fails with -EALREADY
> if it names another peer. A SYN|ACK or SYN|FIN for a socket that sent no
> SYN is dropped. A SYN that was not sent records nothing.
>
> Fixes: 3881ac441f64 ("af_iucv: add HiperSockets transport")
> Fixes: 800c5eb7b5eb ("af_iucv: change net_device handling for HS transport")
> Suggested-by: Alexandra Winter <wintera@linux.ibm.com>
> Cc: stable@vger.kernel.org # 6.18.x
> Signed-off-by: Bryam Vargas <hexlabsecurity@proton.me>
> ---
I tested the "SO_MSGLIMIT after connect()" issues and the both went away
with this fix.
I also reproduced the "Second SYN after non-blocking connect()", and it
also went away with this fix.
Tested-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>
Technical Details
Message-ID:
<02be7607-a3f9-4f99-a1ee-85a000939ec4@linux.ibm.com>Path:
mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377567-linux-kernel-netdev=dewy.ruReferences:
<20261203-b4-disp-8029c32d-v5-0-0bce531e20d0@proton.me> <20261203-b4-disp-8029c32d-v5-1-0bce531e20d0@proton.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377567-linux-kernel-netdev=dewy.ru
From: wintera@linux.ibm.com (Alexandra Winter)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH RFC net v5 01/10] net/iucv: record that a HiperSockets
socket sent its SYN
Date: Fri, 4 Dec 2026 19:58:05 +0100
Organization: Usenet Network
Message-ID: <02be7607-a3f9-4f99-a1ee-85a000939ec4@linux.ibm.com>
References: <20261203-b4-disp-8029c32d-v5-0-0bce531e20d0@proton.me>
<20261203-b4-disp-8029c32d-v5-1-0bce531e20d0@proton.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2836971"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:24iQVbqrSB7VGJid5V0Avzono3E= sha256:81Gh0edSp8rENfQCHhOAgFyCeDcriEf0km/PLJL6m7U=
sha1:M6tm9/9JlcNZoNF5K1a6PerBaqY= sha256:dzslSf4Tq2O29uAIWIBvKqhjyOgxrrldfp0zK5Xh95A=
Content-Language: en-US
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 5F19B117CA8; Fri, 4 Dec 2026 21:58:44 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.199
X-Spam-Status: No, score=-3.199 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
HEADER_FROM_DIFFERENT_DOMAINS=0.001, 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=pass (2048-bit key)
header.d=ibm.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 J5QqzEjb59v7;
Fri, 4 Dec 2026 21:58:41 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-377567-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=linux.ibm.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 789E3117C99; Fri, 4 Dec 2026 21:58:30 +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 2E0124812B; Fri, 4 Dec 2026 18:58:27 +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=1796410706;
b=zwslM1Akp5nhZFEOwYHbvGsse8LrI0Cz1ijk5QYrUkJUwWwM/gF7oEDXiBQPFVfx0/eW
XjzRradn43iLHhqwbn5lsvozgKxTTlDyBfHh3B641jG72Rra3cKdfXRLeX+AK89Pim2+I
z7tETCnpwIxehYyAFrQJ2uq75FmKt8uQv2+ETJTTz+qOXO/hZUhSC/PYsAy/nAD60DI++
QbjWrJySTfdOeuUegT5F8QtLdnT1d5TWBbaJnaDrjSW91IwZEvxw9kg6C+kqbYgbk6rDX
TpeoX8idftrgBhtXyG2T63v54EegsMDZXOJbez0V3c1BewIrVeRTyApb1Hcdf6cxkhg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796410706;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
Received:Received:Received:Received:Received:Received:Message-ID:Date:
X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
Subject:To:Cc:References:Content-Language:From:In-Reply-To:
Content-Type:Content-Transfer-Encoding:X-TM-AS-GCONF:
X-Proofpoint-Reinject:X-Proofpoint-Spam-Details-Enc:
X-Authority-Analysis:X-Proofpoint-GUID:X-Proofpoint-Spam-Info:
X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version:
X-Proofpoint-Spam-Details;
bh=gsr4uZcgs4juAlNO1zSo2JekB+NvNWM2XT7Bu6QPFKY=;
b=lhrKhzaovNFXe4rPHzQVofmOvCV7hKtXRaIXMI8I6gLK8/xrdCsiu5zAxg/AFyb779Mb
9jsmW79uCAMYUL0SaTWgbbiOaSZxHKCi5qUHhrbFt+zNyF1tTT3e+FOOpagE9yvz4rmLQ
0+TPLd9nGqV2t+LW9sBvw9oonpzrQ7YMYuWSUEhEbTTjpzDjn9/8TMMOdmLrFG2dr3QiH
VP1JdBN9CWKq1e1V+u5eZzqag6X0NmbqtHb8QjN5ifPYaWTyZl80oTKdFFCvjcI8qmAs1
2iMNc4lpMit4mQXF2VAtx85LZ7ayLmYvS473gL3kDK1iNqEFzrA1x+YfKa545C8rMag==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=DSmsb0gA;
dmarc=pass header.from=linux.ibm.com;
spf=pass smtp.mailfrom=linux.ibm.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 22A56606A336;
Fri, 4 Dec 2026 18:58:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=DSmsb0gA
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.156.1
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796410700;
b=Pz+Q6HDuweuG3diC137zXuwp8xaQtdL2lm2LAmbl/bZndh5gkhMZlu5LvrIVtHyvmxIv
DEPG2denfZT9XHMm2w/X6/P4ya4+KH6MJjAC+0xrIs3R0V38gLES7Omk3uW+4w4rBfTgY
+2rxeoEBe4ckQaDMOb+tC0XEQF1C55zC2Orx6BBXmDL9mbQqPg1wmsxD9VHM8ZOkYNxU+
PHjQPO9CO6YfyTOhVPb+JqbPFHi3a9eImJqwDlV2xS9fAHGEZK0gTIkplSi101j97EVAt
G6+0c3hed12pliYMJdE9Gk5IenHN79w9TrZlZ8Za/AQ4I0+oKMQtn400Q6X1GwgMp1w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796410700;
h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received:
Received:Received:Received:Received:Message-ID:Date:MIME-Version:
User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To:
Content-Type:Content-Transfer-Encoding:X-TM-AS-GCONF:
X-Proofpoint-Reinject:X-Proofpoint-Spam-Details-Enc:
X-Authority-Analysis:X-Proofpoint-GUID:X-Proofpoint-Spam-Info:
X-Proofpoint-ORIG-GUID:X-Proofpoint-Virus-Version:
X-Proofpoint-Spam-Details;
bh=gsr4uZcgs4juAlNO1zSo2JekB+NvNWM2XT7Bu6QPFKY=;
b=NUlJJVP57UgXofIliI9cHXSRWsoJKV7qWXGMTeCEV7UEXoiljiEi8czRBhCotQyS6qFB
sspHoXUY4XC45GD9V3VpS0T4mn2RmujacfvVdseBMhYjS8f555EpjHM+mxyJhympluHzN
Fv29TVx1qRKpG3Flv471ag6ctI6xyUIsZgm44WkmSy5otqAux6H+D3OgFXaP9CtC6VmGe
s//VBpTmfuJGlFkxOY72vnLSl8aTHGYo44CeEdVi0I7dkVkN9dxA1CkLTbW6Z+7hmWrUi
TKtHkZ68Bx354eSA/+g4g4Qf/YRO6pOzkZu+Tk6w8BZlrP5CP1ZtWBFRjAuy+UXSNHA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=linux.ibm.com;
spf=pass smtp.mailfrom=linux.ibm.com;
dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=DSmsb0gA;
arc=none smtp.remote-ip=148.163.156.1
X-Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1CBB606A322;
Fri, 4 Dec 2026 18:58:19 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D1CBB606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com
X-Received: from pps.filterd (m0356517.ppops.net [127.0.0.1])
by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B4I6rUY2832522;
Fri, 4 Dec 2026 18:58:11 GMT
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc
:content-transfer-encoding:content-type:date:from:in-reply-to
:message-id:mime-version:references:subject:to; s=pp1; bh=gsr4uZ
cgs4juAlNO1zSo2JekB+NvNWM2XT7Bu6QPFKY=; b=DSmsb0gASoAd7uN4kmvcdn
gacgZr0dVYjdQ9FSXBbRTlAesvu3xhr8wKQGn201Ryd/5/acF1lx6AEiAjyafIC7
ZV+5RF76YRRiBw7c6SUeeXqwy2rGIpkqHJ83M816/ng39P7WPsz5iaO4AyiapPfc
ltUQlmCRF4RGABTt+ZnkIeK1fQqJocx86iDosX9regC0yx+NyuX34kjH9cKWU+pw
YWCURztjXDES5xNFfcQf1GIGSjsGWqz2wT9HMYSgyrdyQOn3wBQtbzkbe9IH7Qx/
eMnSkMuvqVsX8MZtyk32vAFjanAMBQSoIdVY6aIcVPb2WhTxZXSpeYKYbXEEDPtA
==
X-Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92])
by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4jbqgeugng-1
(version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
Fri, 04 Dec 2026 18:58:11 +0000 (GMT)
X-Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1])
by ppma22.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B4I8V2H1773715;
Fri, 4 Dec 2026 18:58:10 GMT
X-Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72])
by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4jaajsmb5b-1
(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT);
Fri, 04 Dec 2026 18:58:10 +0000 (GMT)
X-Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101])
by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B4Iw8Mq48693692
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
Fri, 4 Dec 2026 18:58:09 GMT
X-Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1])
by IMSVA (Postfix) with ESMTP id B55865805C;
Fri, 4 Dec 2026 18:58:08 +0000 (GMT)
X-Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1])
by IMSVA (Postfix) with ESMTP id 4725158051;
Fri, 4 Dec 2026 18:58:06 +0000 (GMT)
X-Received: from [9.111.164.170] (unknown [9.111.164.170])
by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP;
Fri, 4 Dec 2026 18:58:06 +0000 (GMT)
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
X-User-Agent: Mozilla Thunderbird
X-Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Nagamani PV <nagamani@linux.ibm.com>, linux-s390@vger.kernel.org,
Simon Horman <horms@kernel.org>,
Thorsten Winkler <twinkler@linux.ibm.com>
X-In-Reply-To: <20261203-b4-disp-8029c32d-v5-1-0bce531e20d0@proton.me>
X-TM-AS-GCONF: 00
X-Proofpoint-Reinject: loops=2 maxloops=12
X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA0MDA3NCBTYWx0ZWRfX5y0ZmUR2LTte
vq8AA9A4ttpV2BLcmu9P0ZKskHDH6GosEqD+IPP6xqb0Ou6TTj/HZ9x0JJpfNq6NEc3jgw7uEKt
+1M1/KQH+miGmP5XUdJsqgikZBVOEMJGVkOtEOMjw1JVB1geHq/hJpaj84k2lU2+boYiKh5THa0
Wxugn1StwBQKSUDIpfqZLec7Ck9Kavi8fkJkSbXw4U2hxBFNKkh9XKD2IbLCKoICCf/sHEKMyKP
/GegHd90rMRJkeZ8rSZXMlrpwUGkhtM1EhdMbe6PrAVNtPysZI7daFuUH5/ffhKVLsQGWtPdrPH
2sXOakhpx3YTbw21KxA7EFTbpUv//t/2vy6MXunnOa3S31dAb5k/8Xll/9JRYYxtxkMHRqeqyVn
3getbAAdC6OW+EHSgRYecCzM1MSBE/a4Dn49f5sKmW6iGpz+kcWEsjgMfh6Ited+XTd0Jw6wNoy
Vdl5K8zlkCt+6fJ61Dg==
X-Authority-Analysis: v=2.4 cv=Au17T+9P c=1 sm=1 tr=0 ts=6b130d43 cx=c_pps
a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17
a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22
a=RnoormkPH1_aCDwRdu11:22 a=U7nrCbtTmkRpXpFmAIza:22 a=VnNF1IyMAAAA:8
a=VwQbUJbxAAAA:8 a=rPg3dwM8zcR5ReQ2otQA:9 a=QEXdDO2ut3YA:10
X-Proofpoint-GUID: z1M6J-PbGJ40mEQ9iPuteFJRgvMRHhFm
X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA0MDA3NCBTYWx0ZWRfX15//6NF/ntYr
0x4PK6l5xP9ybABqUERDEJZad8DVWa9o+oL1cIOhBsU4qov/ijPe7Uq1L2fLRrQBohSqBYbLJrY
V8vWmzAUw8CF7ddTRRQRHLVbXFl7tgg=
X-Proofpoint-ORIG-GUID: 9dL4YUKUdkQ8cTtfwuhPAXX4bzaF7qc_
X-Proofpoint-Virus-Version: vendor=baseguard
engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49
definitions=2026-12-04_04,2026-12-03_04,2025-10-01_01
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0
adultscore=0 clxscore=1015 impostorscore=0 spamscore=0 phishscore=0
priorityscore=1501 lowpriorityscore=0 bulkscore=0 suspectscore=0
malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc=
route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001
definitions=main-2612040074