6.1.105-rc1 review
Subsystems (2)
Greg Kroah-Hartman
maintainerPATCH 132/150 selftests: mptcp: join: validate backup in MPJ
In reply to Greg Kroah-Hartman6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: "Matthieu Baerts (NGI0)" <[email protected]>
commit 935ff5bb8a1cfcdf8e60c8f5c794d0bbbc234437 upstream.
A peer can notify the other one that a subflow has to be treated as "backup" by two different ways: either by sending a dedicated MP_PRIO notification, or by setting the backup flag in the MP_JOIN handshake.
The selftests were previously monitoring the former, but not the latter. This is what is now done here by looking at these new MIB counters when validating the 'backup' cases:
MPTcpExtMPJoinSynBackupRx
MPTcpExtMPJoinSynAckBackupRx
The 'Fixes' tag here below is the same as the one from the previous
commit: this patch here is not fixing anything wrong in the selftests, but it will help to validate a new fix for an issue introduced by this commit ID.
[ Conflicts in mptcp_join.sh because the check are done has changed,
e.g. in commit 03668c65d153 ("selftests: mptcp: join: rework detailed report"), or commit 985de45923e2 ("selftests: mptcp: centralize stats dumping"), etc. Adaptations have been made to use the old way, similar to what is done just above. ]
--- tools/testing/selftests/net/mptcp/mptcp_join.sh | 46 ++++++++++++++++++------ 1 file changed, 36 insertions(+), 10 deletions(-)
tools/testing/selftests/net/mptcp/mptcp_join.sh +36 -10
@@ -1800,6 +1800,8 @@ chk_prio_nr() { local mp_prio_nr_tx=$1 local mp_prio_nr_rx=$2 + local mpj_syn=$3 + local mpj_syn_ack=$4 local count local dump_stats
@@ -1827,6 +1829,30 @@ chk_prio_nr() echo "[ ok ]" fi + printf "%-${nr_blank}s %s" " " "bkp syn" + count=$(get_counter ${ns1} "MPTcpExtMPJoinSynBackupRx") + if [ -z "$count" ]; then + echo -n "[skip]" + elif [ "$count" != "$mpj_syn" ]; then + echo "[fail] got $count JOIN[s] syn with Backup expected $mpj_syn" + fail_test + dump_stats=1 + else + echo -n "[ ok ]" + fi + + echo -n " - synack " + count=$(get_counter ${ns2} "MPTcpExtMPJoinSynAckBackupRx") + if [ -z "$count" ]; then + echo "[skip]" + elif [ "$count" != "$mpj_syn_ack" ]; then + echo "[fail] got $count JOIN[s] synack with Backup expected $mpj_syn_ack" + fail_test + dump_stats=1 + else + echo "[ ok ]" + fi + [ "${dump_stats}" = 1 ] && dump_stats }
@@ -2633,7 +2659,7 @@ backup_tests() pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow,backup run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow nobackup chk_join_nr 1 1 1 - chk_prio_nr 0 1 + chk_prio_nr 0 1 1 0 fi # single address, backup
@@ -2645,7 +2671,7 @@ backup_tests() run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup chk_join_nr 1 1 1 chk_add_nr 1 1 - chk_prio_nr 1 1 + chk_prio_nr 1 1 0 0 fi # single address with port, backup
@@ -2657,7 +2683,7 @@ backup_tests() run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup chk_join_nr 1 1 1 chk_add_nr 1 1 - chk_prio_nr 1 1 + chk_prio_nr 1 1 0 0 fi if reset "mpc backup" &&
@@ -2665,7 +2691,7 @@ backup_tests() pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow chk_join_nr 0 0 0 - chk_prio_nr 0 1 + chk_prio_nr 0 1 0 0 fi if reset "mpc backup both sides" &&
@@ -2674,7 +2700,7 @@ backup_tests() pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow,backup run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow chk_join_nr 0 0 0 - chk_prio_nr 1 1 + chk_prio_nr 1 1 0 0 fi if reset "mpc switch to backup" &&
@@ -2682,7 +2708,7 @@ backup_tests() pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup chk_join_nr 0 0 0 - chk_prio_nr 0 1 + chk_prio_nr 0 1 0 0 fi if reset "mpc switch to backup both sides" &&
@@ -2691,7 +2717,7 @@ backup_tests() pm_nl_add_endpoint $ns2 10.0.1.2 flags subflow run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup chk_join_nr 0 0 0 - chk_prio_nr 1 1 + chk_prio_nr 1 1 0 0 fi }
@@ -3022,7 +3048,7 @@ fullmesh_tests() pm_nl_set_limits $ns2 4 4 run_tests $ns1 $ns2 10.0.1.1 0 0 1 slow backup,fullmesh chk_join_nr 2 2 2 - chk_prio_nr 0 1 + chk_prio_nr 0 1 1 0 chk_rm_nr 0 1 fi
@@ -3034,7 +3060,7 @@ fullmesh_tests() pm_nl_add_endpoint $ns2 10.0.2.2 flags subflow,backup,fullmesh run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow nobackup,nofullmesh chk_join_nr 2 2 2 - chk_prio_nr 0 1 + chk_prio_nr 0 1 1 0 chk_rm_nr 0 1 fi }
@@ -3140,7 +3166,7 @@ userspace_tests() pm_nl_add_endpoint $ns2 10.0.3.2 flags subflow run_tests $ns1 $ns2 10.0.1.1 0 0 0 slow backup chk_join_nr 1 1 0 - chk_prio_nr 0 0 + chk_prio_nr 0 0 0 0 fi # userspace pm type prevents rm_addr
Greg Kroah-Hartman
maintainerPATCH 123/150 sched/smt: Fix unbalance sched_smt_present dec/inc
In reply to Greg Kroah-Hartman6.1-stable review patch. If anyone has any objections, please let me know.
------------------
From: Yang Yingliang <[email protected]>
commit e22f910a26cc2a3ac9c66b8e935ef2a7dd881117 upstream.
I got the following warn report while doing stress test:
jump label: negative count!
WARNING: CPU: 3 PID: 38 at kernel/jump_label.c:263 static_key_slow_try_dec+0x9d/0xb0 Call Trace: <TASK> __static_key_slow_dec_cpuslocked+0x16/0x70 sched_cpu_deactivate+0x26e/0x2a0 cpuhp_invoke_callback+0x3ad/0x10d0 cpuhp_thread_fun+0x3f5/0x680 smpboot_thread_fn+0x56d/0x8d0 kthread+0x309/0x400 ret_from_fork+0x41/0x70 ret_from_fork_asm+0x1b/0x30 </TASK>
Because when cpuset_cpu_inactive() fails in sched_cpu_deactivate(), the cpu offline failed, but sched_smt_present is decremented before calling sched_cpu_deactivate(), it leads to unbalanced dec/inc, so fix it by incrementing sched_smt_present in the error path.
--- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+)
kernel/sched/core.c +1 -0
@@ -9513,6 +9513,7 @@ int sched_cpu_deactivate(unsigned int cpsched_update_numa (cpu, false); ret =cpuset_cpu_inactive (cpu);if (ret) { +sched_smt_present_inc (cpu);balance_push_set (cpu, false);set_cpu_active (cpu, true);sched_update_numa (cpu, true);
Hello,
This rc kernel passed ChromeOS CQ tests:
https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/5782314/1?tab=checks
Thanks,
Hi!
Quoted 4 lines
This is the start of the stable review cycle for the 6.1.105 release. There are 150 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
CIP testing did not find any problems here:
https://gitlab.com/cip-project/cip-testing/linux-stable-rc-ci/-/tree/linux-6.1.y
Best regards,
Pavel
Signature · 2 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.1.105 release. There are 150 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 14 Aug 2024 16:00:26 +0000. Anything received after that time might be too late.
Building parisc64:C3700:smp:net=pcnet:initrd ... failed
------------
Error log:
In file included from /home/groeck/src/linux-stable/include/linux/fs.h:45,
from /home/groeck/src/linux-stable/include/linux/huge_mm.h:8, from /home/groeck/src/linux-stable/include/linux/mm.h:745,
from /home/groeck/src/linux-stable/include/linux/pid_namespace.h:7, from /home/groeck/src/linux-stable/include/linux/ptrace.h:10, from /home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:20:/home/groeck/src/linux-stable/include/linux/slab.h:228: warning: "ARCH_KMALLOC_MINALIGN" redefined
228 | #define ARCH_KMALLOC_MINALIGN ARCH_DMA_MINALIGN
In file included from /home/groeck/src/linux-stable/arch/parisc/include/asm/atomic.h:23,
from /home/groeck/src/linux-stable/include/linux/atomic.h:7,
from /home/groeck/src/linux-stable/include/linux/rcupdate.h:25,
from /home/groeck/src/linux-stable/include/linux/rculist.h:11,
from /home/groeck/src/linux-stable/include/linux/pid.h:5,
from /home/groeck/src/linux-stable/include/linux/sched.h:14,
from /home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:18:/home/groeck/src/linux-stable/arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #define ARCH_KMALLOC_MINALIGN 16 /* ldcw requires 16-byte alignment */
Guenter
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.1.105 release. There are 150 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Quoted 5 lines
Quoted 3 lines
Responses should be made by Wed, 14 Aug 2024 16:00:26 +0000. Anything received after that time might be too late.
Building parisc64:C3700:smp:net=pcnet:initrd ... failed
As Guenter reported,
Parisc builds failed.
* parisc, build
- gcc-11-allnoconfig
- gcc-11-defconfig
- gcc-11-tinyconfig
Quoted 11 lines
------------
Error log:
In file included from/home/groeck/src/linux-stable/include/linux/fs.h:45,
from/home/groeck/src/linux-stable/include/linux/huge_mm.h:8, from/home/groeck/src/linux-stable/include/linux/mm.h:745,
from/home/groeck/src/linux-stable/include/linux/pid_namespace.h:7, from/home/groeck/src/linux-stable/include/linux/ptrace.h:10, from/home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:20:/home/groeck/src/linux-stable/include/linux/slab.h:228: warning: "ARCH_KMALLOC_MINALIGN" redefined
228 | #defineARCH_KMALLOC_MINALIGNARCH_DMA_MINALIGN
Quoted 10 lines
In file included from
/home/groeck/src/linux-stable/arch/parisc/include/asm/atomic.h:23,
from/home/groeck/src/linux-stable/include/linux/atomic.h:7,
from/home/groeck/src/linux-stable/include/linux/rcupdate.h:25,
from/home/groeck/src/linux-stable/include/linux/rculist.h:11,
from/home/groeck/src/linux-stable/include/linux/pid.h:5,
from/home/groeck/src/linux-stable/include/linux/sched.h:14,
from/home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:18:/home/groeck/src/linux-stable/arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #defineARCH_KMALLOC_MINALIGN16 /* ldcw requires 16-byte alignment */
Thanks for the report.
Quoted 2 lines
Guenter
Greg Kroah-Hartman
maintainerQuoted 22 lines · Guenter Roeck
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 6.1.105 release. There are 150 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Wed, 14 Aug 2024 16:00:26 +0000. Anything received after that time might be too late.
Building parisc64:C3700:smp:net=pcnet:initrd ... failed
------------
Error log:
In file included from/home/groeck/src/linux-stable/include/linux/fs.h:45,
from/home/groeck/src/linux-stable/include/linux/huge_mm.h:8, from/home/groeck/src/linux-stable/include/linux/mm.h:745,
from/home/groeck/src/linux-stable/include/linux/pid_namespace.h:7, from/home/groeck/src/linux-stable/include/linux/ptrace.h:10, from/home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:20:/home/groeck/src/linux-stable/include/linux/slab.h:228: warning: "ARCH_KMALLOC_MINALIGN" redefined
228 | #defineARCH_KMALLOC_MINALIGNARCH_DMA_MINALIGN
Quoted 10 lines
In file included from
/home/groeck/src/linux-stable/arch/parisc/include/asm/atomic.h:23,
from/home/groeck/src/linux-stable/include/linux/atomic.h:7,
from/home/groeck/src/linux-stable/include/linux/rcupdate.h:25,
from/home/groeck/src/linux-stable/include/linux/rculist.h:11,
from/home/groeck/src/linux-stable/include/linux/pid.h:5,
from/home/groeck/src/linux-stable/include/linux/sched.h:14,
from/home/groeck/src/linux-stable/arch/parisc/kernel/asm-offsets.c:18:/home/groeck/src/linux-stable/arch/parisc/include/asm/cache.h:28: note: this is the location of the previous definition
28 | #defineARCH_KMALLOC_MINALIGN16 /* ldcw requires 16-byte alignment */
Thanks, I'll go drop the offending commit now.
greg k-h