Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spinquic to use operation priority #4351

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

ami-GS
Copy link
Contributor

@ami-GS ami-GS commented Jun 14, 2024

Description

Spinquic to use StreamSend, StreamStart and Get/SetParm op priorities.

Testing

See automation

Documentation

N/A

@ami-GS ami-GS requested a review from a team as a code owner June 14, 2024 20:56
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.97%. Comparing base (b01cef9) to head (9eede15).
Report is 50 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4351      +/-   ##
==========================================
- Coverage   86.01%   84.97%   -1.04%     
==========================================
  Files          56       56              
  Lines       15521    15525       +4     
==========================================
- Hits        13351    13193     -158     
- Misses       2170     2332     +162     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ami-GS
Copy link
Contributor Author

ami-GS commented Jun 14, 2024

What! CIFuzz passes!!

@@ -1067,6 +1067,10 @@ QuicConnRelease(
QuicConnValidate(Connection);

#if DEBUG
if (Connection->RefTypeCount[Ref] <= 0) {
fprintf(stderr, "RefTypeCount[%d] is %d\n", Ref, Connection->RefTypeCount[Ref]);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RefTypeCount[6] is -22829

RefTypeCount is short type (from -32,768 to 32,767). So not just off-by-one issue

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSS-Fuzz issue dashboard has been listing same issue and the cause seems to be from other PR?

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68176&q=msquic
https://oss-fuzz.com/testcase-detail/4533150459756544
d65bb1a...102a491

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nibanks
Reverting #3931 solves CIFuzz issue which has also been reported from OSS-Fuzz before integrating priority feature.
The reason only CIFuzz and OSS-Fuzz find should be due to its random algorithm based on genetic algorithm.
Do you have some idea the change has potential timing issues?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My guess is that the combination of the that change and priority exposes some bug, most likely in spinquic, for object lifetime. But I have no idea specifically what could be causing it.

@ami-GS ami-GS force-pushed the dev/daiki/spinquic_op_priority branch 2 times, most recently from 6bff42e to 1964ff9 Compare July 29, 2024 16:12
@nibanks
Copy link
Member

nibanks commented Sep 9, 2024

@ami-GS do we still need this PR?

@ami-GS
Copy link
Contributor Author

ami-GS commented Sep 9, 2024

This needs to be merged. Current spinquic doesn't fully utilize priority operation feature

@nibanks
Copy link
Member

nibanks commented Sep 9, 2024

Can you please merge main into this so we can get the CI to run again?

@nibanks nibanks added Area: Testing Related to test coverage Area: Stress Related to stress testing with spinquic labels Sep 9, 2024
@@ -796,6 +796,8 @@ MsQuicStreamStart(
QUIC_STATUS Status;
QUIC_STREAM* Stream;
QUIC_CONNECTION* Connection;
BOOLEAN IsPriority = !!(Flags & QUIC_STREAM_START_FLAG_PRIORITY_WORK);
Flags &= ~QUIC_STREAM_START_FLAG_PRIORITY_WORK;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are all these changes necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this is written for other api (StreamSend, SetParam etc.), so I added. Originally to check whether this fix stall issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Stress Related to stress testing with spinquic Area: Testing Related to test coverage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants