syzbot


general protection fault in get_futex_key

Status: closed as dup on 2020/04/08 15:14
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+a95c7753605c9d219466@syzkaller.appspotmail.com
First crash: 1719d, last: 1719d
Cause bisection: introduced by (bisect log) :
commit 4426e945df588f2878affddf88a51259200f7e29
Author: Peter Xu <peterx@redhat.com>
Date: Thu Apr 2 04:08:49 2020 +0000

  mm/gup: allow VM_FAULT_RETRY for multiple times

Crash: general protection fault in get_futex_key (log)
Repro: syz .config
  
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
WARNING in af_alg_make_sg crypto C done 13 1718d 1718d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in get_futex_key 3 (4) 2020/04/08 15:14

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017]
CPU: 1 PID: 8869 Comm: syz-executor.1 Not tainted 5.6.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:174 [inline]
RIP: 0010:get_futex_key+0x2cd/0x1670 kernel/futex.c:574
Code: 0b 00 31 ff 89 ee e8 e2 81 0b 00 85 ed 0f 88 65 10 00 00 e8 65 80 0b 00 4c 8b 74 24 60 49 8d 46 08 48 89 44 24 10 48 c1 e8 03 <80> 3c 18 00 0f 85 5d 11 00 00 4d 8b 66 08 31 ff 4c 89 f5 4d 89 e5
RSP: 0018:ffffc90005be78f0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: dffffc0000000000 RCX: ffffffff8167b0fe
RDX: 0000000000000000 RSI: ffffffff8167b10b RDI: 0000000000000005
RBP: 0000000000000000 R08: ffff8880a15185c0 R09: ffffed10142a30b9
R10: ffff8880a15185c7 R11: ffffed10142a30b8 R12: ffffc90005be7950
R13: 0000000000000000 R14: 0000000000000008 R15: 000000002000c000
FS:  00007fe0f408b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe0f4006db8 CR3: 00000000930c4000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 futex_lock_pi+0x19b/0x840 kernel/futex.c:2823
 do_futex+0xa14/0x1ad0 kernel/futex.c:3821
 __do_sys_futex kernel/futex.c:3869 [inline]
 __se_sys_futex kernel/futex.c:3837 [inline]
 __x64_sys_futex+0x376/0x4f0 kernel/futex.c:3837
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x45c889
Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe0f408ac78 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fe0f408b6d4 RCX: 000000000045c889
RDX: 0000000000000000 RSI: 0000800000000006 RDI: 000000002000cffc
RBP: 000000000076bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000000e8 R14: 00000000004c3730 R15: 000000000076bf0c
Modules linked in:
---[ end trace d1f294da398e534e ]---
RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline]
RIP: 0010:compound_head include/linux/page-flags.h:174 [inline]
RIP: 0010:get_futex_key+0x2cd/0x1670 kernel/futex.c:574
Code: 0b 00 31 ff 89 ee e8 e2 81 0b 00 85 ed 0f 88 65 10 00 00 e8 65 80 0b 00 4c 8b 74 24 60 49 8d 46 08 48 89 44 24 10 48 c1 e8 03 <80> 3c 18 00 0f 85 5d 11 00 00 4d 8b 66 08 31 ff 4c 89 f5 4d 89 e5
RSP: 0018:ffffc90005be78f0 EFLAGS: 00010202
RAX: 0000000000000002 RBX: dffffc0000000000 RCX: ffffffff8167b0fe
RDX: 0000000000000000 RSI: ffffffff8167b10b RDI: 0000000000000005
RBP: 0000000000000000 R08: ffff8880a15185c0 R09: ffffed10142a30b9
R10: ffff8880a15185c7 R11: ffffed10142a30b8 R12: ffffc90005be7950
R13: 0000000000000000 R14: 0000000000000008 R15: 000000002000c000
FS:  00007fe0f408b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f37738be000 CR3: 00000000930c4000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/08 01:30 upstream 763dede1b248 db9bcd4b .config console log report syz ci-upstream-kasan-gce-selinux-root
2020/04/07 23:24 upstream 763dede1b248 db9bcd4b .config console log report ci-upstream-kasan-gce-selinux-root
* Struck through repros no longer work on HEAD.