syzbot


kernel BUG at kernel/sched/deadline.c:LINE!

Status: public: reported C repro on 2019/04/13 00:00
Reported-by: syzbot+aa596780bc201d212c59@syzkaller.appspotmail.com
First crash: 2368d, last: 1951d

Sample crash report:
------------[ cut here ]------------
kernel BUG at kernel/sched/deadline.c:1068!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 5751 Comm: syz-executor848 Not tainted 4.9.185+ #8
task: 00000000c24355c6 task.stack: 00000000cefb8d64
RIP: 0010:[<ffffffff811eccd2>]  [<0000000095e918f0>] enqueue_task_dl+0x772/0x2050 /kernel/sched/deadline.c:1068
RSP: 0018:ffff8801cee4f438  EFLAGS: 00010087
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8801ce4f08b0
RDX: 1ffff10039927365 RSI: ffff8801cc9397c0 RDI: ffff8801cc939b28
RBP: ffff8801cee4f4a8 R08: ffff88021fffd01c R09: ffff88021fffd008
R10: ffff88021fffd010 R11: 0000000000000001 R12: ffff8801cc9397c0
R13: 0000000000000078 R14: ffff8801db721000 R15: ffff8801cc939ad0
FS:  00007f59f99cf700(0000) GS:ffff8801db600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000004 CR3: 00000001c7dbd000 CR4: 00000000001606b0
Stack:
 ffffffff811893f4 ffff8801ce4f0000 0000000000000000 ffff8801cc9397d0
 0000000000000046 ffff8801db721018 ffff8801ce4f0000 0000000000000000
 ffff8801cc9397d0 ffffffff82a4c9e0 ffff8801cc9397c0 ffff8801db721000
