syzbot


WARNING in iomap_dio_actor

Status: upstream: reported C repro on 2022/12/12 01:28
Subsystems: xfs
[Documentation on labels]
Reported-by: syzbot+9fa1ac403a0ecf030fca@syzkaller.appspotmail.com
First crash: 493d, last: 431d
Fix bisection: failed (error log, bisect log)
  

Sample crash report:
audit: type=1804 audit(1670810094.946:6): pid=8108 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor347" name="/root/file0/bus" dev="loop5" ino=41 res=1
syz-executor347 (8199) used greatest stack depth: 22048 bytes left
Page cache invalidation failure on direct I/O.  Possible data corruption due to collision with buffered I/O!
Page cache invalidation failure on direct I/O.  Possible data corruption due to collision with buffered I/O!
File: /root/file0/bus PID: 8114 Comm: syz-executor347
WARNING: CPU: 1 PID: 8114 at fs/iomap.c:1800 iomap_dio_actor+0x2e5/0x4e0 fs/iomap.c:1800
Kernel panic - not syncing: panic_on_warn set ...

File: /root/file0/bus PID: 8111 Comm: syz-executor347
CPU: 1 PID: 8114 Comm: syz-executor347 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
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
File: /root/file0/bus PID: 8115 Comm: syz-executor347
 __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_actor+0x2e5/0x4e0 fs/iomap.c:1800
Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 ba 01 00 00 49 01 5c 24 18 e9 b9 fd ff ff e8 7b 00 a5 ff <0f> 0b 49 c7 c5 fb ff ff ff e9 a6 fd ff ff e8 68 00 a5 ff 49 8d 7c
RSP: 0018:ffff8880a20e7680 EFLAGS: 00010293
RAX: ffff8880950d4100 RBX: ffff8880a20e7738 RCX: ffffffff81bd826a
RDX: 0000000000000000 RSI: ffffffff81bd84f5 RDI: 0000000000000003
RBP: 0000000000001000 R08: ffff8880a20e7738 R09: 0000000000000005
R10: 0000000000000003 R11: 0000000000000000 R12: ffff8880a1372180
R13: 0000000000001000 R14: ffff88808ace4920 R15: 0000000000000002
 iomap_apply+0x18b/0x290 fs/iomap.c:87
 iomap_dio_rw+0x8cc/0xed0 fs/iomap.c:1909
 xfs_file_dio_aio_read+0x185/0x4a0 fs/xfs/xfs_file.c:195
 xfs_file_read_iter+0x3dc/0x4e0 fs/xfs/xfs_file.c:268
 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:0x7f745f4230b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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:00007f745f3cf308 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f745f4b16e8 RCX: 00007f745f4230b9
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007f745f4b16e0 R08: 0000000000000000 R09: 0000000000000000
R10: 000001ffffffe100 R11: 0000000000000246 R12: 00007f745f4b16ec
R13: 00007f745f47ed8c R14: 0030656c69662f2e R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/12 01:56 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in iomap_dio_actor
2023/02/12 03:45 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_actor
2022/12/12 01:28 linux-4.19.y 3f8a27f9e27b 67be1ae7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in iomap_dio_actor
* Struck through repros no longer work on HEAD.