syzbot


WARNING in ext4_dirty_folio

Status: upstream: reported C repro on 2023/07/08 13:03
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+6d41dcf689b8618244d6@syzkaller.appspotmail.com
First crash: 346d, last: 73d
Fix commit to backport (bisect log) :
tree: upstream
commit 8ac268436e6d52f3bb4d212df9395aec97afaa00
Author: Lorenzo Stoakes <lstoakes@gmail.com>
Date: Thu May 4 21:27:52 2023 +0000

  mm/gup: disallow FOLL_LONGTERM GUP-nonfast writing to file-backed mappings

  
Bug presence (1)
Date Name Commit Repro Result
2024/03/14 upstream (ToT) fe46a7dd189e C [report] WARNING in ext4_dirty_folio
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in ext4_dirty_folio mm C error 7378 16h42m 815d 0/27 upstream: reported C repro on 2022/03/26 15:24
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/09/30 04:24 5h17m fix candidate upstream job log (1)
2023/08/17 04:55 12h10m fix candidate upstream error job log (0)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3550 at fs/ext4/inode.c:3647 ext4_dirty_folio+0x155/0x310
Modules linked in:
CPU: 1 PID: 3550 Comm: syz-executor321 Not tainted 6.1.81-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:ext4_dirty_folio+0x155/0x310 fs/ext4/inode.c:3647
Code: 48 83 3b 00 74 1f e8 6a 21 4f ff 48 8b 3c 24 4c 89 fe 48 83 c4 08 5b 41 5c 41 5d 41 5e 41 5f 5d e9 90 b1 c5 ff e8 4b 21 4f ff <0f> 0b eb dd e8 42 21 4f ff 0f 0b eb af e8 39 21 4f ff 4c 89 ff 48
RSP: 0018:ffffc90003aefac0 EFLAGS: 00010293
RAX: ffffffff823b5dc5 RBX: ffffea0001c97d68 RCX: ffff888024d35940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 1ffffd4000392fa8 R08: ffffffff823b5d06 R09: fffff94000392fa9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffea0001c97d48 R14: 0000000000000001 R15: ffffea0001c97d40
FS:  00007f98c09046c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002034afa4 CR3: 0000000024be1000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unpin_user_pages_dirty_lock+0x2ea/0x530 mm/gup.c:343
 process_vm_rw_single_vec mm/process_vm_access.c:126 [inline]
 process_vm_rw_core mm/process_vm_access.c:215 [inline]
 process_vm_rw+0x94a/0xcc0 mm/process_vm_access.c:283
 __do_sys_process_vm_writev mm/process_vm_access.c:303 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:298 [inline]
 __x64_sys_process_vm_writev+0xdc/0xf0 mm/process_vm_access.c:298
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f98c09673e9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f98c0904208 EFLAGS: 00000246 ORIG_RAX: 0000000000000137
RAX: ffffffffffffffda RBX: 00007f98c09ee6d8 RCX: 00007f98c09673e9
RDX: 0000000000000070 RSI: 0000000020c22000 RDI: 0000000000000dde
RBP: 00007f98c09ee6d0 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000020c22fa0 R11: 0000000000000246 R12: 00007f98c09bb7ec
R13: 00007f98c09bb047 R14: 0030656c69662f2e R15: 6576652e73646970
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/14 18:05 linux-6.1.y 61adba85cc40 8d8ee116 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in ext4_dirty_folio
2023/09/15 18:26 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2023/07/08 14:27 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2024/04/06 06:22 linux-6.1.y 347385861c50 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in ext4_dirty_folio
2023/10/04 14:14 linux-6.1.y d23900f974e0 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in ext4_dirty_folio
2023/09/23 19:53 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in ext4_dirty_folio
2023/07/26 11:51 linux-6.1.y 5302e81aa209 2a509c27 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2023/07/25 18:46 linux-6.1.y 5302e81aa209 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2023/07/19 18:18 linux-6.1.y a456e1743881 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2023/07/10 13:44 linux-6.1.y 61fd484b2cf6 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
2023/07/08 13:03 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in ext4_dirty_folio
* Struck through repros no longer work on HEAD.