syzbot


WARNING in get_pi_state

Status: fixed on 2017/11/11 01:37
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+2af19c9e1ffe4d4ee1d16c56ae7580feaee75765@syzkaller.appspotmail.com
Fix commit: 153fbd1226fb futex: Fix more put_pi_state() vs. exit_pi_state_list() races
First crash: 2642d, last: 2567d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
KASAN: use-after-free Read in perf_trace_lock_acquire kernel 922 2558d 2569d 0/28 closed as dup on 2017/10/31 13:14

Sample crash report:
WARNING: CPU: 1 PID: 2367 at kernel/futex.c:818 get_pi_state+0x15b/0x190 kernel/futex.c:818
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 2367 Comm: syzkaller243841 Not tainted 4.14.0-rc7+ #157
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:16 [inline]
 dump_stack+0x194/0x257 lib/dump_stack.c:52
 panic+0x1e4/0x417 kernel/panic.c:181
 __warn+0x1c4/0x1d9 kernel/panic.c:542
 report_bug+0x211/0x2d0 lib/bug.c:183
 fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:178
 do_trap_no_signal arch/x86/kernel/traps.c:212 [inline]
 do_trap+0x260/0x390 arch/x86/kernel/traps.c:261
 do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:298
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:311
 invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905
RIP: 0010:get_pi_state+0x15b/0x190 kernel/futex.c:818
RSP: 0018:ffff8801cb6977a8 EFLAGS: 00010097
RAX: ffff8801d6670680 RBX: 0000000000000000 RCX: 1ffff100396d2efa
RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffff8801d841d940
RBP: ffff8801cb697838 R08: 0000000000000001 R09: 1ffff100396d2ee7
R10: ffff8801cb697700 R11: 0000000000000002 R12: 1ffff100396d2ef6
R13: ffff8801d841d940 R14: 1ffff100396d2efa R15: ffff8801d841d9f0
 exit_pi_state_list+0x556/0x7a0 kernel/futex.c:932
 mm_release+0x46d/0x590 kernel/fork.c:1148
 exit_mm kernel/exit.c:499 [inline]
 do_exit+0x481/0x1ad0 kernel/exit.c:852
 SYSC_exit kernel/exit.c:937 [inline]
 SyS_exit+0x22/0x30 kernel/exit.c:935
 entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x40468e
RSP: 002b:00007ffb3a3e8d20 EFLAGS: 00000246 ORIG_RAX: 000000000000003c
RAX: ffffffffffffffda RBX: 00007ffb3a3e9700 RCX: 000000000040468e
RDX: 000000000000003c RSI: 00000000007fb000 RDI: 0000000000000000
RBP: 0000000000000082 R08: 0000000020048000 R09: 0000000000000000
R10: 000000002000b000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe39110ebf R14: 00007ffb3a3e99c0 R15: 0000000000000000

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/11/01 19:27 upstream 7c404c626759 e511d9f8 .config console log report syz C ci-upstream-kasan-gce
2017/10/26 11:42 linux-next 36ef71cae353 e511d9f8 .config console log report syz C ci-upstream-next-kasan-gce
2017/10/01 01:36 mmots c0232cb3af70 c26ea367 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/09/29 09:24 mmots 8fd0520d9cec c26ea367 .config console log report syz C ci-upstream-mmots-kasan-gce
2017/09/28 02:48 linux-next 045c5205823f c26ea367 .config console log report syz C ci-upstream-next-kasan-gce
2017/09/27 17:24 linux-next 045c5205823f c26ea367 .config console log report syz C ci-upstream-next-kasan-gce
2017/09/30 07:20 upstream 99637e4268ea c26ea367 .config console log report syz ci-upstream-kasan-gce
2017/08/18 11:29 upstream 99f781b1bfc1 172189e9 .config console log report syz ci-upstream-kasan-gce
2017/09/21 07:01 upstream c52f56a69d10 653022e6 .config console log report syz ci-upstream-kasan-gce-386
2017/10/26 08:58 linux-next 36ef71cae353 e511d9f8 .config console log report syz skylake-linux-next-kasan-qemu
2017/10/01 18:11 mmots c0232cb3af70 c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/10/01 02:04 linux-next 1418b852174a c26ea367 .config console log report syz ci-upstream-next-kasan-gce
2017/09/30 20:33 mmots c0232cb3af70 c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/09/30 02:26 mmots c0232cb3af70 c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/09/29 15:09 mmots 8fd0520d9cec c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/09/29 12:04 mmots 8fd0520d9cec c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/09/28 21:07 mmots da2915ba6bbf c26ea367 .config console log report syz ci-upstream-mmots-kasan-gce
2017/09/06 23:59 mmots c97efd59aceb 0ed1da4a .config console log report syz ci-upstream-mmots-kasan-gce
2017/10/22 05:19 upstream 0787643a5f6a 4d9c0713 .config console log report ci-upstream-kasan-gce
2017/09/07 15:13 upstream 3b9f8ed25dbe 0ed1da4a .config console log report ci-upstream-kasan-gce
2017/09/07 07:38 upstream ec3604c7a5aa 0ed1da4a .config console log report ci-upstream-kasan-gce
2017/08/18 20:21 upstream 04d49f3638d0 41bbf437 .config console log report ci-upstream-kasan-gce
2017/10/06 15:12 upstream 7a92616c0bac c26ea367 .config console log report ci-upstream-kasan-gce-386
2017/11/01 03:48 mmots 0f611fb6dcc0 e0a2b195 .config console log report ci-upstream-mmots-kasan-gce
2017/10/29 14:33 mmots 0f611fb6dcc0 e0a2b195 .config console log report ci-upstream-mmots-kasan-gce
2017/10/19 22:17 linux-next 36ef71cae353 e511d9f8 .config console log report ci-upstream-next-kasan-gce
2017/10/18 00:14 mmots 4eb4a4191fe5 441d64d9 .config console log report ci-upstream-mmots-kasan-gce
2017/10/17 14:19 mmots 4eb4a4191fe5 441d64d9 .config console log report ci-upstream-mmots-kasan-gce
2017/10/15 02:57 mmots 4eb4a4191fe5 441d64d9 .config console log report ci-upstream-mmots-kasan-gce
2017/10/12 15:45 mmots 4eb4a4191fe5 441d64d9 .config console log report ci-upstream-mmots-kasan-gce
2017/10/09 00:55 mmots fb686cb13e51 c26ea367 .config console log report ci-upstream-mmots-kasan-gce
2017/09/18 22:37 linux-next fc2e8b1a47c1 2bab8ad8 .config console log report skylake-linux-next-kasan-qemu
2017/09/13 18:10 linux-next 6f20b7a58cb9 96b8e399 .config console log report skylake-linux-next-kasan-qemu
2017/09/13 11:30 linux-next 6f20b7a58cb9 96b8e399 .config console log report skylake-linux-next-kasan-qemu
2017/09/12 23:01 linux-next 0d71e2d4aa14 0bd6a0a5 .config console log report skylake-linux-next-kasan-qemu
2017/09/07 06:05 mmots f7e207ece64a 0ed1da4a .config console log report ci-upstream-mmots-kasan-gce
2017/08/31 23:37 linux-next e8b684315214 4ccdd782 .config console log report ci-upstream-next-kasan-gce
2017/08/25 04:21 linux-next 9506597de2cd 3f1aca48 .config console log report ci-upstream-next-kasan-gce
* Struck through repros no longer work on HEAD.