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
>