syzbot


WARNING in get_vaddr_frames

Status: upstream: reported C repro on 2023/03/08 19:50
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+2f9f34d8ac9500d5fa13@syzkaller.appspotmail.com
First crash: 623d, last: 417d
Fix commit to backport (bisect log) :
tree: upstream
commit 735de5caf79e06cc9fb96b1b4f4974674ae3e917
Author: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Date: Thu Aug 17 10:41:32 2023 +0000

  media: vb2: frame_vector.c: replace WARN_ONCE with a comment

[report pending]
  
Bug presence (3)
Date Name Commit Repro Result
2023/09/21 linux-6.1.y (ToT) a356197db198 C [report] WARNING in get_vaddr_frames
2023/05/07 upstream (ToT) fc4354c6e5c2 C [report] WARNING in get_vaddr_frames
2023/09/21 upstream (ToT) 42dc814987c1 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in get_vaddr_frames C 11 644d 713d 0/1 upstream: reported C repro on 2022/12/08 19:56
linux-5.15 WARNING in get_vaddr_frames C error 248 417d 623d 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 423d 717d 0/28 auto-obsoleted due to no activity on 2023/12/20 22:26
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2023/10/24 23:33 3h33m fix candidate upstream OK (1) job log

Sample crash report:
------------[ cut here ]------------
get_vaddr_frames() cannot follow VM_IO mapping
WARNING: CPU: 1 PID: 3629 at drivers/media/common/videobuf2/frame_vector.c:59 get_vaddr_frames+0x1db/0x220 drivers/media/common/videobuf2/frame_vector.c:59
Modules linked in:
CPU: 1 PID: 3629 Comm: syz-executor366 Not tainted 6.1.20-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
RIP: 0010:get_vaddr_frames+0x1db/0x220 drivers/media/common/videobuf2/frame_vector.c:59
Code: 8c 1a ff ff ff 4c 89 e7 e8 e2 a6 cd fa e9 0d ff ff ff e8 e8 41 77 fa c6 05 0a e1 2b 07 01 48 c7 c7 20 df a7 8b e8 55 8a 3f fa <0f> 0b e9 4a ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 1e ff
RSP: 0018:ffffc90003c6f5c8 EFLAGS: 00010246
RAX: b14ddbeaa8cede00 RBX: 1ffff920016c0000 RCX: ffff888020780000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000000ff000 R08: ffffffff8152ac2e R09: ffffed1017324f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc9000b600004
R13: dffffc0000000000 R14: 0000000000000000 R15: 00000000fffffff2
FS:  0000555557426300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000140 CR3: 0000000079957000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 vb2_create_framevec+0x4a/0xb0 drivers/media/common/videobuf2/videobuf2-memops.c:50
 vb2_vmalloc_get_userptr+0xe7/0x400 drivers/media/common/videobuf2/videobuf2-vmalloc.c:88
 __prepare_userptr drivers/media/common/videobuf2/videobuf2-core.c:1194 [inline]
 __buf_prepare+0xc22/0x4460 drivers/media/common/videobuf2/videobuf2-core.c:1436
 vb2_core_prepare_buf+0xe2/0x300 drivers/media/common/videobuf2/videobuf2-core.c:1575
 v4l2_m2m_prepare_buf drivers/media/v4l2-core/v4l2-mem2mem.c:823 [inline]
 v4l2_m2m_ioctl_prepare_buf+0x137/0x3a0 drivers/media/v4l2-core/v4l2-mem2mem.c:1412
 __video_do_ioctl+0xa3a/0xe30 drivers/media/v4l2-core/v4l2-ioctl.c:3037
 video_usercopy+0xa79/0x10c0 drivers/media/v4l2-core/v4l2-ioctl.c:3384
 v4l2_ioctl+0x181/0x1d0 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+0xf1/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2a8e045119
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:00007ffe17d67f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2a8e045119
RDX: 0000000020000300 RSI: 00000000c058565d RDI: 0000000000000003
RBP: 00007f2a8e009100 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2a8e009190
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Crashes (433):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/19 11:32 linux-6.1.y 7eaef76fbc46 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/03/19 11:11 linux-6.1.y 7eaef76fbc46 7939252e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/03/08 20:48 linux-6.1.y 42616e0f09fb 4fc6d98d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/06/29 05:05 linux-6.1.y a1c449d00ff8 ca69c785 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/09/30 22:33 linux-6.1.y d23900f974e0 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/09/21 05:13 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/09/01 02:32 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/09/21 18:14 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/09/01 01:25 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/08/23 09:06 linux-6.1.y 6c44e13dc284 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/07/14 16:39 linux-6.1.y 61fd484b2cf6 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/03/08 19:50 linux-6.1.y 42616e0f09fb 4fc6d98d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in get_vaddr_frames
2023/08/01 09:37 linux-6.1.y d2a6dc4eaf6d 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/30 21:10 linux-6.1.y d2a6dc4eaf6d 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/30 18:15 linux-6.1.y d2a6dc4eaf6d 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/27 17:33 linux-6.1.y d2a6dc4eaf6d 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/27 16:00 linux-6.1.y d2a6dc4eaf6d 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/27 10:43 linux-6.1.y d2a6dc4eaf6d 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/26 20:02 linux-6.1.y 5302e81aa209 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/26 12:10 linux-6.1.y 5302e81aa209 2a509c27 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/25 19:43 linux-6.1.y 5302e81aa209 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/25 14:14 linux-6.1.y 5302e81aa209 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/25 12:24 linux-6.1.y 5302e81aa209 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/24 23:57 linux-6.1.y 5302e81aa209 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/24 20:33 linux-6.1.y 5302e81aa209 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/24 11:57 linux-6.1.y 75389113731b b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/24 07:31 linux-6.1.y 75389113731b b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/23 20:16 linux-6.1.y 75389113731b 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/22 12:57 linux-6.1.y a456e1743881 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/22 07:40 linux-6.1.y a456e1743881 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/21 20:23 linux-6.1.y a456e1743881 abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/21 17:01 linux-6.1.y a456e1743881 abdf9bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/21 07:02 linux-6.1.y a456e1743881 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/21 04:42 linux-6.1.y a456e1743881 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/20 18:21 linux-6.1.y a456e1743881 f49af159 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/20 17:02 linux-6.1.y a456e1743881 f49af159 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/19 22:39 linux-6.1.y a456e1743881 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/19 18:22 linux-6.1.y a456e1743881 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/19 01:23 linux-6.1.y 61fd484b2cf6 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/15 01:31 linux-6.1.y 61fd484b2cf6 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/14 22:52 linux-6.1.y 61fd484b2cf6 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/14 08:35 linux-6.1.y 61fd484b2cf6 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/14 07:00 linux-6.1.y 61fd484b2cf6 d624500f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/14 02:38 linux-6.1.y 61fd484b2cf6 55eda22f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/13 23:43 linux-6.1.y 61fd484b2cf6 55eda22f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/13 08:01 linux-6.1.y 61fd484b2cf6 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/13 03:19 linux-6.1.y 61fd484b2cf6 86081196 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/12 19:38 linux-6.1.y 61fd484b2cf6 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
2023/07/12 14:25 linux-6.1.y 61fd484b2cf6 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in get_vaddr_frames
* Struck through repros no longer work on HEAD.