Files
linux/fs
Julian Sun 6cb9df81a2 gfs2: fix double destroy_workqueue error
When gfs2_fill_super() fails, destroy_workqueue() is called within
gfs2_gl_hash_clear(), and the subsequent code path calls
destroy_workqueue() on the same work queue again.

This issue can be fixed by setting the work queue pointer to NULL after
the first destroy_workqueue() call and checking for a NULL pointer
before attempting to destroy the work queue again.

Reported-by: syzbot+d34c2a269ed512c531b0@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=d34c2a269ed512c531b0
Fixes: 30e388d573 ("gfs2: Switch to a per-filesystem glock workqueue")
Cc: stable@vger.kernel.org
Signed-off-by: Julian Sun <sunjunchao2870@gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2024-08-20 16:27:22 +02:00
..
2024-07-02 21:23:00 +02:00
2024-05-28 11:52:53 +02:00
2024-05-28 11:52:49 +02:00
2024-04-23 13:27:43 +02:00
2024-05-28 11:52:45 +02:00
2024-04-23 15:37:02 +02:00
2024-06-20 15:19:17 -06:00
2024-06-25 11:15:48 +02:00
2024-05-02 20:35:57 +02:00
2024-04-25 20:56:20 -07:00
2024-05-10 08:26:31 +02:00
2024-06-20 15:19:17 -06:00
2024-05-02 16:28:20 +02:00
2024-05-24 13:34:07 +02:00
2024-04-10 16:23:02 -06:00