Memory Error Detect Enhancement for DPDK Fuzzing
summary
Integrates AddressSanitizer with DPDK by extending RTE_MALLOC_DEBUG and building a libdpdk_asan shim so ASan sets redzones and shadow memory for DPDK allocations; compiles with -Dbuildtype=debug and -Db_sanitize=address. Hooks DPDK into LibFuzzer via LLVMFuzzerTestOneInput, feeds PCAP-derived seeds, and fuzzes vhost/virtio, ip_frag and hash libs. Builds and runs daily fuzzers that reliably surface heap-buffer-overflow and use-after-free issues; payoff includes clear diagnostics but incurs ~27% runtime loss and 3–4x memory overhead.
AI-written summary · about
chapters (15)
- 0:00Introduction to memory error detection
- 1:04Background on memory errors
- 3:17Address Sanitizer basics
- 8:52Runtime library implementation
- 10:23ASan limitations with DPDK
- 11:37Enabling ASan in DPDK
- 13:08Hello-world demo with ASan
- 15:20DPDK fuzzing introduction
- 16:50Fuzzing process and tools
- 19:27LibFuzzer deployment steps
- 20:35Running fuzzing example
- 22:01Summary and future plans
- 23:10Q&A on seed generation
- 24:13Q&A on code coverage
- 25:30Q&A on performance impact
