diff options
| author | 2024-03-11 15:51:59 +0100 | |
|---|---|---|
| committer | 2024-04-09 18:35:57 +0200 | |
| commit | 35264909e9d1973ab9aaa2a1b07cda70f12bb828 (patch) | |
| tree | 0b9c4378d590d4ba11cf3efb42d3f75676047b82 /rust/kernel/ssh:/git@git.zx2c4.com/git: | |
| parent | gfs2: Don't forget to complete delayed withdraw (diff) | |
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 'rust/kernel/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
