[Bug 281402] zfs: kmsan reports Uninitialized UMA memory from zio_data_buf_alloc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Jan 2025 20:04:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281402 --- Comment #6 from Mark Johnston <markj@FreeBSD.org> --- (In reply to Alan Somers from comment #5) Oh, yes, that's quite possible if the accelerated routines are implemented in assembly or use intrinsics, or there's some bug in the build which causes some file(s) to be compiled without -fsanitize=kernel-memory. I believe LLVM has some ability to instrument inline asm blocks based on the input and output operand descriptions, not sure if that's relevant here. It should be possible to use kmsan_mark(buf, sz, KMSAN_STATE_INITED) to manually mark a region as initialized. You might also want to use kmsan_check() to ensure that the inputs are initialized. I presume that Linux's KMSAN has similar interfaces, but I'm not sure what those are. -- You are receiving this mail because: You are the assignee for the bug.