linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG: pagefault on kernel address ADDR in non-whitelisted uaccess
@ 2018-11-01 16:52 syzbot
  2018-11-01 17:33 ` syzbot
  2018-11-03 16:01 ` syzbot
  0 siblings, 2 replies; 3+ messages in thread
From: syzbot @ 2018-11-01 16:52 UTC (permalink / raw)
  To: hverkuil, linux-kernel, linux-media, mchehab, syzkaller-bugs

Hello,

syzbot found the following crash on:

HEAD commit:    59fc453b21f7 Merge branch 'akpm' (patches from Andrew)
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=110e6633400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=ea045471e4c756e8
dashboard link: https://syzkaller.appspot.com/bug?extid=0cc8e3cc63ca373722c6
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com

BUG: pagefault on kernel address 0xffffc9000efe5000 in non-whitelisted  
uaccess
kobject: 'ip6_vti0' (000000003ce0d4aa): calling ktype release
BUG: unable to handle kernel paging request at ffffc9000efe5000
device nr0\x01 entered promiscuous mode
PGD 1da948067 P4D 1da948067 PUD 1da949067 PMD 1d214e067 PTE 0
kobject: 'ip6_vti0': free name
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 23205 Comm: syz-executor3 Not tainted 4.19.0+ #313
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
kobject: 'loop4' (0000000033c61cb9): kobject_uevent_env
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:ffff880194bc7688 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000000fd200 RCX: 00000000000f5200
RDX: 00000000000fd200 RSI: ffffc9000efe5000 RDI: 00000000200080c0
RBP: ffff880194bc76c0 R08: 0000000000000000 R09: 0000000000003f48
kobject: 'loop4' (0000000033c61cb9): fill_kobj_path: path  
= '/devices/virtual/block/loop4'
R10: fffff52001e1b43f R11: ffffc9000f0da1ff R12: 00000000200fd2c0
R13: 00000000200000c0 R14: ffffc9000efdd000 R15: 00007ffffffff000
FS:  00007fb9545c0700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000efe5000 CR3: 00000001b7ae7000 CR4: 00000000001406f0
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:1074
  v4l_g_fmt+0x2ad/0x640 drivers/media/v4l2-core/v4l2-ioctl.c:1487
  __video_do_ioctl+0x519/0xf00 drivers/media/v4l2-core/v4l2-ioctl.c:2833
  video_usercopy+0x5c1/0x1760 drivers/media/v4l2-core/v4l2-ioctl.c:3013
  video_ioctl2+0x2c/0x33 drivers/media/v4l2-core/v4l2-ioctl.c:3057
  v4l2_ioctl+0x154/0x1b0 drivers/media/v4l2-core/v4l2-dev.c:364
  vfs_ioctl fs/ioctl.c:46 [inline]
  file_ioctl fs/ioctl.c:501 [inline]
  do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685
  ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702
  __do_sys_ioctl fs/ioctl.c:709 [inline]
  __se_sys_ioctl fs/ioctl.c:707 [inline]
  __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707
  do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
  entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x457569
Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fb9545bfc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
RDX: 00000000200000c0 RSI: 00000000c0d05604 RDI: 0000000000000003
RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb9545c06d4
R13: 00000000004c1acf R14: 00000000004d29c8 R15: 00000000ffffffff
Modules linked in:
CR2: ffffc9000efe5000
---[ end trace a02231e0facef4c4 ]---
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:ffff880194bc7688 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000000fd200 RCX: 00000000000f5200
RDX: 00000000000fd200 RSI: ffffc9000efe5000 RDI: 00000000200080c0
RBP: ffff880194bc76c0 R08: 0000000000000000 R09: 0000000000003f48
R10: fffff52001e1b43f R11: ffffc9000f0da1ff R12: 00000000200fd2c0
R13: 00000000200000c0 R14: ffffc9000efdd000 R15: 00007ffffffff000
FS:  00007fb9545c0700(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc9000efe5000 CR3: 00000001b7ae7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@googlegroups.com.

syzbot will keep track of this bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with  
syzbot.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BUG: pagefault on kernel address ADDR in non-whitelisted uaccess
  2018-11-01 16:52 BUG: pagefault on kernel address ADDR in non-whitelisted uaccess syzbot
@ 2018-11-01 17:33 ` syzbot
  2018-11-03 16:01 ` syzbot
  1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2018-11-01 17:33 UTC (permalink / raw)
  To: hverkuil, linux-kernel, linux-media, mchehab, syzkaller-bugs

syzbot has found a reproducer for the following crash on:

HEAD commit:    4db9d11bcbef Add linux-next specific files for 20181101
git tree:       linux-next
console output: https://syzkaller.appspot.com/x/log.txt?x=13fa9e05400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=2a22859d870756c1
dashboard link: https://syzkaller.appspot.com/bug?extid=0cc8e3cc63ca373722c6
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=11227e05400000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com

BUG: pagefault on kernel address 0xffffc90003dbe000 in non-whitelisted  
uaccess
BUG: unable to handle kernel paging request at ffffc90003dbe000
PGD 1da948067 P4D 1da948067 PUD 1da949067 PMD 1d884f067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 12256 Comm: syz-executor3 Not tainted 4.19.0-next-20181101+ #103
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:ffff8801a779f680 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000000fd200 RCX: 00000000000f5200
RDX: 00000000000fd200 RSI: ffffc90003dbe000 RDI: 00000000200080c0
RBP: ffff8801a779f6b8 R08: 0000000000000000 R09: 0000000000003f48
R10: fffff520007d663f R11: ffffc90003eb31ff R12: 00000000200fd2c0
R13: 00000000200000c0 R14: ffffc90003db6000 R15: 00007ffffffff000
FS:  00007f6d98b26700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90003dbe000 CR3: 00000001d794d000 CR4: 00000000001406e0
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/0x1750 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:0x457569
Code: fd b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f6d98b25c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569
RDX: 00000000200000c0 RSI: 00000000c0d05604 RDI: 0000000000000012
RBP: 000000000072c220 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f6d98b266d4
R13: 00000000004c1acf R14: 00000000004d29c8 R15: 00000000ffffffff
Modules linked in:
CR2: ffffc90003dbe000
---[ end trace faa0b92998172ee0 ]---
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:ffff8801a779f680 EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000000fd200 RCX: 00000000000f5200
RDX: 00000000000fd200 RSI: ffffc90003dbe000 RDI: 00000000200080c0
RBP: ffff8801a779f6b8 R08: 0000000000000000 R09: 0000000000003f48
R10: fffff520007d663f R11: ffffc90003eb31ff R12: 00000000200fd2c0
R13: 00000000200000c0 R14: ffffc90003db6000 R15: 00007ffffffff000
FS:  00007f6d98b26700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90003dbe000 CR3: 00000001d794d000 CR4: 00000000001406e0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: BUG: pagefault on kernel address ADDR in non-whitelisted uaccess
  2018-11-01 16:52 BUG: pagefault on kernel address ADDR in non-whitelisted uaccess syzbot
  2018-11-01 17:33 ` syzbot
@ 2018-11-03 16:01 ` syzbot
  1 sibling, 0 replies; 3+ messages in thread
From: syzbot @ 2018-11-03 16:01 UTC (permalink / raw)
  To: hverkuil, linux-kernel, linux-media, mchehab, syzkaller-bugs

syzbot has found a reproducer for the following crash on:

HEAD commit:    5f21585384a4 Merge tag 'for-linus-20181102' of git://git.k..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=103c9825400000
kernel config:  https://syzkaller.appspot.com/x/.config?x=9384ecb1c973baed
dashboard link: https://syzkaller.appspot.com/bug?extid=0cc8e3cc63ca373722c6
compiler:       gcc (GCC) 8.0.1 20180413 (experimental)
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=112736eb400000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=14e2d82b400000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+0cc8e3cc63ca373722c6@syzkaller.appspotmail.com

sshd (5636) used greatest stack depth: 15744 bytes left
BUG: pagefault on kernel address 0xffffc90002569000 in non-whitelisted  
uaccess
BUG: unable to handle kernel paging request at ffffc90002569000
PGD 1da948067 P4D 1da948067 PUD 1da949067 PMD 1c0211067 PTE 0
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5650 Comm: syz-executor571 Not tainted 4.19.0+ #317
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:ffff8801d8fcf680 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 000000000000ca80 RCX: 0000000000004a80
RDX: 000000000000ca80 RSI: ffffc90002569000 RDI: 00000000200080c0
RBP: ffff8801d8fcf6b8 R08: 0000000000000000 R09: 000000000000032a
R10: fffff520004adb4f R11: ffffc9000256da7f R12: 000000002000cb40
R13: 00000000200000c0 R14: ffffc90002561000 R15: 00007ffffffff000
FS:  00000000017ca880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002569000 CR3: 00000001ba5d7000 CR4: 00000000001406f0
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:00007fffbe4a44c8 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: ffffc90002569000
---[ end trace e294d16803c6d199 ]---
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:ffff8801d8fcf680 EFLAGS: 00010202
RAX: 0000000000000000 RBX: 000000000000ca80 RCX: 0000000000004a80
RDX: 000000000000ca80 RSI: ffffc90002569000 RDI: 00000000200080c0
RBP: ffff8801d8fcf6b8 R08: 0000000000000000 R09: 000000000000032a
R10: fffff520004adb4f R11: ffffc9000256da7f R12: 000000002000cb40
R13: 00000000200000c0 R14: ffffc90002561000 R15: 00007ffffffff000
FS:  00000000017ca880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90002569000 CR3: 00000001ba5d7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-03 16:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 16:52 BUG: pagefault on kernel address ADDR in non-whitelisted uaccess syzbot
2018-11-01 17:33 ` syzbot
2018-11-03 16:01 ` syzbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).