syzbot


BUG: pagefault on kernel address ADDR in non-whitelisted uaccess

Status: fixed on 2019/01/11 01:22
Subsystems: media
[Documentation on labels]
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com
Fix commit: 560ccb75c2ca media: vivid: free bitmap_cap when updating std/timings/etc.
First crash: 1975d, last: 1929d
Discussions (8)
Title Replies (including bot) Last reply
[PATCH 3.18 00/47] 3.18.132-stable review 52 (52) 2019/01/13 07:44
[PATCH 4.4 00/88] 4.4.170-stable review 102 (102) 2019/01/12 17:42
[PATCH 4.19 000/170] 4.19.14-stable review 194 (194) 2019/01/11 07:09
[PATCH 4.20 000/145] 4.20.1-stable review 164 (164) 2019/01/09 23:18
[PATCH 4.14 000/101] 4.14.92-stable review 130 (130) 2019/01/09 15:47
[PATCH 4.9 00/71] 4.9.149-stable review 85 (85) 2019/01/09 10:46
[PATCH] vivid: free bitmap_cap when updating std/timings/etc. 1 (1) 2018/11/09 13:37
BUG: pagefault on kernel address ADDR in non-whitelisted uaccess 0 (3) 2018/11/03 16:01

Sample crash report:
BUG: pagefault on kernel address 0xffffc90002559000 in non-whitelisted uaccess
BUG: unable to handle kernel paging request at ffffc90002559000
PGD 1da95a067 P4D 1da95a067 PUD 1da95b067 PMD 1bdd3d067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5666 Comm: syz-executor334 Not tainted 4.20.0-rc1+ #99
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:180
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83
RSP: 0018:ffff8801b5f7f680 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 000000000000ca80 RCX: 0000000000004a80
RDX: 000000000000ca80 RSI: ffffc90002559000 RDI: 00000000200080c0
RBP: ffff8801b5f7f6b8 R08: 0000000000000000 R09: 000000000000032a
R10: fffff520004abb4f R11: ffffc9000255da7f R12: 000000002000cb40
R13: 00000000200000c0 R14: ffffc90002551000 R15: 00007ffffffff000
FS:  00000000017d2880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002559000 CR3: 00000001b92cf000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 copy_to_user include/linux/uaccess.h:155 [inline]
 vidioc_g_fmt_vid_overlay+0x392/0x550 drivers/media/platform/vivid/vivid-vid-cap.c:1084
 v4l_g_fmt+0x2ad/0x640 drivers/media/v4l2-core/v4l2-ioctl.c:1489
 __video_do_ioctl+0x8b1/0x1050 drivers/media/v4l2-core/v4l2-ioctl.c:2853
 video_usercopy+0x5c1/0x1760 drivers/media/v4l2-core/v4l2-ioctl.c:3035
 video_ioctl2+0x2c/0x33 drivers/media/v4l2-core/v4l2-ioctl.c:3079
 v4l2_ioctl+0x154/0x1b0 drivers/media/v4l2-core/v4l2-dev.c:364
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696
 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443f49
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 7b d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc8ee2f888 EFLAGS: 00000217 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443f49
RDX: 00000000200000c0 RSI: 00000000c0d05604 RDI: 0000000000000004
RBP: 00000000006ce018 R08: 00000000004002e0 R09: 00000000004002e0
R10: 00000000004002e0 R11: 0000000000000217 R12: 0000000000401c50
R13: 0000000000401ce0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
CR2: ffffc90002559000
---[ end trace 8cf522765a92e8e0 ]---
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x20 arch/x86/lib/copy_user_64.S:180
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 1f 00 c3 0f 1f 80 00 00 00 00 0f 1f 00 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 1f 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 83
RSP: 0018:ffff8801b5f7f680 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 000000000000ca80 RCX: 0000000000004a80
RDX: 000000000000ca80 RSI: ffffc90002559000 RDI: 00000000200080c0
RBP: ffff8801b5f7f6b8 R08: 0000000000000000 R09: 000000000000032a
R10: fffff520004abb4f R11: ffffc9000255da7f R12: 000000002000cb40
R13: 00000000200000c0 R14: ffffc90002551000 R15: 00007ffffffff000
FS:  00000000017d2880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002559000 CR3: 00000001b92cf000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/11/05 21:45 upstream 651022382c7f 8bd6bd63 .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/11/05 01:14 upstream 4710e78940d8 8bd6bd63 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2018/11/04 15:48 upstream 71e56028173b 8bd6bd63 .config console log report syz C ci-upstream-kasan-gce-root
2018/11/03 16:00 upstream 5f21585384a4 8bd6bd63 .config console log report syz C ci-upstream-kasan-gce
2018/11/05 01:52 linux-next 25e9471b6a27 8bd6bd63 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/02 00:01 upstream 5b7449810ae6 1f38e9ae .config console log report syz ci-upstream-kasan-gce
2018/11/01 23:46 upstream 5b7449810ae6 1f38e9ae .config console log report syz ci-upstream-kasan-gce-root
2018/11/01 17:32 linux-next 4db9d11bcbef 1f38e9ae .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/12/17 05:29 upstream 7566ec393f41 def91db3 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/06 07:05 upstream d08970904582 764b42c4 .config console log report ci-upstream-kasan-gce-smack-root
2018/12/06 06:59 upstream d08970904582 764b42c4 .config console log report ci-upstream-kasan-gce-selinux-root
2018/12/05 07:27 upstream 0072a0c14d5b f162ad97 .config console log report ci-upstream-kasan-gce-root
2018/11/16 03:06 upstream da5322e65940 3a41052e .config console log report ci-upstream-kasan-gce
2018/11/10 21:41 upstream ab6e1f378f54 f3c4e618 .config console log report ci-upstream-kasan-gce-root
2018/11/01 02:46 upstream 5b7449810ae6 1f38e9ae .config console log report ci-upstream-kasan-gce-smack-root
2018/10/31 19:37 upstream 59fc453b21f7 89781090 .config console log report ci-upstream-kasan-gce-root
2018/11/19 10:46 linux-next 442b8cea2477 adf636a8 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.