Re: [Cluster-devel] [syzbot] KASAN: use-after-free Read in gfs2_glock_shrink_scan

2021-05-18 Thread Andreas Gruenbacher
Hi, On Tue, May 18, 2021 at 10:49 AM Hillf Danton wrote: > When put, glock is removed from lru by calling gfs2_glock_remove_from_lru() > in __gfs2_glock_put(), and check GLF_LRU under lru_lock. > > On the shrink scan path, GLF_LRU is cleared under lru_lock but because of >

[Cluster-devel] [gfs2 PATCH] gfs2: fix a deadlock on withdraw-during mount

2021-05-18 Thread Bob Peterson
Before this patch, gfs2 would deadlock because of the following sequence during mount: mount gfs2_fill_super gfs2_make_fs_rw <--- Detects IO error with glock kthread_stop(sdp->sd_quotad_process); <--- Blocked waiting for quotad to finish logd Detects IO error and

[Cluster-devel] [gfs2 patch] gfs2: fix scheduling while atomic bug in glocks

2021-05-18 Thread Bob Peterson
Before this patch, in the unlikely event that gfs2_glock_dq encountered a withdraw, it would do a wait_on_bit to wait for its journal to be recovered, but it never released the glock's spin_lock, which caused a scheduling-while-atomic error. This patch unlocks the lockref spin_lock before waiting

Re: [Cluster-devel] [syzbot] KASAN: use-after-free Read in gfs2_glock_shrink_scan

2021-05-18 Thread Hillf Danton
On Mon, 17 May 2021 23:13:16 -0700 >Hello, > >syzbot found the following issue on: > >HEAD commit:315d9931 Merge tag 'pm-5.13-rc2' of git://git.kernel.org/p.. >git tree: upstream >console output: https://syzkaller.appspot.com/x/log.txt?x=126d17b3d0 >kernel config:

[Cluster-devel] [syzbot] KASAN: use-after-free Read in gfs2_glock_shrink_scan

2021-05-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:315d9931 Merge tag 'pm-5.13-rc2' of git://git.kernel.org/p.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=126d17b3d0 kernel config: https://syzkaller.appspot.com/x/.config?x=4e950b1ffed48778