Call Trace:
 [<00000000e6db0521>] enqueue_task /kernel/sched/core.c:763 [inline]
 [<00000000e6db0521>] activate_task+0x15a/0x290 /kernel/sched/core.c:781
 [<0000000091fc231b>] push_dl_task.part.0+0x30e/0x470 /kernel/sched/deadline.c:1638
 [<000000007c43fa38>] push_dl_task /kernel/sched/deadline.c:1578 [inline]
 [<000000007c43fa38>] push_dl_tasks+0x46/0x60 /kernel/sched/deadline.c:1654
 [<00000000b4a7aa92>] __balance_callback+0x9a/0xe0 /kernel/sched/core.c:2857
 [<0000000036acbea8>] balance_callback /kernel/sched/core.c:2865 [inline]
 [<0000000036acbea8>] __schedule+0x1118/0x1f10 /kernel/sched/core.c:3497
 [<00000000bde8777a>] schedule+0x92/0x1c0 /kernel/sched/core.c:3546
 [<0000000032830edc>] __rt_mutex_slowlock+0x99/0x290 /kernel/locking/rtmutex.c:1221
 [<000000009037d33a>] rt_mutex_slowlock+0x199/0x4c0 /kernel/locking/rtmutex.c:1293
 [<0000000083bfebee>] rt_mutex_fastlock /kernel/locking/rtmutex.c:1439 [inline]
 [<0000000083bfebee>] rt_mutex_lock+0x2d/0x40 /kernel/locking/rtmutex.c:1499
 [<0000000091c2d2cb>] process_notifier /drivers/misc/uid_sys_stats.c:636 [inline]
 [<0000000091c2d2cb>] process_notifier+0x96/0x670 /drivers/misc/uid_sys_stats.c:625
 [<00000000788acfcf>] notifier_call_chain+0xb4/0x1d0 /kernel/notifier.c:93
 [<0000000068b947b1>] __blocking_notifier_call_chain /kernel/notifier.c:317 [inline]
 [<0000000068b947b1>] __blocking_notifier_call_chain /kernel/notifier.c:304 [inline]
 [<0000000068b947b1>] blocking_notifier_call_chain /kernel/notifier.c:328 [inline]
 [<0000000068b947b1>] blocking_notifier_call_chain+0x80/0xa0 /kernel/notifier.c:325
 [<000000003e5ef9a7>] profile_task_exit+0x1f/0x30 /kernel/profile.c:140
 [<00000000d56296e0>] do_exit+0x90/0x2aa0 /kernel/exit.c:744
 [<00000000b1cd20b2>] do_group_exit+0x111/0x300 /kernel/exit.c:945
 [<00000000aafc2a64>] get_signal+0x377/0x1cb0 /kernel/signal.c:2382
 [<000000004d89b48b>] do_signal+0x9c/0x1920 /arch/x86/kernel/signal.c:812
 [<0000000010dd1070>] exit_to_usermode_loop+0x11c/0x160 /arch/x86/entry/common.c:159
 [<000000002a21959a>] prepare_exit_to_usermode /arch/x86/entry/common.c:195 [inline]
 [<000000002a21959a>] syscall_return_slowpath /arch/x86/entry/common.c:266 [inline]
 [<000000002a21959a>] do_syscall_64+0x3ab/0x5c0 /arch/x86/entry/common.c:293
 [<0000000051b636e5>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb
Code: 38 d0 7c 08 84 d2 0f 85 f6 11 00 00 41 83 bc 24 cc 03 00 00 01 0f 8e b5 f9 ff ff 4c 89 e6 4c 89 f7 e8 93 f4 ff ff e9 a5 f9 ff ff <0f> 0b 4c 89 ee 4c 89 ff e8 91 b4 ff ff 48 c7 c2 00 10 02 00 4d 
RIP  [<0000000095e918f0>] enqueue_task_dl+0x772/0x2050 /kernel/sched/deadline.c:1093
 RSP <ffff8801cee4f438>
---[ end trace 4f2e470cf4017c98 ]---

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/07/20 05:41 https://android.googlesource.com/kernel/common android-4.9 5e2c340821b1 1656845f .config console log report syz C ci-android-49-kasan-gce-root
2018/08/27 14:27 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 758cd203 .config console log report syz C ci-android-49-kasan-gce-root
2018/06/15 05:14 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/14 16:08 https://android.googlesource.com/kernel/common android-4.9 b7d377b4640b 27c5f59f .config console log report syz C ci-android-49-kasan-gce-root
2018/06/02 14:25 https://android.googlesource.com/kernel/common android-4.9 d7e64f8022e4 2f93b54f .config console log report syz C ci-android-49-kasan-gce-root
2018/10/24 14:17 https://android.googlesource.com/kernel/common android-4.9 b8bd066f13f4 a8292de9 .config console log report syz ci-android-49-kasan-gce-root
2018/05/30 15:22 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report syz ci-android-49-kasan-gce-root
2018/05/29 04:42 https://android.googlesource.com/kernel/common android-4.9 0cecdf831513 f48c20b8 .config console log report syz ci-android-49-kasan-gce-root
2019/03/22 20:09 https://android.googlesource.com/kernel/common android-4.9 270fbfb501f1 3361bde5 .config console log report ci-android-49-kasan-gce-root
2019/03/17 12:08 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba ba18afea .config console log report ci-android-49-kasan-gce-root
2019/02/22 09:11 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba 7ff74a98 .config console log report ci-android-49-kasan-gce-root
2019/01/10 08:23 https://android.googlesource.com/kernel/common android-4.9 ed0b11d22809 45c0c1b1 .config console log report ci-android-49-kasan-gce-root
2019/01/03 01:05 https://android.googlesource.com/kernel/common android-4.9 9f23a833fdcd 06a2b89f .config console log report ci-android-49-kasan-gce-root
2018/12/14 12:08 https://android.googlesource.com/kernel/common android-4.9 e9a34dcec994 7624ddd6 .config console log report ci-android-49-kasan-gce-root
2018/10/07 09:00 https://android.googlesource.com/kernel/common android-4.9 7bebf33f9d46 8b311eaf .config console log report ci-android-49-kasan-gce-root
2018/09/09 09:23 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 6b5120a4 .config console log report ci-android-49-kasan-gce-root
2018/08/28 15:06 https://android.googlesource.com/kernel/common android-4.9 09eb2ba5ed0c 7ef1de9e .config console log report ci-android-49-kasan-gce-root
2018/08/18 19:09 https://android.googlesource.com/kernel/common android-4.9 54068d61e7d8 db1858f6 .config console log report ci-android-49-kasan-gce-root
2018/05/30 18:57 https://android.googlesource.com/kernel/common android-4.9 7fd40752c316 2f93b54f .config console log report ci-android-49-kasan-gce-root
* Struck through repros no longer work on HEAD.