aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael S. Tsirkin <[email protected]>2014-02-13 11:45:11 +0200
committerDavid S. Miller <[email protected]>2014-02-13 18:47:30 -0500
commitb0c057ca7e835b36c6050c7627634b664796c1d6 (patch)
tree328353448d8946ef639ed9c0d5be239e38058859 /tools/perf/scripts/python
parent0ad8b480d6ee916aa84324f69acf690142aecd0e (diff)
vhost: fix a theoretical race in device cleanup
vhost_zerocopy_callback accesses VQ right after it drops a ubuf reference. In theory, this could race with device removal which waits on the ubuf kref, and crash on use after free. Do all accesses within rcu read side critical section, and synchronize on release. Since callbacks are always invoked from bh, synchronize_rcu_bh seems enough and will help release complete a bit faster. Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions