loop0: detected capacity change from 0 to 32768 gfs2: fsid=syz:syz: Trying to join cluster "lock_nolock", "syz:syz" gfs2: fsid=syz:syz: Now mounting FS (format 1801)... gfs2: fsid=syz:syz.0: journal 0 mapped with 9 extents in 0ms gfs2: fsid=syz:syz.0: first mount done, others may mount gfs2: fsid=syz:syz.0: found 1 quota changes syz.0.0: attempt to access beyond end of device loop0: rw=2057, sector=68719479088, nr_sectors = 248 limit=32768 gfs2: fsid=syz:syz.0: Failed to zero data buffers syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719479592, nr_sectors = 2592 limit=32768 loop0: writeback error on inode 8589934885, offset 36864, sector 68719479592 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719482184, nr_sectors = 1200 limit=32768 loop0: writeback error on inode 8589934885, offset 1363968, sector 68719482184 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719483392, nr_sectors = 208 limit=32768 loop0: writeback error on inode 8589934885, offset 1978368, sector 68719483392 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719483608, nr_sectors = 2272 limit=32768 loop0: writeback error on inode 8589934885, offset 2084864, sector 68719483608 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719485880, nr_sectors = 1800 limit=32768 loop0: writeback error on inode 8589934885, offset 3248128, sector 68719485880 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719487688, nr_sectors = 2048 limit=32768 loop0: writeback error on inode 8589934885, offset 4169728, sector 68719487688 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719489736, nr_sectors = 2024 limit=32768 loop0: writeback error on inode 8589934885, offset 5218304, sector 68719489736 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=68719491768, nr_sectors = 768 limit=32768 loop0: writeback error on inode 8589934885, offset 6254592, sector 68719491768 gfs2: fsid=syz:syz.0: fatal: I/O error - block = 8589934885, function = gfs2_pin, file = fs/gfs2/lops.c, line = 52 gfs2: fsid=syz:syz.0: about to withdraw this file system BUG: sleeping function called from invalid context at fs/gfs2/util.c:159 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5332, name: syz.0.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 6 locks held by syz.0.0/5332: #0: ffff88803e84e420 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3111 [inline] #0: ffff88803e84e420 (sb_writers#12){.+.+}-{0:0}, at: vfs_write+0x211/0xb30 fs/read_write.c:682 #1: ffff88805b3bc148 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline] #1: ffff88805b3bc148 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: gfs2_file_write_iter+0x323/0x1100 fs/gfs2/file.c:1117 #2: ffff88803e84e610 (sb_internal#2){.+.+}-{0:0}, at: gfs2_trans_begin+0x6f/0xe0 fs/gfs2/trans.c:118 #3: ffff888043060e50 (&sdp->sd_log_flush_lock){++++}-{4:4}, at: __gfs2_trans_begin+0x515/0x890 fs/gfs2/trans.c:87 #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: gfs2_trans_add_meta+0x156/0xa10 fs/gfs2/trans.c:265 #5: ffff888043060fe8 (&sdp->sd_freeze_mutex){+.+.}-{4:4}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline] #5: ffff888043060fe8 (&sdp->sd_freeze_mutex){+.+.}-{4:4}, at: gfs2_withdraw+0x444/0x1430 fs/gfs2/util.c:333 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x495/0x610 kernel/sched/core.c:8927 signal_our_withdraw fs/gfs2/util.c:157 [inline] gfs2_withdraw+0x492/0x1430 fs/gfs2/util.c:333 gfs2_pin+0x129/0x380 fs/gfs2/lops.c:52 gfs2_trans_add_meta+0x693/0xa10 fs/gfs2/trans.c:302 __gfs2_iomap_alloc+0x263/0x1a30 fs/gfs2/bmap.c:680 gfs2_iomap_begin_write fs/gfs2/bmap.c:1070 [inline] gfs2_iomap_begin+0xaf0/0x11c0 fs/gfs2/bmap.c:1133 iomap_iter+0x534/0xde0 fs/iomap/iter.c:108 iomap_file_buffered_write+0x207/0x9b0 fs/iomap/buffered-io.c:1070 gfs2_file_buffered_write+0x4ed/0x880 fs/gfs2/file.c:1061 gfs2_file_write_iter+0x94e/0x1100 fs/gfs2/file.c:1166 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5c9/0xb30 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x193/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcc9f38f6c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcca01d6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fcc9f5e5fa0 RCX: 00007fcc9f38f6c9 RDX: 00000000200000c1 RSI: 00002000000000c0 RDI: 0000000000000008 RBP: 00007fcc9f411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000009000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fcc9f5e6038 R14: 00007fcc9f5e5fa0 R15: 00007ffe50181ec8 BUG: scheduling while atomic: syz.0.0/5332/0x00000002 6 locks held by syz.0.0/5332: #0: ffff88803e84e420 (sb_writers#12){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3111 [inline] #0: ffff88803e84e420 (sb_writers#12){.+.+}-{0:0}, at: vfs_write+0x211/0xb30 fs/read_write.c:682 #1: ffff88805b3bc148 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: inode_lock include/linux/fs.h:980 [inline] #1: ffff88805b3bc148 (&sb->s_type->i_mutex_key#20){+.+.}-{4:4}, at: gfs2_file_write_iter+0x323/0x1100 fs/gfs2/file.c:1117 #2: ffff88803e84e610 (sb_internal#2){.+.+}-{0:0}, at: gfs2_trans_begin+0x6f/0xe0 fs/gfs2/trans.c:118 #3: ffff888043060e50 (&sdp->sd_log_flush_lock){++++}-{4:4}, at: __gfs2_trans_begin+0x515/0x890 fs/gfs2/trans.c:87 #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: gfs2_log_lock fs/gfs2/log.h:32 [inline] #4: ffff888043060c78 (&sdp->sd_log_lock){+.+.}-{3:3}, at: gfs2_trans_add_meta+0x156/0xa10 fs/gfs2/trans.c:265 #5: ffff888043060fe8 (&sdp->sd_freeze_mutex){+.+.}-{4:4}, at: signal_our_withdraw fs/gfs2/util.c:152 [inline] #5: ffff888043060fe8 (&sdp->sd_freeze_mutex){+.+.}-{4:4}, at: gfs2_withdraw+0x444/0x1430 fs/gfs2/util.c:333 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0