syzbot


BUG: sleeping function called from invalid context in gfs2_flush_delete_work

Status: auto-obsoleted due to no activity on 2024/02/06 11:07
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+f695093038cdf1175371@syzkaller.appspotmail.com
First crash: 181d, last: 177d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [gfs2?] BUG: sleeping function called from invalid context in gfs2_flush_delete_work 0 (1) 2023/09/05 15:10
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/02/06 10:44 22m retest repro upstream OK log
2023/11/28 10:03 13m retest repro upstream report log
2023/09/19 09:37 13m retest repro upstream report log

Sample crash report:
loop0: rw=1, sector=3280942697285464, nr_sectors = 8 limit=32768
gfs2: fsid=syz:syz.0: Error 10 writing to journal, jid=0
gfs2: fsid=syz:syz.0: fatal: I/O error(s)
gfs2: fsid=syz:syz.0: about to withdraw this file system
BUG: sleeping function called from invalid context at fs/gfs2/glock.c:2081
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5143, name: syz-executor333
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 5143 Comm: syz-executor333 Not tainted 6.5.0-syzkaller-09276-g99d99825fc07 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106
 __might_resched+0x3c3/0x5e0 kernel/sched/core.c:10187
 glock_hash_walk fs/gfs2/glock.c:2081 [inline]
 gfs2_flush_delete_work+0x1f6/0x2b0 fs/gfs2/glock.c:2108
 gfs2_make_fs_ro+0x460/0x740 fs/gfs2/super.c:550
 signal_our_withdraw fs/gfs2/util.c:153 [inline]
 gfs2_withdraw+0xc2e/0x10c0 fs/gfs2/util.c:334
 gfs2_ail1_empty+0x8cc/0xab0 fs/gfs2/log.c:377
 gfs2_flush_revokes+0x6b/0x90 fs/gfs2/log.c:815
 revoke_lo_before_commit+0x22/0x640 fs/gfs2/lops.c:868
 lops_before_commit fs/gfs2/lops.h:40 [inline]
 gfs2_log_flush+0x105e/0x27f0 fs/gfs2/log.c:1101
 gfs2_write_inode+0x24a/0x4b0 fs/gfs2/super.c:453
 write_inode fs/fs-writeback.c:1456 [inline]
 __writeback_single_inode+0xa81/0xe70 fs/fs-writeback.c:1668
 writeback_single_inode+0x2af/0x590 fs/fs-writeback.c:1724
 sync_inode_metadata+0xa5/0xe0 fs/fs-writeback.c:2786
 gfs2_fsync+0x218/0x380 fs/gfs2/file.c:761
 vfs_fsync_range+0x141/0x220 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2625 [inline]
 gfs2_file_write_iter+0xd97/0x10c0 fs/gfs2/file.c:1150
 call_write_iter include/linux/fs.h:1985 [inline]
 do_iter_readv_writev+0x21e/0x3c0 fs/read_write.c:735
 do_iter_write+0x17f/0x830 fs/read_write.c:860
 vfs_iter_write+0x7a/0xb0 fs/read_write.c:901
 iter_file_splice_write+0x698/0xbf0 fs/splice.c:736
 do_splice_from fs/splice.c:933 [inline]
 direct_splice_actor+0x118/0x180 fs/splice.c:1142
 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1088
 do_splice_direct+0x1af/0x280 fs/splice.c:1194
 do_sendfile+0xb88/0x1390 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64 fs/read_write.c:1308 [inline]
 __x64_sys_sendfile64+0x1d6/0x220 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f47de46e6b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff21f08188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fff21f08358 RCX: 00007f47de46e6b9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000007
RBP: 00007f47de4f3610 R08: 00007fff21f08358 R09: 00007fff21f08358
R10: 0001000000201004 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff21f08348 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
BUG: scheduling while atomic: syz-executor333/5143/0x00000002
INFO: lockdep is turned off.
Modules linked in:
Preemption disabled at:
[<0000000000000000>] 0x0

Crashes (99):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/01 15:16 upstream 99d99825fc07 696ea0d2 .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 20:15 upstream 708283abf896 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 18:02 upstream 708283abf896 8bc9053e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/03 13:40 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 22:46 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 21:53 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 04:41 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:22 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:21 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:17 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:10 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 23:45 upstream 7a1415eebeec 0b6286dc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 16:58 upstream 708283abf896 db3306a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 08:09 upstream 708283abf896 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 05:29 upstream 708283abf896 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/03 17:44 upstream 92901222f83d 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/03 06:05 upstream fdde61878047 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 22:49 upstream fdde61878047 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 18:07 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 17:57 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 17:25 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 13:48 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 07:37 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 04:45 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 04:13 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 04:11 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:26 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:23 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:19 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/05 08:41 upstream 7a1415eebeec 0b6286dc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 23:50 upstream 7a1415eebeec 0b6286dc .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 15:46 upstream 708283abf896 db3306a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 11:49 upstream 708283abf896 db3306a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/04 06:30 upstream 708283abf896 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/03 15:03 upstream 92901222f83d 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/03 09:55 upstream 92901222f83d 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 22:49 upstream fdde61878047 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 22:42 upstream fdde61878047 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 13:33 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 13:11 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 09:54 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 07:38 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 04:31 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:22 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:21 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:18 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
2023/09/02 03:18 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 BUG: sleeping function called from invalid context in gfs2_flush_delete_work
* Struck through repros no longer work on HEAD.