Netdev List
 help / color / mirror / Atom feed
From: Hidayath Khan <hidayath@linux.ibm.com>
To: hexlabsecurity@proton.me, Jakub Kicinski <kuba@kernel.org>,
	Alexandra Winter <wintera@linux.ibm.com>,
	Paolo Abeni <pabeni@redhat.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>
Cc: Thorsten Winkler <twinkler@linux.ibm.com>,
	Simon Horman <horms@kernel.org>,
	netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	Nagamani PV <nagamani@linux.ibm.com>,
	linux-s390@vger.kernel.org
Subject: Re: [PATCH RFC net v4 0/8] net/iucv: serialize the HiperSockets receive path with the socket lock
Date: Mon, 30 Nov 2026 21:14:57 +0530	[thread overview]
Message-ID: <da6ea2bb-7226-4b4c-81a4-88ffc3a98f91@linux.ibm.com> (raw)
In-Reply-To: <38c4aaed-3cf6-43d7-a6b8-845f809a4ec6@linux.ibm.com>


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)
>
> 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

      reply	other threads:[~2026-11-30 15:45 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-15  1:29 [PATCH RFC net v4 0/8] net/iucv: serialize the HiperSockets receive path with the socket lock Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 1/8] net/iucv: keep the window given to the peer in a field of its own Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 2/8] net/iucv: do not clear SEND_SHUTDOWN to send a control frame Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 3/8] net/iucv: fail sendmsg() with EPIPE once sending is shut down Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 4/8] net/iucv: run recvmsg() under the socket lock Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 5/8] net/iucv: factor out the HiperSockets frame dispatch and state changes Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 6/8] net/iucv: serialize HiperSockets receive with the socket lock Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 7/8] net/iucv: set RCV_SHUTDOWN under the socket spinlock Bryam Vargas via B4 Relay
2026-11-15  1:29 ` [PATCH RFC net v4 8/8] net/iucv: return EOF to a reader parked when the peer closes Bryam Vargas via B4 Relay
2026-11-30  8:34 ` [PATCH RFC net v4 0/8] net/iucv: serialize the HiperSockets receive path with the socket lock Hidayath Khan
2026-11-30 15:44   ` Hidayath Khan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da6ea2bb-7226-4b4c-81a4-88ffc3a98f91@linux.ibm.com \
    --to=hidayath@linux.ibm.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=hexlabsecurity@proton.me \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=nagamani@linux.ibm.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=twinkler@linux.ibm.com \
    --cc=wintera@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox