syzbot


general protection fault in do_syscall_64 (2)

Status: fixed on 2021/09/26 12:12
Reported-by: syzbot+1b145eddc8ee597b8c4a@syzkaller.appspotmail.com
Fix commit: 6be10fb6c143 fbmem: add margin check to fb_check_caps()
First crash: 1517d, last: 1183d
Fix bisection: fixed by (bisect log) :
commit 6be10fb6c143608a7c7ab3901a096e272233bf64
Author: George Kennedy <george.kennedy@oracle.com>
Date: Tue Jul 7 19:26:03 2020 +0000

  fbmem: add margin check to fb_check_caps()

  
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in do_syscall_64 kernel C done error 4 1668d 1698d 0/28 closed as dup on 2020/08/15 11:55
linux-4.19 general protection fault in do_syscall_64 (3) 1 1031d 1031d 0/1 auto-closed as invalid on 2022/05/25 11:05
linux-4.19 general protection fault in do_syscall_64 6 1648d 1684d 0/1 auto-closed as invalid on 2020/09/15 12:00
linux-4.14 general protection fault in do_syscall_64 1 1850d 1850d 0/1 auto-closed as invalid on 2020/02/26 05:52
linux-4.14 general protection fault in do_syscall_64 (2) syz error 8 996d 1647d 0/1 upstream: reported syz repro on 2020/05/18 23:19
Fix bisection attempts (12)
Created Duration User Patch Repo Result
2021/09/24 18:46 4h08m bisect fix linux-4.19.y OK (1) job log
2021/08/25 18:17 28m bisect fix linux-4.19.y OK (0) job log log
2021/07/26 16:29 28m bisect fix linux-4.19.y OK (0) job log log
2021/06/26 15:58 30m bisect fix linux-4.19.y OK (0) job log log
2021/05/27 15:22 35m bisect fix linux-4.19.y OK (0) job log log
2021/04/27 05:21 32m bisect fix linux-4.19.y OK (0) job log log
2021/03/27 12:19 25m bisect fix linux-4.19.y OK (0) job log log
2021/02/25 07:38 27m bisect fix linux-4.19.y OK (0) job log log
2021/01/24 18:20 25m bisect fix linux-4.19.y OK (0) job log log
2020/12/25 17:50 26m bisect fix linux-4.19.y OK (0) job log log
2020/11/25 17:23 27m bisect fix linux-4.19.y OK (0) job log log
2020/10/26 16:19 24m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
Bluetooth: hci0: command 0x0409 tx timeout
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: 6496 Comm: syz-executor.0 Not tainted 4.19.147-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
kasan: CONFIG_KASAN_INLINE enabled
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:317 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:84 [inline]
RIP: 0010:addr_limit_user_check include/linux/syscalls.h:262 [inline]
RIP: 0010:prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
RIP: 0010:do_syscall_64+0x218/0x670 arch/x86/entry/common.c:296
kasan: GPF could be caused by NULL-ptr deref or user memory access
Code: ce 1c 71 00 fa 66 0f 1f 44 00 00 65 48 8b 1c 25 40 ee 01 00 e8 29 9b 76 00 48 89 da 48 b8 00 00 00 00 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 d3 03 00 00 4c 8b 23 31 ff 49 c1 ec 1f 41 83 e4
RSP: 0018:ffff8880890fff28 EFLAGS: 00010802
RAX: 0000000000000000 RBX: ffff8880a4296200 RCX: 0000000000000000
RDX: 1ffff11014852c40 RSI: 0000000000000000 RDI: ffff8880a4296a4c
RBP: ffff8880890fff58 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff896389b8 R14: 0000000000000000 R15: 0000000000000000
FS:  00000000029f5940(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004ebb70 CR3: 000000008bec8000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c641
Code: 75 14 b8 23 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 64 cd fb ff c3 48 83 ec 08 e8 ea 46 00 00 48 89 04 24 b8 23 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 33 47 00 00 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007ffda5a15380 EFLAGS: 00000293 ORIG_RAX: 0000000000000023
RAX: 0000000000000000 RBX: 000000000003a654 RCX: 000000000045c641
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007ffda5a15390
RBP: 000000000000002b R08: 0000000000000000 R09: 00000000029f5940
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000005
R13: 00007ffda5a153e0 R14: 000000000003a620 R15: 00007ffda5a153f0
Modules linked in:
---[ end trace 584c556a8429ef7d ]---
general protection fault: 0000 [#2] PREEMPT SMP KASAN
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:317 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:84 [inline]
RIP: 0010:addr_limit_user_check include/linux/syscalls.h:262 [inline]
RIP: 0010:prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
RIP: 0010:do_syscall_64+0x218/0x670 arch/x86/entry/common.c:296
CPU: 1 PID: 6807 Comm: syz-executor.0 Tainted: G      D           4.19.147-syzkaller #0
Code: ce 1c 71 00 fa 66 0f 1f 44 00 00 65 48 8b 1c 25 40 ee 01 00 e8 29 9b 76 00 48 89 da 48 b8 00 00 00 00 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 d3 03 00 00 4c 8b 23 31 ff 49 c1 ec 1f 41 83 e4
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RSP: 0018:ffff8880890fff28 EFLAGS: 00010802
RIP: 0010:constant_test_bit arch/x86/include/asm/bitops.h:317 [inline]
RIP: 0010:test_ti_thread_flag include/linux/thread_info.h:84 [inline]
RIP: 0010:addr_limit_user_check include/linux/syscalls.h:262 [inline]
RIP: 0010:prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline]
RIP: 0010:syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
RIP: 0010:do_syscall_64+0x218/0x670 arch/x86/entry/common.c:296
RAX: 0000000000000000 RBX: ffff8880a4296200 RCX: 0000000000000000
Code: ce 1c 71 00 fa 66 0f 1f 44 00 00 65 48 8b 1c 25 40 ee 01 00 e8 29 9b 76 00 48 89 da 48 b8 00 00 00 00 00 00 00 00 48 c1 ea 03 <80> 3c 02 00 0f 85 d3 03 00 00 4c 8b 23 31 ff 49 c1 ec 1f 41 83 e4
RDX: 1ffff11014852c40 RSI: 0000000000000000 RDI: ffff8880a4296a4c
RSP: 0018:ffff88809e9aff28 EFLAGS: 00010802
RBP: ffff8880890fff58 R08: 0000000000000000 R09: 0000000000000000
RAX: 0000000000000000 RBX: ffff88809dcf8700 RCX: 1ffffffff142e4f8
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
RDX: 1ffff11013b9f0e0 RSI: ffffffff817741b4 RDI: 0000000000000000
R13: ffffffff896389b8 R14: 0000000000000000 R15: 0000000000000000
RBP: ffff88809e9aff58 R08: 0000000000000000 R09: 0000000000000000
FS:  00000000029f5940(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
R13: ffffffff896389b8 R14: 0000000000000000 R15: 0000000000000000
FS:  00000000029f5940(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CR2: 00000000004ebb70 CR3: 000000008bec8000 CR4: 00000000001406f0
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
CR2: 00007f29896fddb8 CR3: 000000008f7ff000 CR4: 00000000001406e0
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/26 16:19 linux-4.19.y d09b80172c22 2d5ea0cb .config console log report syz ci2-linux-4-19
2020/09/26 12:52 linux-4.19.y d09b80172c22 2d5ea0cb .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.