]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geom_disk: Add KMSAN checks
authorMark Johnston <markj@FreeBSD.org>
Wed, 11 Aug 2021 20:22:26 +0000 (16:22 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 11 Aug 2021 20:33:41 +0000 (16:33 -0400)
commit645b7efd496d649211056be0e2d3525ef21dc53d
treedbeecf26005dcd2d6a2a8c2b9b0287117c3414e8
parent10a8e93da15889d40497bb666c2d753f38ac7b7f
geom_disk: Add KMSAN checks

- In g_disk_start(), verify that the data to be written is initialized
  according to KMSAN shadow state.
- In g_disk_done(), verify that the block driver updated shadow state as
  expected, so as to catch sources of false positives early.

Sponsored by: The FreeBSD Foundation
sys/geom/geom_disk.c