aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util
diff options
context:
space:
mode:
authorPan Bian <[email protected]>2018-11-25 08:58:02 +0800
committerJan Kara <[email protected]>2018-11-27 10:21:15 +0100
commitecebf55d27a11538ea84aee0be643dd953f830d5 (patch)
tree5f017acb4a15f183e2c0bbb28ffe4487824c6493 /tools/perf/util
parente5f5b717983bccfa033282e9886811635602510e (diff)
ext2: fix potential use after free
The function ext2_xattr_set calls brelse(bh) to drop the reference count of bh. After that, bh may be freed. However, following brelse(bh), it reads bh->b_data via macro HDR(bh). This may result in a use-after-free bug. This patch moves brelse(bh) after reading field. CC: [email protected] Signed-off-by: Pan Bian <[email protected]> Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/util')
0 files changed, 0 insertions, 0 deletions