syzbot


kernel BUG in __iov_iter_get_pages_alloc

Status: upstream: reported C repro on 2024/09/20 13:20
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+2fcb246021c963371c20@syzkaller.appspotmail.com
First crash: 65d, last: 48d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] Monthly v9fs report (Sep 2024) 0 (1) 2024/09/30 07:38
[syzbot] [v9fs?] kernel BUG in __iov_iter_get_pages_alloc 0 (1) 2024/09/20 13:20
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/10/18 01:51 18m retest repro upstream OK log
2024/10/18 00:13 18m retest repro upstream OK log
2024/10/18 00:13 18m retest repro upstream OK log
2024/10/18 00:13 12m retest repro upstream report log
2024/10/18 00:13 18m retest repro upstream OK log
2024/10/18 00:13 18m retest repro upstream OK log

Sample crash report:
 get_signal+0x25fb/0x2770 kernel/signal.c:2917
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 irqentry_exit_to_user_mode+0x13f/0x280 kernel/entry/common.c:231
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:1460!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 UID: 0 PID: 5366 Comm: syz-executor143 Not tainted 6.11.0-syzkaller-03917-ga940d9a43e62 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:folio_get include/linux/mm.h:1460 [inline]
RIP: 0010:get_page include/linux/mm.h:1466 [inline]
RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline]
RIP: 0010:__iov_iter_get_pages_alloc+0x1d1e/0x2240 lib/iov_iter.c:1201
Code: b0 8b 48 89 df e8 c2 b0 48 fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 82 2f 04 fd 48 c7 c6 00 ba b0 8b 4c 89 e7 e8 a3 b0 48 fd 90 <0f> 0b e8 6b 2f 04 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c
RSP: 0018:ffffc90003c8ece8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000018 RCX: 0000000000000000
RDX: ffff888025930000 RSI: ffffffff848814ed RDI: ffff888025930444
RBP: ffffea0000ef1534 R08: 0000000000000001 R09: fffffbfff2d3a8fd
R10: ffffffff969d47ef R11: 00000000000001fc R12: ffffea0000ef1500
R13: ffff8880300a4800 R14: 0000000000001000 R15: 0000000000001000
FS:  0000000000000000(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000028 CR3: 0000000031d12000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iov_iter_get_pages_alloc2+0x53/0xf0 lib/iov_iter.c:1225
 p9_get_mapped_pages.part.0.constprop.0+0x4ca/0x7d0 net/9p/trans_virtio.c:333
 p9_get_mapped_pages net/9p/trans_virtio.c:318 [inline]
 p9_virtio_zc_request+0x1be/0x1390 net/9p/trans_virtio.c:439
 p9_client_zc_rpc.constprop.0+0x29a/0x880 net/9p/client.c:808
 p9_client_write+0x447/0x680 net/9p/client.c:1631
 v9fs_issue_write+0xe2/0x180 fs/9p/vfs_addr.c:59
 netfs_do_issue_write+0x92/0x110 fs/netfs/write_issue.c:223
 netfs_issue_write fs/netfs/write_issue.c:250 [inline]
 netfs_advance_write fs/netfs/write_issue.c:291 [inline]
 netfs_advance_write+0x384/0xbd0 fs/netfs/write_issue.c:259
 netfs_write_folio+0xc44/0x18f0 fs/netfs/write_issue.c:469
 netfs_writepages+0x2ba/0xb90 fs/netfs/write_issue.c:541
 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2683
 filemap_fdatawrite_wbc mm/filemap.c:397 [inline]
 filemap_fdatawrite_wbc+0x148/0x1c0 mm/filemap.c:387
 __filemap_fdatawrite_range+0xba/0x100 mm/filemap.c:430
 v9fs_dir_release+0x429/0x590 fs/9p/vfs_dir.c:219
 __fput+0x3f6/0xb60 fs/file_table.c:431
 task_work_run+0x14e/0x250 kernel/task_work.c:228
 exit_task_work include/linux/task_work.h:40 [inline]
 do_exit+0xaa3/0x2bb0 kernel/exit.c:882
 do_group_exit+0xd3/0x2a0 kernel/exit.c:1031
 get_signal+0x25fb/0x2770 kernel/signal.c:2917
 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 irqentry_exit_to_user_mode+0x13f/0x280 kernel/entry/common.c:231
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623
RIP: 0033:0x7f53cae71436
Code: Unable to access opcode bytes at 0x7f53cae7140c.
RSP: 002b:00007f53cae03200 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00007f53caef4318 RCX: 00007f53cae714a9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000000249f0
RBP: 00007f53caef4310 R08: 0000000000000000 R09: 00007f53cae036c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f53caec12fc
R13: 00007f53caef431c R14: 0030656c69662f2e R15: 00007ffdb9c6eba8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:folio_get include/linux/mm.h:1460 [inline]
RIP: 0010:get_page include/linux/mm.h:1466 [inline]
RIP: 0010:iter_folioq_get_pages lib/iov_iter.c:1030 [inline]
RIP: 0010:__iov_iter_get_pages_alloc+0x1d1e/0x2240 lib/iov_iter.c:1201
Code: b0 8b 48 89 df e8 c2 b0 48 fd 90 0f 0b 49 89 c5 e9 99 f6 ff ff e8 82 2f 04 fd 48 c7 c6 00 ba b0 8b 4c 89 e7 e8 a3 b0 48 fd 90 <0f> 0b e8 6b 2f 04 fd 4c 8b 64 24 48 49 83 ec 01 e9 94 fd ff ff 4c
RSP: 0018:ffffc90003c8ece8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000018 RCX: 0000000000000000
RDX: ffff888025930000 RSI: ffffffff848814ed RDI: ffff888025930444
RBP: ffffea0000ef1534 R08: 0000000000000001 R09: fffffbfff2d3a8fd
R10: ffffffff969d47ef R11: 00000000000001fc R12: ffffea0000ef1500
R13: ffff8880300a4800 R14: 0000000000001000 R15: 0000000000001000
FS:  0000000000000000(0000) GS:ffff88806a700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000028 CR3: 0000000035464000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (433):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/18 00:25 upstream a940d9a43e62 c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 22:26 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 06:10 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 14:45 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 03:58 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 23:40 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 12:58 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 11:32 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 05:22 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/09/18 02:32 upstream a940d9a43e62 c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/09/17 06:49 upstream a430d95c5efa c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/09/17 06:19 upstream a430d95c5efa c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/09/17 05:48 upstream a430d95c5efa c673ca06 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/09/16 17:56 upstream adfc3ded5c33 49cf0773 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 23:41 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 21:25 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 20:12 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 18:05 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 17:28 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 16:04 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 13:08 upstream 7ec462100ef9 d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 09:28 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 05:08 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 04:56 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 03:28 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 03:25 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/03 01:45 upstream f23aa4c0761a a4c7fd36 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 18:58 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 17:48 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 16:44 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 15:30 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 13:22 upstream e32cde8d2bd7 83a2f15f .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 08:52 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 07:40 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 06:38 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/02 06:36 upstream e32cde8d2bd7 ea2b66a6 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 21:14 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 19:40 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 17:17 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 14:54 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 14:45 upstream e32cde8d2bd7 e9f6e118 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 09:14 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 06:29 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/10/01 00:02 upstream e32cde8d2bd7 bbd4e0a4 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 22:03 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 21:27 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 20:10 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 19:02 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 17:43 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 15:42 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 14:59 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 12:55 upstream 9852d85ec9d4 179f4029 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
2024/09/30 08:14 upstream 9852d85ec9d4 ba29ff75 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in __iov_iter_get_pages_alloc
* Struck through repros no longer work on HEAD.