syzbot


WARNING in iomap_dio_rw

Status: upstream: reported on 2022/11/22 22:42
Subsystems: gfs2
[Documentation on labels]
Reported-by: syzbot+80535bf82791f28bec87@syzkaller.appspotmail.com
First crash: 759d, last: 692d

Sample crash report:
audit: type=1804 audit(1674918667.767:142): pid=15918 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.2" name="/root/syzkaller-testdir2418811057/syzkaller.9RGyWE/93/file0/bus" dev="loop2" ino=2341 res=1
------------[ cut here ]------------
audit: type=1800 audit(1674918667.777:143): pid=15918 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor.2" name="bus" dev="loop2" ino=2341 res=0
WARNING: CPU: 1 PID: 15918 at fs/iomap.c:1828 iomap_dio_rw.cold+0x11/0x18 fs/iomap.c:1828
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 15918 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
sysfs: cannot create duplicate filename '/fs/gfs2/syz:syz'
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:iomap_dio_rw.cold+0x11/0x18 fs/iomap.c:1828
Code: c7 c7 c0 43 76 88 e8 e9 cf fe ff 0f 0b 49 c7 c4 fb ff ff ff e9 4f eb c8 f9 e8 6b 9e 6d f9 48 c7 c7 c0 43 76 88 e8 ca cf fe ff <0f> 0b e9 6c 03 c9 f9 e8 53 9e 6d f9 48 8d 45 10 4c 89 ea 48 c7 c7
RSP: 0018:ffff88802b1977b8 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000010000 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814dff01 RDI: ffffed1005632ee9
RBP: 0000000000000000 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88802b197a48
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802b197a98
 gfs2_file_direct_read fs/gfs2/file.c:709 [inline]
 gfs2_file_read_iter+0x271/0x2e0 fs/gfs2/file.c:758
 call_read_iter include/linux/fs.h:1815 [inline]
 generic_file_splice_read+0x44a/0x6d0 fs/splice.c:308
 do_splice_to+0x10e/0x160 fs/splice.c:881
 splice_direct_to_actor+0x2b9/0x8d0 fs/splice.c:959
 do_splice_direct+0x1a7/0x270 fs/splice.c:1068
 do_sendfile+0x550/0xc30 fs/read_write.c:1447
 __do_sys_sendfile64 fs/read_write.c:1508 [inline]
 __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7effce5df0c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007effccb51168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007effce6fef80 RCX: 00007effce5df0c9
RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007
RBP: 00007effce63aae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000200fc0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcb23d690f R14: 00007effccb51300 R15: 0000000000022000
CPU: 0 PID: 15985 Comm: syz-executor.3 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 sysfs_warn_dup.cold+0x1c/0x29 fs/sysfs/dir.c:30
 sysfs_create_dir_ns+0x228/0x280 fs/sysfs/dir.c:63
 create_dir lib/kobject.c:88 [inline]
 kobject_add_internal+0x2a5/0x9c0 lib/kobject.c:247
 kobject_add_varg lib/kobject.c:382 [inline]
 kobject_init_and_add+0x101/0x160 lib/kobject.c:453
 gfs2_sys_fs_add+0x18e/0x440 fs/gfs2/sys.c:659
 fill_super+0x1240/0x2550 fs/gfs2/ops_fstype.c:1103
 gfs2_mount+0x4c0/0x5a0 fs/gfs2/ops_fstype.c:1316
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fae54eb35fa
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007fae53423f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00000000000124a6 RCX: 00007fae54eb35fa
RDX: 0000000020000040 RSI: 0000000020012500 RDI: 00007fae53423fe0
RBP: 00007fae53424020 R08: 00007fae53424020 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040
R13: 0000000020012500 R14: 00007fae53423fe0 R15: 0000000020000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/28 15:11 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/12/18 21:18 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/12/18 20:54 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/12/18 15:39 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/11/28 06:33 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/11/28 04:41 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/11/26 13:11 linux-4.19.y 3f8a27f9e27b f4470a7b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
2022/11/22 22:42 linux-4.19.y 3f8a27f9e27b 9da37ae8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_rw
* Struck through repros no longer work on HEAD.