syzbot


WARNING in enqueue_task_dl

Status: fixed on 2020/08/01 00:48
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+119ba87189432ead09b4@syzkaller.appspotmail.com
Fix commit: 740797ce3a12 sched/core: Fix PI boosting between RT and DEADLINE tasks
First crash: 1985d, last: 1407d
Cause bisection: introduced by (bisect log) :
commit 7c80cfc99b7bfdc92cee26f8008859f326f4a37f
Author: Peter Zijlstra <peterz@infradead.org>
Date: Sat May 6 14:03:17 2017 +0000

  sched/fair: Clean up calc_cfs_shares()

Crash: WARNING in get_pi_state (log)
Repro: C syz .config
  
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 4.19 000/131] 4.19.131-rc1 review 148 (148) 2020/07/05 13:30
[PATCH 5.7 000/265] 5.7.7-rc1 review 280 (280) 2020/07/01 15:34
[PATCH 4.9 000/191] 4.9.229-rc1 review 199 (199) 2020/07/01 06:45
[PATCH 5.4 000/178] 5.4.50-rc1 review 182 (182) 2020/06/30 17:22
[PATCH 4.14 00/78] 4.14.186-rc1 review 83 (83) 2020/06/30 17:21
[PATCH 4.4 000/135] 4.4.229-rc1 review 140 (140) 2020/06/30 17:20
WARNING in enqueue_task_dl 15 (18) 2020/06/23 08:48
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 WARNING in enqueue_task_dl syz 2 1941d 1841d 0/1 public: reported syz repro on 2019/04/10 16:04
linux-4.14 WARNING in enqueue_task_dl C inconclusive 1 1425d 1740d 0/1 upstream: reported C repro on 2019/07/20 08:10
linux-4.19 WARNING in enqueue_task_dl syz done 1 1411d 1740d 1/1 fixed on 2020/07/13 20:03
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2020/06/14 22:37 19m (2) bisect fix upstream job log (0) log
2020/05/15 19:03 19m bisect fix upstream job log (0) log
2020/04/15 18:36 19m bisect fix upstream job log (0) log
2020/03/16 15:00 26m bisect fix upstream job log (0) log
2020/02/08 04:08 20m bisect fix upstream job log (0) log
2020/01/08 17:06 20m bisect fix upstream job log (0) log
2019/12/08 15:48 20m bisect fix upstream job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 9877 at kernel/sched/deadline.c:627 setup_new_dl_entity /kernel/sched/deadline.c:627 [inline]
WARNING: CPU: 1 PID: 9877 at kernel/sched/deadline.c:627 enqueue_dl_entity /kernel/sched/deadline.c:1428 [inline]
WARNING: CPU: 1 PID: 9877 at kernel/sched/deadline.c:627 enqueue_task_dl.cold+0x103/0x4c2 /kernel/sched/deadline.c:1499
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 9877 Comm: syz-executor679 Not tainted 5.2.0+ #63
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack /lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 /lib/dump_stack.c:113
 panic+0x2dc/0x755 /kernel/panic.c:219
 __warn.cold+0x20/0x4c /kernel/panic.c:576
 report_bug+0x263/0x2b0 /lib/bug.c:186
 fixup_bug /arch/x86/kernel/traps.c:179 [inline]
 fixup_bug /arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 /arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 /arch/x86/kernel/traps.c:291
 invalid_op+0x14/0x20 /arch/x86/entry/entry_64.S:1008
RIP: 0010:setup_new_dl_entity /kernel/sched/deadline.c:627 [inline]
RIP: 0010:enqueue_dl_entity /kernel/sched/deadline.c:1428 [inline]
RIP: 0010:enqueue_task_dl.cold+0x103/0x4c2 /kernel/sched/deadline.c:1499
Code: d0 48 8b 55 c8 4c 8b 4d b8 e9 64 7a ff ff 48 c7 c7 e0 a5 8b 87 4c 89 4d b0 48 89 55 b8 4c 89 45 c8 4c 89 55 d0 e8 6e 76 06 00 <0f> 0b 4c 8b 55 d0 b8 ff ff 37 00 48 c1 e0 2a 4c 8b 45 c8 48 8b 55
RSP: 0018:ffff8880a0da7c88 EFLAGS: 00010082
RAX: 0000000000000024 RBX: ffffffff89a529b4 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815c3a26 RDI: ffffed10141b4f83
RBP: ffff8880a0da7d00 R08: 0000000000000024 R09: ffffed1015d260b1
R10: ffffed1015d260b0 R11: ffff8880ae930587 R12: ffff8880972402c0
R13: ffff8880ae935540 R14: ffff8880ae935540 R15: 0000000000000001
 enqueue_task+0xb3/0x370 /kernel/sched/core.c:1181
 __sched_setscheduler+0xc58/0x2030 /kernel/sched/core.c:4783
 sched_setattr /kernel/sched/core.c:4841 [inline]
 __do_sys_sched_setattr /kernel/sched/core.c:5027 [inline]
 __se_sys_sched_setattr /kernel/sched/core.c:5000 [inline]
 __x64_sys_sched_setattr+0x1a1/0x280 /kernel/sched/core.c:5000
 do_syscall_64+0xfd/0x6a0 /arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446769
Code: e8 bc b4 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 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 eb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f0beebf4db8 EFLAGS: 00000246 ORIG_RAX: 000000000000013a
RAX: ffffffffffffffda RBX: 00000000006dbc38 RCX: 0000000000446769
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00000000006dbc30 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc3c
R13: 00007fff5677601f R14: 00007f0beebf59c0 R15: 0000000000000002

======================================================

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/20 07:51 upstream abdfd52a295f 1656845f .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/07/20 04:45 upstream 3bfe1fc46794 1656845f .config console log report syz C ci-upstream-kasan-gce-root
2019/07/20 04:06 upstream 3bfe1fc46794 1656845f .config console log report syz C ci-upstream-kasan-gce-smack-root
2018/12/31 15:01 upstream 195303136f19 2b42fdc8 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/07/20 07:04 linux-next 6d21a41b7b1f 1656845f .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/12/31 14:51 upstream 195303136f19 2b42fdc8 .config console log report syz ci-upstream-kasan-gce-root
2018/12/31 14:35 upstream 195303136f19 2b42fdc8 .config console log report syz ci-upstream-kasan-gce-smack-root
2018/11/17 18:23 upstream 1ce80e0fe98e b08ee62a .config console log report syz ci-upstream-kasan-gce-smack-root
2018/11/17 17:06 upstream 1ce80e0fe98e b08ee62a .config console log report syz ci-upstream-kasan-gce-selinux-root
2018/11/17 16:24 upstream 1ce80e0fe98e b08ee62a .config console log report syz ci-upstream-kasan-gce-root
2018/12/31 14:50 linux-next 6a1d293238c1 2b42fdc8 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/17 17:09 linux-next 442b8cea2477 b08ee62a .config console log report syz ci-upstream-linux-next-kasan-gce-root
2018/11/17 15:17 upstream 1ce80e0fe98e b08ee62a .config console log report ci-upstream-kasan-gce-root
* Struck through repros no longer work on HEAD.