syzbot


general protection fault in tss_update_io_bitmap

Status: fixed on 2019/12/13 00:31
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+81e6ff9d4cdb05fd4f5e@syzkaller.appspotmail.com
Fix commit: e3cb0c7102f0 x86/ioperm: Fix use of deprecated config option
First crash: 1619d, last: 1610d
Cause bisection: introduced by (bisect log) :
commit 111e7b15cf10f6e973ccf537c70c66a5de539060
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Tue Nov 12 20:40:33 2019 +0000

  x86/ioperm: Extend IOPL config to control ioperm() as well

Crash: general protection fault in tss_update_io_bitmap (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in tss_update_io_bitmap 3 (5) 2019/11/22 09:30
Last patch testing requests (1)
Created Duration User Patch Repo Result
2019/11/21 17:36 18m keescook@chromium.org git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git e3cb0c7102f04c83bf1a7cb1d052e92749310b46 OK

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8968 Comm: syz-executor566 Not tainted 5.4.0-rc8-next-20191119-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:tss_update_io_bitmap+0x138/0x590 arch/x86/kernel/process.c:395
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 9e 03 00 00 4c 89 ea 4c 8b 73 68 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 72 03 00 00 4d 3b 75 00 0f 85 35 02 00 00 48 8d
RSP: 0018:ffff8880a4effe80 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880ae80a000 RCX: ffffffff812a3228
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880ae80a068
RBP: ffff8880a4efff10 R08: 1ffff110126f5020 R09: ffffed10126f5021
R10: ffffed10126f5020 R11: ffff8880937a8107 R12: 1ffff110149dffd2
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000001e8f880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffff01c2038 CR3: 0000000099c07000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 prepare_exit_to_usermode arch/x86/entry/common.c:201 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x685/0x790 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4400f9
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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffff000a2d8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ac
RAX: 0000000000000000 RBX: 00000000004002c8 RCX: 00000000004400f9
RDX: 0000000000400a20 RSI: 0000000000000012 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000401980
R13: 0000000000401a10 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 6bbd68071a8b58ba ]---
RIP: 0010:tss_update_io_bitmap+0x138/0x590 arch/x86/kernel/process.c:395
Code: 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 9e 03 00 00 4c 89 ea 4c 8b 73 68 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 72 03 00 00 4d 3b 75 00 0f 85 35 02 00 00 48 8d
RSP: 0018:ffff8880a4effe80 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880ae80a000 RCX: ffffffff812a3228
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880ae80a068
RBP: ffff8880a4efff10 R08: 1ffff110126f5020 R09: ffffed10126f5021
R10: ffffed10126f5020 R11: ffff8880937a8107 R12: 1ffff110149dffd2
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000001e8f880(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffff01c2038 CR3: 0000000099c07000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (65):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/20 16:09 linux-next 5d1131b4d61e f4b7ed07 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/11/27 00:13 linux-next 131b7b67e6c2 1048481f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/26 13:58 linux-next 131b7b67e6c2 f746151a .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/26 12:22 linux-next 131b7b67e6c2 f746151a .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/26 03:13 linux-next c165016bac27 f746151a .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/25 15:00 linux-next c165016bac27 371caf77 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/25 06:36 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/25 01:30 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/25 00:03 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 21:53 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 20:22 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 18:23 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 17:17 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 15:43 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 13:08 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 11:00 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 09:48 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 08:30 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 04:40 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/24 00:16 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 23:55 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 23:48 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 20:31 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 19:05 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 15:53 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 15:51 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 15:42 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 11:43 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 11:40 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 10:01 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 07:32 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 05:55 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/23 00:43 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/22 23:53 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/22 19:19 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/22 18:12 linux-next b9d3d0140506 598ca6c8 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/22 01:53 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 13:26 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 08:15 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 08:00 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 07:34 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 06:44 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 06:20 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 01:00 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/21 00:09 linux-next 1fef9976397f 8098ea0f .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/20 18:33 linux-next 5d1131b4d61e f4b7ed07 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/20 15:44 linux-next 5d1131b4d61e f4b7ed07 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/20 01:34 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/20 01:33 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/19 18:45 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/19 18:00 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/19 17:59 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/19 17:36 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/19 16:56 linux-next 5a6fcbeabe3e 5bc70212 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/18 04:20 linux-next 5a6fcbeabe3e d5696d51 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/17 10:36 linux-next 5a6fcbeabe3e d5696d51 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/17 09:12 linux-next 5a6fcbeabe3e d5696d51 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/11/17 04:47 linux-next 5a6fcbeabe3e d5696d51 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.