summary refs log tree commit diff stats
path: root/docs/devel/secure-coding-practices.rst
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2023-09-11 11:46:20 +0200
committerKevin Wolf <kwolf@redhat.com>2023-09-20 17:46:01 +0200
commit9def6082cf885fbb2e8e719d5055109c8a04b885 (patch)
tree33f5abf2dbe6ab2397bb613452f42ec9bf60616a /docs/devel/secure-coding-practices.rst
parent32a8aba37eaae54d3a0a7ae5e93e3e157525660a (diff)
downloadfocaccia-qemu-9def6082cf885fbb2e8e719d5055109c8a04b885.tar.gz
focaccia-qemu-9def6082cf885fbb2e8e719d5055109c8a04b885.zip
block: Mark bdrv_add/del_child() and caller GRAPH_WRLOCK
The functions read the parents list in the generic block layer, so we
need to hold the graph lock already there. The BlockDriver
implementations actually modify the graph, so it has to be a writer
lock.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230911094620.45040-22-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'docs/devel/secure-coding-practices.rst')
0 files changed, 0 insertions, 0 deletions