# Re: \[PATCH 00/43\] Add KernelMemorySanitizer infrastructure

- From: Greg Kroah-Hartman \<gregkh@linuxfoundation.org\>
- Date: 2021-12-14 16:36:51 
- List: linux-arch
- Page: https://ratatoskr.run/linux-arch/2021/12/1608390
- Thread: https://ratatoskr.run/linux-mm/2021/12/1608321/t.md

```text
On Tue, Dec 14, 2021 at 05:20:07PM +0100, Alexander Potapenko wrote:
> KernelMemorySanitizer (KMSAN) is a detector of errors related to uses of
> uninitialized memory. It relies on compile-time Clang instrumentation
> (similar to MSan in the userspace [1]) and tracks the state of every bit
> of kernel memory, being able to report an error if uninitialized value is
> used in a condition, dereferenced, or escapes to userspace, USB or DMA.

Why is USB unique here?  What about serial data?  i2c?  spi?  w1?  We
have a lot of different I/O bus types :)

And how is DMA checked given that the kernel shouldn't be seeing dma
memory?

thanks,

greg k-h
```
