aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2019-04-02 12:58:05 -0700
committerMartin K. Petersen <[email protected]>2019-04-12 20:20:05 -0400
commit63f7479439c95bcd49b7dd4af809862c316c71a3 (patch)
treec7c5509ade07fa7f5a6a01ff1bb7e40bfdeecb70 /tools/perf/scripts/python/syscall-counts-by-pid.py
parenta6a6d0589ac4ff3e1eb962f6c53e67d8f6386c18 (diff)
scsi: target/core: Fix a race condition in the LUN lookup code
The rcu_dereference(deve->se_lun) expression occurs twice in the LUN lookup functions. Since these expressions are not serialized against deve->se_lun assignments each of these expressions may yield a different result. Avoid that the wrong LUN pointer is stored in se_cmd by reading deve->se_lun only once. Cc: Mike Christie <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Nicholas Bellinger <[email protected]> Fixes: 29a05deebf6c ("target: Convert se_node_acl->device_list[] to RCU hlist") # v4.10 Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions