Skip to contentSkip to conversation

BUG? flaky "migrate_reuseport/IPv4 TCP_NEW_SYN_RECV reqsk_timer_handler" test

DISCUSSION Martin KaFai Lau 3 participants 3 messages Mar 22, 2024

Subsystems (3)
lore
Share & tools
lore

Martin KaFai Lau

author reviewer
#0 lore raw

Hi Kuniyuki,

The bpf CI has recently hit failure in the "migrate_reuseport/IPv4 TCP_NEW_SYN_RECV" test. It does not always fail but becomes more flaky recently:
https://github.com/kernel-patches/bpf/actions/runs/8354884067/job/22869153115

It could be due to some slowness in the bpf CI environment but failing because of environment slowness is still not expected.

I took a very quick look. It seems like the test depends on the firing of the timer's handler "reqsk_timer_handler()", so there is a sleep(1) in the test. May be the timer fired slower and the test failed? If that is the case, it may help to directly trace the reqsk_timer_handler() and wait for enough time to ensure it is called.

This test has been temporarily disabled for now (https://github.com/kernel-patches/vmtest/blob/master/ci/vmtest/configs/DENYLIST). Once you have a fix, we can re-enable it again to ensure this migrate feature will not regress.

Thanks,
Martin

maintainer
#1 lore raw
Quoted 3 lines · On Thu, 21 Mar 2024 18:39:53 -0700 Martin KaFai Lau wrote:

The bpf CI has recently hit failure in the "migrate_reuseport/IPv4 TCP_NEW_SYN_RECV" test. It does not always fail but becomes more flaky recently:
https://github.com/kernel-patches/bpf/actions/runs/8354884067/job/22869153115

FWIW we had a handful of IPv6 and TCP tests start failing after we merged first half of the merge window from Linus as well. Maybe something in the scheduler changed and exposed timing problems in the tests :(

#2 lore raw
In reply to Martin KaFai Lau

Hi Martin,

Thanks for the report.

From: Martin KaFai Lau <[email protected]>
Date: Thu, 21 Mar 2024 18:39:53 -0700

Quoted 11 lines

Hi Kuniyuki,

The bpf CI has recently hit failure in the "migrate_reuseport/IPv4 TCP_NEW_SYN_RECV" test. It does not always fail but becomes more flaky recently:
https://github.com/kernel-patches/bpf/actions/runs/8354884067/job/22869153115

It could be due to some slowness in the bpf CI environment but failing because of environment slowness is still not expected.

I took a very quick look. It seems like the test depends on the firing of the timer's handler "reqsk_timer_handler()", so there is a sleep(1) in the test.

Yes, it depends on the timing of the reqsk tiemr.

Quoted 3 lines

May be the timer fired slower and the test failed? If that is the case, it may help to directly trace the reqsk_timer_handler() and wait for enough time to ensure it is called.

Sounds good. I'll give it a try.

Thanks!

Quoted 8 lines

This test has been temporarily disabled for now
(https://github.com/kernel-patches/vmtest/blob/master/ci/vmtest/configs/DENYLIST).
Once you have a fix, we can re-enable it again to ensure this migrate feature will not regress.

Thanks,
Martin