-
Notifications
You must be signed in to change notification settings - Fork 845
In ja3_fingerprint plugin, protect against premature VConn closure. #8854
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
Conversation
|
This is going into Yahoo Prod first. Will undraft this after it soaks in prod for a while. |
Cherry-pick Conflicts: plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc
75a4b3a to
5b95218
Compare
|
This has soaked in Yahoo Prod for a couple of weeks, no issues. It potentially eliminates some crashes, but I'm not 100% it does. |
|
This is a stack dump for a type of crash that we were seeing in Yahoo prod, that I hope this change fixes: |
cmcfarlen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
| TSDebug(PLUGIN_NAME, "req_hdr_ja3_handler(): ja3 data not set. Not SSL vconn. Abort."); | ||
| } | ||
| TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc); | ||
| } // This block is needed to make sure 'a' is destroyed before reeenable is called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can go without the block if you declare a in the if:
if (auto a = ja3_data::access(vconn); a.get()) {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK changed.
|
This pull request has been automatically marked as stale because it has not had recent activity. Marking it stale to flag it for further consideration by the community. |
Cherry-pick Conflicts:
plugins/experimental/ja3_fingerprint/ja3_fingerprint.cc