summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-03-11 17:51:59 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2024-04-09 19:35:57 +0300
commit35264909e9d1973ab9aaa2a1b07cda70f12bb828 (patch)
tree0b9c4378d590d4ba11cf3efb42d3f75676047b82 /tools/perf/scripts/python/export-to-postgresql.py
parentb01189333ee91c1ae6cd96dfd1e3a3c2e69202f0 (diff)
downloadlinux-35264909e9d1973ab9aaa2a1b07cda70f12bb828.tar.xz
gfs2: Fix NULL pointer dereference in gfs2_log_flush
In gfs2_jindex_free(), set sdp->sd_jdesc to NULL under the log flush lock to provide exclusion against gfs2_log_flush(). In gfs2_log_flush(), check if sdp->sd_jdesc is non-NULL before dereferencing it. Otherwise, we could run into a NULL pointer dereference when outstanding glock work races with an unmount (glock_work_func -> run_queue -> do_xmote -> inode_go_sync -> gfs2_log_flush). Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions