syzbot


kernel BUG in zero_user_segments

Status: upstream: reported C repro on 2024/08/16 06:44
Subsystems: ntfs3
[Documentation on labels]
Reported-by: syzbot+78eeb671facb19832e95@syzkaller.appspotmail.com
First crash: 86d, last: now
Cause bisection: the cause commit could be any of (bisect log):
  02d8a3227f49 hostfs: Convert hostfs_write_end() to use a folio
  a060d835cf76 fuse: Convert fuse_write_begin() to use a folio
  c8dbe54a2e0b jffs2: Convert jffs2_write_end() to use a folio
  0ee818cc42fc jffs2: Convert jffs2_write_begin() to use a folio
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ntfs3?] kernel BUG in zero_user_segments 0 (1) 2024/08/16 06:44
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/09/14 10:30 15m retest repro linux-next report log

Sample crash report:
ntfs3(loop0): Different NTFS sector size (4096) and media sector size (512).
ntfs3(loop0): Mark volume as dirty due to NTFS errors
------------[ cut here ]------------
kernel BUG at include/linux/highmem.h:275!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 5831 Comm: syz-executor499 Not tainted 6.12.0-rc6-syzkaller-00077-g2e1b3cc9d7f7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:zero_user_segments+0x28b/0x290 include/linux/highmem.h:275
Code: ff 01 e9 47 fe ff ff e8 13 3b a7 fe 89 ea be 00 10 00 00 48 c7 c7 b0 42 cf 8e e8 50 ae ff 01 e9 d3 fe ff ff e8 f6 3a a7 fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3
RSP: 0018:ffffc90003bc77c0 EFLAGS: 00010293
RAX: ffffffff82ed9f0a RBX: ffffea0001da7800 RCX: ffff888036890000
RDX: 0000000000000000 RSI: 000000000000100a RDI: 0000000000001000
RBP: 0000000000001000 R08: ffffffff82ed9d45 R09: 1ffffd40003b4f00
R10: dffffc0000000000 R11: fffff940003b4f01 R12: 000000000000100a
R13: 0000000000000000 R14: 1ffffd40003b4f00 R15: 000000000000100a
FS:  000055559070f380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2e542310f8 CR3: 0000000032b70000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 folio_zero_range include/linux/highmem.h:647 [inline]
 ntfs_extend_initialized_size+0x50b/0x950 fs/ntfs3/file.c:225
 ntfs_extend+0x578/0xad0 fs/ntfs3/file.c:413
 ntfs_file_write_iter+0x403/0x7a0 fs/ntfs3/file.c:1254
 do_iter_readv_writev+0x600/0x880
 vfs_writev+0x376/0xba0 fs/read_write.c:1064
 do_pwritev fs/read_write.c:1165 [inline]
 __do_sys_pwritev2 fs/read_write.c:1224 [inline]
 __se_sys_pwritev2+0x1ca/0x2d0 fs/read_write.c:1215
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2e5419aa99
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffda9a4ca18 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2e5419aa99
RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f2e5422d5f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000005412 R11: 0000000000000246 R12: 00007ffda9a4ca50
R13: 00007ffda9a4cc78 R14: 431bde82d7b634db R15: 00007f2e541e303b
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:zero_user_segments+0x28b/0x290 include/linux/highmem.h:275
Code: ff 01 e9 47 fe ff ff e8 13 3b a7 fe 89 ea be 00 10 00 00 48 c7 c7 b0 42 cf 8e e8 50 ae ff 01 e9 d3 fe ff ff e8 f6 3a a7 fe 90 <0f> 0b 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3
RSP: 0018:ffffc90003bc77c0 EFLAGS: 00010293
RAX: ffffffff82ed9f0a RBX: ffffea0001da7800 RCX: ffff888036890000
RDX: 0000000000000000 RSI: 000000000000100a RDI: 0000000000001000
RBP: 0000000000001000 R08: ffffffff82ed9d45 R09: 1ffffd40003b4f00
R10: dffffc0000000000 R11: fffff940003b4f01 R12: 000000000000100a
R13: 0000000000000000 R14: 1ffffd40003b4f00 R15: 000000000000100a
FS:  000055559070f380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6b94595ed8 CR3: 0000000032b70000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (12144):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/05 18:07 upstream 2e1b3cc9d7f7 da38b4c9 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/22 00:24 upstream d12937763990 f1e4447c .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/12 07:33 upstream 9e4c6c1ad9a1 084d8178 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/02 02:05 upstream e32cde8d2bd7 ea2b66a6 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/09/16 21:18 upstream adfc3ded5c33 c673ca06 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in zero_user_segments
2024/09/25 04:46 upstream 68e5c7d4cefb 349a68c4 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/08/12 16:51 linux-next 9e6869691724 6f4edef4 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
2024/11/06 07:39 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/06 05:10 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/06 04:08 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/06 03:14 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/06 02:10 upstream 2e1b3cc9d7f7 3a465482 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in zero_user_segments
2024/11/06 01:07 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/06 00:40 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 23:38 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 23:38 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 22:34 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 21:28 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 19:36 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 18:32 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 16:18 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 15:16 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 13:52 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 12:50 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 12:40 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 10:02 upstream 2e1b3cc9d7f7 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 04:38 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 02:41 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 01:15 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/11/05 00:34 upstream 557329bcecc2 509da429 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in zero_user_segments
2024/10/26 07:43 upstream b423f5a9a61f 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root kernel BUG in zero_user_segments
2024/11/06 08:14 upstream 2e1b3cc9d7f7 3a465482 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/06 06:32 upstream 2e1b3cc9d7f7 3a465482 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/06 06:23 upstream 2e1b3cc9d7f7 3a465482 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/06 05:20 upstream 2e1b3cc9d7f7 3a465482 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 22:30 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 20:45 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 19:58 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 17:39 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 17:23 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 16:18 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 14:35 upstream 2e1b3cc9d7f7 da38b4c9 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 11:06 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 09:49 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 08:48 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 07:47 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 07:07 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 07:01 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 05:58 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 05:40 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 03:42 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/05 02:20 upstream 557329bcecc2 509da429 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in zero_user_segments
2024/11/03 18:25 linux-next c88416ba074a f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
2024/08/12 06:40 linux-next 9e6869691724 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in zero_user_segments
* Struck through repros no longer work on HEAD.