Skip to content

block: Introduce the 'zeroes-co' driver to help security reports

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: Introduce the 'zeroes-co' driverblock/meson.build block/zeroes.c+307 -00 replies
2/3tests/test-blockjob: Use zeroes-co instead of null-co, read-zeroes=ontests/test-blockjob.c+1 -30 replies
3/3docs/secure-coding-practices: Describe null-co/zeroes-co block driversdocs/devel/secure-coding-practices.rst+7 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] block: Introduce the 'zeroes-co' driver to help security reports

Hi,

This is an alternative approach to changing null-co driver default 'read-zeroes' option to true:
https://www.mail-archive.com/[email protected]/msg80873.html

Instead we introduce yet another block driver with an explicit
name: 'zeroes-co'. We then clarify in secure-coding-practices.rst that security reports have to be sent using this new driver.

The 2nd patch is RFC because I won't spend time converting the tests until the first patch is discussed, as I already spent enough time doing that in the previous mentioned series.

Regards,

Phil.

Philippe Mathieu-Daudé (3):
block: Introduce the 'zeroes-co' driver tests/test-blockjob: Use zeroes-co instead of null-co,read-zeroes=on docs/secure-coding-practices: Describe null-co/zeroes-co block drivers

 docs/devel/secure-coding-practices.rst |   7 +
 block/zeroes.c                         | 306 +++++++++++++++++++++++++
 tests/test-blockjob.c                  |   4 +-
 block/meson.build                      |   1 +
 4 files changed, 315 insertions(+), 3 deletions(-)
 create mode 100644 block/zeroes.c
Signature · 1 line
2.26.2