UniSan is a compiler-based approach that uses static program analysis to identify unsafe kernel memory allocations that have potential to leak sensitive data. It instruments the code to initialize only the unsafe allocations with memset to zero. The evaluation found it effectively prevented 43 recent Linux kernel uninitialized data leaks while having low overhead for both system operations and user space programs. Future work could focus on custom heap allocators, analyzing more kernel modules, and applying the technique beyond kernels.