syzbot


WARNING in get_vaddr_frames

Status: upstream: reported C repro on 2022/12/08 19:56
Reported-by: syzbot+2dd0638c1cbaa8ad928b@syzkaller.appspotmail.com
First crash: 561d, last: 491d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in get_vaddr_frames origin:upstream missing-backport C done 433 265d 471d 0/3 upstream: reported C repro on 2023/03/08 19:50
linux-5.15 WARNING in get_vaddr_frames C error 248 265d 471d 0/3 auto-obsoleted due to no activity on 2023/12/09 23:08
upstream WARNING in get_vaddr_frames media C done done 1596 270d 564d 0/27 auto-obsoleted due to no activity on 2023/12/20 22:26

Sample crash report:
get_vaddr_frames() cannot follow VM_IO mapping
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7965 at mm/frame_vector.c:79 get_vaddr_frames.cold+0x18/0x1f mm/frame_vector.c:79
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7965 Comm: syz-executor284 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:get_vaddr_frames.cold+0x18/0x1f mm/frame_vector.c:79
RSP: 0018:ffff8880926a7690 EFLAGS: 00010282
RAX: 000000000000002e RBX: ffff8880b3a09440 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff8880ab55ea70 RDI: ffffed10124d4ec8
RBP: 0000000000000096 R08: 000000000000002e R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 1ffff110124d4ed5
R13: 0000000020000000 R14: 0000000000000000 R15: ffff88809ef51eb0
 vb2_create_framevec+0x70/0xd0 drivers/media/v4l2-core/videobuf2-memops.c:56
 vb2_vmalloc_get_userptr+0xcf/0x470 drivers/media/v4l2-core/videobuf2-vmalloc.c:90
 __prepare_userptr+0x304/0x1040 drivers/media/v4l2-core/videobuf2-core.c:1033
 __buf_prepare+0x3f6/0x4f0 drivers/media/v4l2-core/videobuf2-core.c:1258
 vb2_core_qbuf+0x112/0xb60 drivers/media/v4l2-core/videobuf2-core.c:1386
 vb2_qbuf+0x95/0xe0 drivers/media/v4l2-core/videobuf2-v4l2.c:570
 v4l2_m2m_qbuf+0x66/0x150 drivers/media/v4l2-core/v4l2-mem2mem.c:403
 v4l_qbuf drivers/media/v4l2-core/v4l2-ioctl.c:1881 [inline]
 v4l_qbuf+0x88/0xb0 drivers/media/v4l2-core/v4l2-ioctl.c:1875
 __video_do_ioctl+0x65b/0x6a0 drivers/media/v4l2-core/v4l2-ioctl.c:2738
 video_usercopy+0xfd/0xe70 drivers/media/v4l2-core/v4l2-ioctl.c:2908
 v4l2_ioctl+0x1bb/0x2f0 drivers/media/v4l2-core/v4l2-dev.c:360
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fcc9973c849
RSP: 002b:00007ffce89f71d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fcc9973c849
RDX: 0000000020000300 RSI: 00000000c058560f RDI: 0000000000000004
RBP: 00007fcc996fc3f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcc996fc480
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/09 06:15 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2023/02/16 13:47 linux-4.14.y a8ad60f2af58 38b317a7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2023/02/07 12:01 linux-4.14.y a8ad60f2af58 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2023/01/10 07:37 linux-4.14.y c4215ee4771b 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2023/01/03 12:28 linux-4.14.y c4215ee4771b f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/30 21:11 linux-4.14.y c4215ee4771b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/09 16:37 linux-4.14.y 65afe34ac33d 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/08 23:15 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/08 21:59 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/08 21:55 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
2022/12/08 19:56 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in get_vaddr_frames
* Struck through repros no longer work on HEAD.