-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
server: fix SIGSEGV caused by port probing with audit plugin #16038
Conversation
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #16038 +/- ##
================================================
- Coverage 80.5421% 80.4725% -0.0696%
================================================
Files 507 506 -1
Lines 136613 135343 -1270
================================================
- Hits 110031 108914 -1117
+ Misses 18062 17918 -144
+ Partials 8520 8511 -9 |
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
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
/merge |
1 similar comment
/merge |
/run-all-tests |
cherry pick to release-3.0 in PR #16064 |
cherry pick to release-3.1 in PR #16065 |
…#17291) Co-authored-by: lysu <[email protected]>
…#16038) (pingcap#17291) Co-authored-by: lysu <[email protected]>
server: fix SIGSEGV caused by port probing with audit plugin (pingcap#16038)…(pingcap#17291)
What problem does this PR solve?
Issue Number: close #16037
Problem Summary:
port probing will establish tcp connection, then exit without send any auth packet, so conn's session ctx should be nil and this cause crash in audit plugin code path.
What is changed and how it works?
What's Changed:
ensure session ctx is not nil before do reject audit.
How it Works:
check nil
Related changes
Check List
Tests
Side effects
Release note
This change is