From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796103954; b=3VyqIBCKeEHILyeAzDJBM8jNz8agyUJK2v7L07s1L1ujuHYm1EC8mDxG6aOCRZd27Vy9 rFBLQM2k8TXxi3Eh5OuMIUZcLztrpKb7PehUL0iB8rzpf8UE/vbgxBqtDdUnjI+9UvSqo LnM0C/AZYOSOj3YnUl7A+BHl+sjofJPkOWqiZ3CW4s87i2NCGnCQ9Yj4Zh+6tmMc8uLrC 3CbPn3LjIxkFWCFjYjeEZndDmF7y9SLivPMuLC64xh7vaT5ggrVGYRQEqy5OyZSG+mR5T /YWOZMJFujcnhpextmWcMaZrcOHINSz//O6ZF+Xe9yhenz4nDCzUDt62xOS4x9TbFLg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796103954; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:Message-ID:Date:MIME-Version: User-Agent:Subject:From:To:Cc:References:Content-Language:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-TM-AS-GCONF: X-Authority-Analysis:X-Proofpoint-Spam-Details-Enc: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=cpIgNoIlR4q7SCADVglbS/RTEaflJbmcCB9RIPgM6RY=; b=uZN/K2eSAkHq7vH2l3o58+I9bf49COBzMukaKT+VVjULjubmjC1t+0QBtmmG/bzLmJAf Z26QI+UD13HqMI6XNA6K3UfUL11AWU1w6joPfsozUkjwWrCwTZvU5ZlPj1L840PP+Bpuh LU8z2xqzWQZ70B76QCRr+d34D2B3xWPhAPIYOOnKnrGEP2ufOvJBUQVDR3B1F+rAgarSj cqQTxH4VWvva2/OX2tjn1/ucwylPNG0qfsWNUw9+CZwCUB3CS0cPSlmn2dmUrQ8TqmSsF eUA0c06vDhtlw/rTB/gbnY7ISb8AEIKRQPWj06wumW6/lDJ8VIiiaQh1xjYQTzgvPJg== 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=XOznnumy; arc=none smtp.remote-ip=148.163.158.5 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (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 3C18F606A31A; Tue, 1 Dec 2026 05:45:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3C18F606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=XOznnumy Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12Ympw639535; Tue, 1 Dec 2026 05:45:39 GMT 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=cpIgNo IlR4q7SCADVglbS/RTEaflJbmcCB9RIPgM6RY=; b=XOznnumy/zRqTIGtfAH94o zKk7Kpob4AmmKgvvlVIKPcRfwem7nPE2DT2gKQTsd7JYeZTjGcJ1BaijlJCQsy7K lFIMEqzdt5wKpBtMMCOIuCNX+p1xF4TiWztCaTfrJO9TZ8EV+/PWdapm2PaKySoF Xkh7Cij99PLIQq2aLrQhF7iWBQlV5Z1N5bM68vBVsQcP1PI1ZP57GYXYdkdaJLpj qvqblHCSrLlIynemA4cGL2PwTjdKo9Cj7n/amurDfqudlGsrD3GNCzi1Z1TAzzAB FpgvdnrOsYira1Q289Va3r+8nPdpZHMh4XWEhToBKoHfOSH8Y2w9CLy+dy5qljsw == Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7pku2pd4-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 05:45:38 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B12JLBm939098; Tue, 1 Dec 2026 05:45:38 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 4j8byxynes-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Dec 2026 05:45:38 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (smtpav04.dal12v.mail.ibm.com [10.241.53.103]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B15jbxe19726954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 1 Dec 2026 05:45:37 GMT Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 409CB5805A; Tue, 1 Dec 2026 05:45:37 +0000 (GMT) Received: from smtpav04.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A324558056; Tue, 1 Dec 2026 05:45:32 +0000 (GMT) Received: from [9.39.20.227] (unknown [9.39.20.227]) by smtpav04.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 1 Dec 2026 05:45:32 +0000 (GMT) Message-ID: <05057376-2f04-4643-b8f5-d33f6b273211@linux.ibm.com> Date: Tue, 1 Dec 2026 11:15:30 +0530 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC net v4 0/8] net/iucv: serialize the HiperSockets receive path with the socket lock From: Hidayath Khan To: hexlabsecurity@proton.me, Jakub Kicinski , Alexandra Winter , Paolo Abeni , "David S. Miller" , Eric Dumazet Cc: Thorsten Winkler , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nagamani PV , linux-s390@vger.kernel.org References: <20261114-b4-disp-fc0634a3-v4-0-f96c506447ce@proton.me> <38c4aaed-3cf6-43d7-a6b8-845f809a4ec6@linux.ibm.com> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Authority-Analysis: v=2.4 cv=KZZHIgYD c=1 sm=1 tr=0 ts=6b0e5f02 cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=IkcTkHD0fZMA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=RzCfie-kr_QcCd8fBx8p:22 a=A43KvyeItag3EoAhvnsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAxMDAyMiBTYWx0ZWRfX/+ZQUSpaH+ie yeNImx96Usvxi+QJoiucEhTisPdeYGk1Dg79NX2UVY56PRBeHsXxBk9K+QdEM3P+0aXo39ZOdd1 isXiLEBq+sAakXjdOJWpaKC+JHt+Jx9o2LUKTMiDS9R4CqN8Z3dyfKwpIXa0fZhNwwYk8higNFb UzCSF5Pj0l7yylUUbTSIlOOnuqiRHTDZA7xBGEr4IGgvpD5/Ds/faHqyAK6zKoB1lMj3py/v4KI V/Emy3FZ9EX5pu9kicPwrRo2VhEpbgZYhliD2cfJtlsVf0S7+vchG3Ib6/8OC4imEcloWzUy8cP eRys2gtKl6belDM/I1dw2x0/aoZcVdcOBA98VsYYJZNUn9Bcf91GUNgAHQss9+Y19iV9/Yu/g4R V7FAaEeiQGvwYxJ6zjR2/T44UfDSJxJwK+2xmXKgbmVYLlvPd7hzF0pxMn7S0vYMcvN0u/j+s4N nz4d77Npk3uHDCS62Lw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAxMDAyMiBTYWx0ZWRfX+xakqQ9zHJPH VMzrhAJDoGbFVcrP7a0kUKJwsw70+TlOHzopCxRkuPt+NoainiacjIJZc32BLp97LTPNl0RQ6iM qz5w85+rtvZMyPreie6L8fh6zDuqKwE= X-Proofpoint-ORIG-GUID: YY7UQzDuwct8qw9sROdtsDaFV2X8aXtZ X-Proofpoint-GUID: YY7UQzDuwct8qw9sROdtsDaFV2X8aXtZ 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-01_01,2026-11-30_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612010022 On 30/11/26 9:14 pm, Hidayath Khan wrote: > > On 30/11/26 2:04 pm, Hidayath Khan wrote: >> Hi Bryam, >> >> Here are the Stage 1 v4 patch series results from the z/VM machine. >> >> One z/VM guest with two HiperSockets, 7.4.0-rc4+, 4 CPUs, >> afiucv_test_locking_hs. >> Baselines in brackets are my v1 run on net-next. >> >>   sk_shutdown      0 misses / 97678 cycles     (565 / 7281) >>   shut_rd          0 misses / 148 cycles       (32 / 212) >>   recvrecv         0 backwards / 4.2M words    (3917 backwards) >>   rxclose          0 of 127 races              (51 / 906) >>   fin_wake         32086 EOF, 0 ENOTCONN       (ENOTCONN 13627 / 13627) >>   msglimit_bound   0 lost / 16470 cycles       (1 lost / 6297) >>   backlog          0 lost over 312602 windows  (guard) Correction to my table: The msglimit_bound bracket, 1 lost in 6297 cycles, is from v1 of the series, not from net-next. net-next has no budget so the scenario cannot fail there. The other 6 baselines are net-next. >> >> msglimit_bound also ran three times for 300 s: 41234, 41393 and 41226 >> cycles, >> no data lost in any of them. >> >> KASAN + PROVE_LOCKING + DEBUG_ATOMIC_SLEEP: no report from any >> scenario. That >> is the control I expected rather than a result, since stage 1's >> defects are >> missing locks and show up as lost data or a wrong errno, not as bad >> memory. >> >> KCSAN: no af_iucv report left that this series owns. In a v3 run I >> did not >> post I had 19 reports between afiucv_hs_dispatch and iucv_send_ctrl, >> and they >> are gone, so 2/8 does what it says on the z/VM machine too. >> >> Note: KCSAN has one af_iucv pair left, 22 reports: __iucv_sock_close >> against >> afiucv_hs_rcv on hs_dev, read from the NAPI receive path and written >> from >> close(). 1/2 of the two net fixes covers it, as your cover letter says. >> >> I went through the series as well. Two questions on 6/8, neither of >> which >> should change behaviour. >> >> In afiucv_hs_backlog_rcv(), on a data, SHT or WIN frame dev stays >> NULL and >> tracker is never set, and the netdev_put() at the end still runs. >> Harmless, >> since netdev_put() tests dev first, but should it be under if (dev) >> rather >> than passing the address of an uninitialised local? The rest of that >> function >> looks right to me, including copying dev and the tracker out before the >> dispatch consumes the skb. >> >> afiucv_hs_backlog_add() reads sk->sk_max_ack_backlog plainly in >> softirq, while >> iucv_sock_listen() writes it plainly under lock_sock(). >> sk_acceptq_is_full() >> uses READ_ONCE(), and v2 had a WRITE_ONCE() in listen() that v3 dropped. >> Should both be marked again? KCSAN did not report it here and a stale >> read >> costs one frame of budget, so this looks like annotation rather than >> a bug. >> >> On your question about 2/8, and on the stable tags and which tree the >> later >> patches belong in: Alexandra and I will come back to you on those >> together. > 2/8 stays a patch of its own. > > The series should go to stable as a unit. Could you say in each > changelog why > the patch is needed in stable ? Is 5/8 included as a prerequisite ? >> >> Thanks, >> Hidayath >