syzbot


WARNING in iov_iter_revert (4)

Status: auto-obsoleted due to no activity on 2023/11/08 23:39
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+5e732e5de356b7242fb8@syzkaller.appspotmail.com
First crash: 271d, last: 218d
Cause bisection: introduced by (bisect log) :
commit 6e5be40d32fb1907285277c02e74493ed43d77fe
Author: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Date: Fri Aug 13 14:21:30 2021 +0000

  fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

Crash: WARNING in iov_iter_revert (log)
Repro: C syz .config
  
Fix bisection: failed (error log, bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] WARNING in iov_iter_revert (4) 0 (1) 2023/06/08 08:21
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in iov_iter_revert net C 74 2056d 2122d 8/26 fixed on 2018/08/07 13:43
upstream WARNING in iov_iter_revert (2) serial C done 9 1111d 1112d 20/26 fixed on 2021/04/09 19:46
linux-6.1 WARNING in iov_iter_revert origin:lts-only C done 1 149d 204d 0/3 upstream: reported C repro on 2023/08/13 18:12
upstream WARNING in iov_iter_revert (3) ntfs3 C error error 26 407d 465d 0/26 auto-obsoleted due to no activity on 2023/05/23 03:07
linux-5.15 WARNING in iov_iter_revert origin:lts-only C done 1 234d 250d 0/3 upstream: reported C repro on 2023/06/28 09:07
Last patch testing requests (3)
Created Duration User Patch Repo Result
2023/11/08 23:15 23m retest repro upstream OK log
2023/09/22 05:48 20m retest repro upstream OK log
2023/08/30 14:35 13m retest repro upstream report log

Sample crash report:
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc498558c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fafe060e9f9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007ffc498558f0 R08: 0000000000000002 R09: 00007ffc49855900
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffc49855930 R14: 00007ffc49855910 R15: 0000000000000001
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4998 at lib/iov_iter.c:970 iov_iter_revert+0x381/0x830
Modules linked in:
CPU: 1 PID: 4998 Comm: syz-executor221 Not tainted 6.4.0-rc5-syzkaller-00017-ga27648c74210 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:iov_iter_revert+0x381/0x830 lib/iov_iter.c:970
Code: 80 3c 01 00 48 8b 5c 24 18 74 08 48 89 df e8 56 69 b1 fd 4c 89 3b 48 83 c4 60 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 9f 93 59 fd <0f> 0b eb e8 48 8b 6c 24 08 48 89 e8 48 c1 e8 03 42 80 3c 38 00 74
RSP: 0018:ffffc90003a1f7f0 EFLAGS: 00010293
RAX: ffffffff8431eb91 RBX: ffffc90003a1f980 RCX: ffff88802c100000
RDX: 0000000000000000 RSI: ffffffffffff1000 RDI: 000000007ffff000
RBP: ffffffffffff1000 R08: ffffffff8431e850 R09: fffffbfff1a008b3
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffffff1000
R13: ffffc90003a1f980 R14: ffffc90003a1f998 R15: 0000000000000000
FS:  0000555556814300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fafe06a0138 CR3: 0000000017acd000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 generic_file_read_iter+0x3db/0x540 mm/filemap.c:2820
 call_read_iter include/linux/fs.h:1862 [inline]
 generic_file_splice_read+0x240/0x640 fs/splice.c:419
 do_splice_to fs/splice.c:902 [inline]
 splice_direct_to_actor+0x40c/0xbd0 fs/splice.c:973
 do_splice_direct+0x283/0x3d0 fs/splice.c:1082
 do_sendfile+0x620/0xff0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fafe060e9f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc498558c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fafe060e9f9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007ffc498558f0 R08: 0000000000000002 R09: 00007ffc49855900
R10: 0000000100000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffc49855930 R14: 00007ffc49855910 R15: 0000000000000001
 </TASK>
----------------
Code disassembly (best guess):
   0:	28 00                	sub    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	75 05                	jne    0xb
   6:	48 83 c4 28          	add    $0x28,%rsp
   a:	c3                   	retq
   b:	e8 11 15 00 00       	callq  0x1521
  10:	90                   	nop
  11:	48 89 f8             	mov    %rdi,%rax
  14:	48 89 f7             	mov    %rsi,%rdi
  17:	48 89 d6             	mov    %rdx,%rsi
  1a:	48 89 ca             	mov    %rcx,%rdx
  1d:	4d 89 c2             	mov    %r8,%r10
  20:	4d 89 c8             	mov    %r9,%r8
  23:	4c 8b 4c 24 08       	mov    0x8(%rsp),%r9
  28:	0f 05                	syscall
* 2a:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax <-- trapping instruction
  30:	73 01                	jae    0x33
  32:	c3                   	retq
  33:	48 c7 c1 c0 ff ff ff 	mov    $0xffffffffffffffc0,%rcx
  3a:	f7 d8                	neg    %eax
  3c:	64 89 01             	mov    %eax,%fs:(%rcx)
  3f:	48                   	rex.W

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/07 20:25 upstream a27648c74210 058b3a5a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs WARNING in iov_iter_revert
2023/06/07 17:25 upstream a4d7d7011219 7086cdb9 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root WARNING in iov_iter_revert
2023/07/30 14:30 upstream d31e3792919e 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in iov_iter_revert
2023/06/07 17:05 upstream a4d7d7011219 7086cdb9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in iov_iter_revert
* Struck through repros no longer work on HEAD.