syzbot


WARNING in get_vaddr_frames

Status: upstream: reported C repro on 2022/12/05 08:13
Reported-by: syzbot+59a71007ccac79e8bb69@syzkaller.appspotmail.com
First crash: 65d, last: 5h14m

Cause bisection: introduced by (bisect log) :
commit 6647e76ab623b2b3fb2efe03a86e9c9046c52c33
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Thu Dec 1 00:10:52 2022 +0000

  v4l2: don't fall back to follow_pfn() if pin_user_pages_fast() fails

Crash: WARNING in get_vaddr_frames (log)
Repro: C syz .config
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in get_vaddr_frames C 9 27d 59d 0/1 upstream: reported C repro on 2022/12/08 19:56

Sample crash report:
------------[ cut here ]------------
get_vaddr_frames() cannot follow VM_IO mapping
WARNING: CPU: 0 PID: 5062 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:63 [inline]
WARNING: CPU: 0 PID: 5062 at drivers/media/common/videobuf2/frame_vector.c:63 get_vaddr_frames+0x217/0x220 drivers/media/common/videobuf2/frame_vector.c:36
Modules linked in:
CPU: 0 PID: 5062 Comm: syz-executor243 Not tainted 6.2.0-rc1-syzkaller-00095-ge4cf7c25bae5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:get_vaddr_frames drivers/media/common/videobuf2/frame_vector.c:63 [inline]
RIP: 0010:get_vaddr_frames+0x217/0x220 drivers/media/common/videobuf2/frame_vector.c:36
Code: c6 3c fb e9 06 ff ff ff e8 46 c6 3c fb e9 cd fe ff ff e8 4c be ee fa 48 c7 c7 c0 d7 1c 8b c6 05 22 1f cb 07 01 e8 f9 ad 2c 03 <0f> 0b e9 53 ff ff ff 66 90 41 57 41 56 41 55 41 54 49 89 fc 55 4d
RSP: 0018:ffffc90003d5f810 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888017bd7000 RCX: 0000000000000000
RDX: ffff8880259a3a80 RSI: ffffffff8166721c RDI: fffff520007abef4
RBP: ffff888017bd7004 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: 00000000fffffff2
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88802a51b800
FS:  00005555560db300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000140 CR3: 000000007fef8000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 vb2_create_framevec+0x62/0xd0 drivers/media/common/videobuf2/videobuf2-memops.c:52
 vb2_vmalloc_get_userptr+0x13b/0x530 drivers/media/common/videobuf2/videobuf2-vmalloc.c:89
 __prepare_userptr+0x31e/0x1580 drivers/media/common/videobuf2/videobuf2-core.c:1199
 __buf_prepare+0x5e4/0x780 drivers/media/common/videobuf2/videobuf2-core.c:1441
 vb2_core_prepare_buf+0xe4/0x2c0 drivers/media/common/videobuf2/videobuf2-core.c:1580
 vb2_prepare_buf+0x103/0x170 drivers/media/common/videobuf2/videobuf2-v4l2.c:738
 v4l2_m2m_prepare_buf+0xe8/0x210 drivers/media/v4l2-core/v4l2-mem2mem.c:823
 v4l_prepare_buf drivers/media/v4l2-core/v4l2-ioctl.c:2145 [inline]
 v4l_prepare_buf+0x96/0xc0 drivers/media/v4l2-core/v4l2-ioctl.c:2139
 __video_do_ioctl+0xb9d/0xe20 drivers/media/v4l2-core/v4l2-ioctl.c:3034
 video_usercopy+0x3b8/0x17f0 drivers/media/v4l2-core/v4l2-ioctl.c:3381
 v4l2_ioctl+0x1b7/0x250 drivers/media/v4l2-core/v4l2-dev.c:364
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f161701fc49
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 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:00007ffefa6e9338 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f161701fc49
RDX: 0000000020000300 RSI: 00000000c058565d RDI: 0000000000000003
RBP: 00007f1616fe3df0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1616fe3e80
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (390):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2023/01/01 15:02 upstream e4cf7c25bae5 ab32d508 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2022/12/29 13:25 upstream 1b929c02afd3 44712fbc .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2022/12/29 12:12 upstream 1b929c02afd3 44712fbc .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2022/12/05 20:36 upstream 76dcd734eca2 045cbb84 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2022/12/03 22:54 upstream 97ee9d1c1696 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-smack-root 2022/12/03 17:07 upstream a1e9185d20b5 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2022/12/03 15:38 upstream a1e9185d20b5 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2022/12/03 14:39 upstream bdaa78c6aa86 e080de16 .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/01/25 04:56 linux-next 691781f561e9 9dfcf09c .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/01/23 02:03 linux-next d514392f17fd 559a440a .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/01/23 00:46 linux-next d514392f17fd 559a440a .config strace log report syz C [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-smack-root 2023/02/04 21:05 upstream 0136d86b7852 be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-smack-root 2023/02/02 21:38 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/02/02 10:43 upstream 9f266ccaa2f5 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2023/02/02 09:03 upstream 9f266ccaa2f5 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/02/02 07:52 upstream 9f266ccaa2f5 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/02/02 02:01 upstream c0b67534c95c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/01/31 17:05 upstream 22b8077d0fce 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/01/29 16:14 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/01/28 23:49 upstream 5af6ce704936 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/01/28 09:59 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/01/27 16:35 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2023/01/27 16:24 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/01/25 21:10 upstream 948ef7bb70c4 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/01/25 11:31 upstream fb6e71db53f3 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-selinux-root 2023/01/23 21:22 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce-root 2023/01/23 19:44 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/01/23 19:40 upstream 2475bf0250de 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-kasan-gce 2023/01/23 11:11 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-qemu-upstream 2023/01/09 23:21 upstream 1fe4fd6f5cad 48bc529a .config console log report info WARNING in get_vaddr_frames
ci-qemu-upstream 2022/12/02 23:17 upstream bdaa78c6aa86 e080de16 .config console log report info WARNING in get_vaddr_frames
ci-upstream-kasan-gce-386 2023/01/01 13:31 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/02/06 03:29 linux-next 4fafd96910ad be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/02/04 09:41 linux-next 4fafd96910ad 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-linux-next-kasan-gce-root 2023/01/23 22:44 linux-next 691781f561e9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/04 15:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/04 13:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/03 17:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/03 14:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/03 07:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/02 18:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/02 16:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/01 23:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/01 20:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/02/01 05:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/31 20:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f57a12aa375c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/31 07:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/29 18:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/29 17:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/29 15:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/28 12:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/27 21:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/27 20:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c62c88e05937 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/27 06:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/26 22:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/26 20:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/26 16:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/25 13:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/24 15:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/24 14:26 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2e84eedb182e 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/23 16:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/23 15:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/23 12:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 44388686 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
ci-upstream-gce-arm64 2023/01/23 09:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci edb2f0dc90f2 44388686 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in get_vaddr_frames
* Struck through repros no longer work on HEAD.