[SERVER-50761] Create a passthrough suite for fuzzing with BSON validation enabled in shell Created: 19/Aug/20  Updated: 29/Oct/23  Resolved: 04/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Spencer Jackson Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: execution_intern, newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-77810 UnknownError from watching Change Str... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-06-14, Execution Team 2021-06-28, Execution Team 2021-07-12, Execution Team 2021-07-26, Execution Team 2021-08-09
Participants:

 Description   

It would be very useful to run the aggregation and jstestfuzz fuzzers with the --objcheck flag enabled in the shell. This might need to be performed in a separate infrequently run build variant, because of the overhead of BSON validation. This would allow us to detect when server code attempts to serialize improperly formatted BSON to clients.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 04/Aug/21 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-50761 Crash the shell on invalid BSON errors on server responses from outgoing connections in
all of the jstestfuzz test suites.

Combine a new shell parameter --crashOnInvalidBSONError with --objcheck in the shell for all
jstestfuzz test suites. --objcheck in the shell turns on BSON validation on responses from outgoing
connections to the server. --crashOnInvalidBSONError crashes the shell if that extra BSON validation
encounters an error, and attempts to log the invalid BSON for debugging.
Branch: master
https://github.com/mongodb/mongo/commit/1746aef0112ada4c01fc3c17d482e68eed1ae3ee

Comment by Connie Chen [ 09/Oct/20 ]

Rather than create a new suite, investigate existing suites to turn on objCheck in the shell because the performance impact should be minimal.

Comment by Brooke Miller [ 24/Aug/20 ]

Reviewed this ticket with robert.guo and we're sending this to Query to decide if they'd like to add the new fuzzer.

Generated at Thu Feb 08 05:23:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.