[SERVER-63843] Don't allow recursive doLog in synchronous signal handlers Created: 18/Feb/22 Updated: 29/Oct/23 Resolved: 16/Aug/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 5.2.1 |
| Fix Version/s: | 5.0.12, 6.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sergey Galtsev (Inactive) | Assignee: | Gabriel Marks |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Backport Requested: |
v6.0, v5.0
|
||||||||||||||||||||||||
| Sprint: | Security 2022-05-02, Security 2022-05-16, Security 2022-05-30, Security 2022-06-13 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||
| Description |
|
Under some circumstances the logging could be invoked recursively. This could for example happen when a signal happens inside logger itself. This could cause infinite loop or a deadlock This ticket is to implement a simple check in logger for recursive invocation. If that happens, the log message must be echoed to stderr and not logged normally. |
| Comments |
| Comment by Githook User [ 17/Aug/22 ] |
|
Author: {'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}Message: |
| Comment by Githook User [ 16/Aug/22 ] |
|
Author: {'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}Message: Revert " This reverts commit 2838764142c2341a8246e6039472eb9a1cdb9b7d. |
| Comment by Githook User [ 16/Aug/22 ] |
|
Author: {'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}Message: Revert " This reverts commit 855936558e1f1ab11d2c716421af95bf3dee2672. |
| Comment by Githook User [ 16/Aug/22 ] |
|
Author: {'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}Message: |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Gabriel Marks', 'email': 'gabriel.marks@mongodb.com', 'username': 'marksg07'}Message: |