2 ms·
This is all fine and dandy, but UBSan and ASan are memory hogs that just won't fit in my single digit MB microcontroller. So the only way to run them is too us
by AstralStorm 4y ago
This is all fine and dandy, but UBSan and ASan are memory hogs that just won't fit in my single digit MB microcontroller.
So the only way to run them is too use an emulator, and that means I cannot sanitize drivers.
- wyldfire 4y agoYeah they are and that's too bad. HWASan is another option that reduces the overhead but would only work on a core that had MTE (which your microcontroller is not as likely to have).
- AstralStorm 4y agoActually it is an enhanced armv7 which might work. Though officially HWASan requires armv8. Besides that we have Zephyr stack and heap overflow detection, but it is not quite as accurate as ASan, and does not handle cases UBSan does.
- wyldfire 4y agogwp-asan (like electric fence) is another option for invalid access to heap-allocated buffers. Requires an MMU and creates additional TLB pressure w/some allocation overhead, but no instrumentation overhead and no access overhead.