syz.2.1569: attempt to access beyond end of device loop2: rw=2049, sector=45096, nr_sectors = 8 limit=40427 ================================================ WARNING: lock held when returning to user space! 6.11.0-rc3-next-20240813-syzkaller #0 Not tainted ------------------------------------------------ syz.2.1569/11047 is leaving the kernel with locks still held! 1 lock held by syz.2.1569/11047: #0: ffff88805e31c498 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2196 [inline] #0: ffff88805e31c498 (&fi->i_gc_rwsem[WRITE]){+.+.}-{3:3}, at: f2fs_commit_atomic_write+0x105/0x1510 fs/f2fs/segment.c:388 syz.2.1569: attempt to access beyond end of device loop2: rw=2051, sector=45096, nr_sectors = 8 limit=40427 F2FS-fs (loop2): Issue discard(5637, 5637, 1) failed, ret: -5