Closed Bug 1526258 Opened 5 years ago Closed 5 years ago

Implement a fuzzing layer for socket emulation

Categories

(Core :: Networking, enhancement, P2)

x86_64
Linux
enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: decoder, Assigned: decoder)

References

Details

(Keywords: sec-other, sec-want, Whiteboard: [necko-triaged][adv-main68-])

Attachments

(2 files, 2 obsolete files)

This bug is about implementing a fuzzing layer in NSPR that can emulate socket behavior without actually using a socket or performing network operations. Having that should make it easier to target various network protocols with our fuzzing interface (e.g. using libFuzzer).

Moving over to Networking, because the implementation takes place in netwerk/ entirely according to the latest patch.

Component: NSPR → Networking
Product: NSPR → Core
QA Contact: jjones
Version: other → Trunk
Attached patch necko-fuzzing-v2.patch (obsolete) — Splinter Review

Dragana, attached is a patch based on Kershaw's patch with the things added you mentioned in the mail thread and modifications to attach it to the fuzzing interface.

This builds fine, however, there is one major problem left: For fuzzing, we need all the "action" to happen within FuzzingRunNetworkHttp (see also the comment at the end of that function). Right now, the request is async and runs in the background even after the function is done. We need this to be sync somehow. Is it possible to do that and how? Thanks!

Attachment #9042456 - Flags: feedback?(dd.mozilla)
Attached patch necko-fuzzing-v3.patch (obsolete) — Splinter Review

Updated patch, work in progress.

Attachment #9042456 - Attachment is obsolete: true
Attachment #9042456 - Flags: feedback?(dd.mozilla)

Forgot to add a moz.build file

Attachment #9043200 - Attachment is obsolete: true
Blocks: fuzzing-http
Group: core-security-release
Priority: -- → P2
Whiteboard: [necko-triaged]
Pushed by choller@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2e755d84d657
Implement fuzzing layer in networking for socket emulation. r=dragana
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Blocks: fuzzing-ftp
Whiteboard: [necko-triaged] → [necko-triaged][adv-main68-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: