WARNING in posix_cpu_timer_del

Status: closed as invalid on 2019/08/31 03:15
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+654f89dafed9092dac4d@syzkaller.appspotmail.com
First crash: 2643d, last: 2638d
Cause bisection: the cause commit could be any of (bisect log):
commit fc0a4de8e668c152a7622a88c96f0745724adb4a
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 11:25:53 2019 +0000

  posix-cpu-timers: Provide array based access to expiry cache

commit 4cc121376363c7373928fe24e0351150c53c1075
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 09:17:03 2019 +0000

  posix-cpu-timers: Move expiry cache into struct posix_cputimers

commit 6f440f889147dda7cddfb3f803d6d54b12e87204
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Fri Aug 2 13:37:59 2019 +0000

  posix-cpu-timers: Simplify timer queueing

commit 2fcd363a1a55ba86dde18d2cf211526c055d12b4
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 11:01:01 2019 +0000

  sched: Move struct task_cputime to types.h

commit 95c0e29afa2a9737c8aa9c704f0772a58c733a43
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 12:54:58 2019 +0000

  posix-cpu-timers: Simplify set_process_cpu_timer()

commit 05c191a0cab4b73c3a6eebba806d0ce34f4181d3
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 07:46:55 2019 +0000

  posix-cpu-timers: Create a container struct

commit ca2258d8695a89da2a743d1a25f72fd6fdf404e2
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 13:14:40 2019 +0000

  posix-cpu-timers: Switch check_*_timers() to array cache

commit 080b31145ed2af04abf562a6a9f189c71d8e86e9
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 14:31:39 2019 +0000

  posix-cpu-timers: Remove the odd field rename defines

commit 4663b7f47d8eefea4621dddae1ee2fe276a1baf1
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 12:06:19 2019 +0000

  posix-cpu-timers: Move prof/virt_ticks into caller

commit c663b713eda54ac967f6475a80e973e3787c1ec6
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 12:00:41 2019 +0000

  posix-cpu-timers: Sample task times once in expiry check

commit c96d6e594d1b91434bf8a2ff64ecbf5e156c48da
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 09:06:24 2019 +0000

  posix-cpu-timers: Provide array based sample functions

commit 957d8bcaf4e1e6e0f5204cd33a486424022c2cc3
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:33:47 2019 +0000

  posix-cpu-timers: Get rid of pointer indirection

commit e762ac92cfd37b74123ecd3ad2241c7d1daf15a6
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 13:35:19 2019 +0000

  posix-cpu-timers: Make expiry checks array based

commit 8dc06959500c4948ab7ff16f06b046e2ca0daad4
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 14:45:15 2019 +0000

  posix-cpu-timers: Remove cputime_expires

commit 9459311baf6bfb5e74c0098a844b6d2d081c25d2
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:32:50 2019 +0000

  posix-cpu-timers: Simplify sample functions

commit 0102a96de44ae902112c5fea1986e62f7226dbd6
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Tue Aug 20 13:34:51 2019 +0000

  posix-cpu-timers: Restructure expiry array

commit 9ebc1ad3b7627d8680ff5fc1b7ef42171d70993d
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:26:51 2019 +0000

  posix-cpu-timers: Remove pointless return value check

commit 8c768bb88f3fc0d5e0c1e480dc058d6bd7860de2
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:24:23 2019 +0000

  posix-cpu-timers: Use clock ID in posix_cpu_timer_rearm()

commit 8e8c6459bb44ac998c1c0a70724a13d22221d927
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 14:20:39 2019 +0000

  posix-cpu-timers: Switch thread group sampling to array

commit 13aa8bba4a3984d0ac86a2dcbe579cf2e07b6bf1
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:22:19 2019 +0000

  posix-cpu-timers: Use clock ID in posix_cpu_timer_get()

commit d9f868a03b3f8ef3a1bc5a1008295c20149723ca
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Wed Aug 7 11:43:49 2019 +0000

  posix-cpu-timers: Respect INFINITY for hard RTTIME limit

commit 9336cd1303218190a66e1667ab6c0449b8bcf2f3
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Wed Aug 21 09:09:22 2019 +0000

  rlimit: Rewrite non-sensical RLIMIT_CPU comment

commit e70ad8c0fa69c73a175f2f23158fd68b453d51c3
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:19:00 2019 +0000

  posix-cpu-timers: Use clock ID in posix_cpu_timer_set()

commit 5786d249ef52338d14cf361709742fb411267687
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 14:52:35 2019 +0000

  posix-cpu-timers: Get rid of zero checks

commit b141b8de195fb3971e62dc5c86ebdeb84b2cac09
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:53:06 2019 +0000

  posix-cpu-timers: Consolidate thread group sample code

commit 8f8fb8af4a894f4956ab084fb9c5847f26c39635
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 14:14:30 2019 +0000

  posix-cpu-timers: Rename thread_group_cputimer() and make it static

commit ac1089cb1697c3798cc2a20c28f9bba6a3d2e9d6
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 16:55:18 2019 +0000

  posix-cpu-timers: Consolidate timer expiry further

commit c895a99d2e073a26e2e1d755163a4bfd91ecaee9
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 12:21:34 2019 +0000

  posix-cpu-timers: Sample directly in timer check

commit c9401dda8e60a2b2bf23f19c4919854b345e8306
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Wed Aug 7 12:19:02 2019 +0000

  posix-cpu-timers: Get rid of 64bit divisions

commit ae5366ec32e330c40387a5e5832bc5ab9af74af6
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 12:29:15 2019 +0000

  itimers: Use quick sample function

commit f0610ad15b612e5ea71cf58aff42e4c076d5b255
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Wed Aug 7 12:22:10 2019 +0000

  posix-cpu-timers: Remove pointless comparisons

commit 6add2f23f29f21dd2cc0288d0dc4afdf5bae3532
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 12:27:44 2019 +0000

  posix-cpu-timers: Provide quick sample function for itimer

commit f4a2ed1b9d671320a94856062a77c8ac1b8aa46c
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Wed Aug 7 12:25:41 2019 +0000

  posix-cpu-timers: Deduplicate rlimit handling

commit cc1f6a2ef0cf5f6cb25a38928c06b04ff6a38911
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 15:07:52 2019 +0000

  posix-cpu-timers: Move state tracking to struct posix_cputimers

commit dd73866df5311e479a004776e37b282136b364fc
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:06:59 2019 +0000

  posix-cpu-timers: Use common permission check in posix_cpu_timer_create()

commit 4d9b4bebb5e92ed3cdfec5f9a567282a8c99cb5f
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 11:05:12 2019 +0000

  posix-cpu-timers: Use common permission check in posix_cpu_clock_get()

commit ce709abdd2b913b5f90443761b03b0eae6b3d86c
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sat Aug 3 17:44:08 2019 +0000

  posix-cpu-timers: Utilize timerqueue for storage

commit 5b67bc20a5e4b84dab429f53717d49a93c8936a4
Author: Thomas Gleixner <tglx@linutronix.de>
Date: Sun Aug 4 10:52:52 2019 +0000

  posix-cpu-timers: Provide task validation functions

commit d1543e48a6585a84271ef158cc937c98477e2de9
Author: Ingo Molnar <mingo@kernel.org>
Date: Fri Aug 23 08:48:48 2019 +0000

  posix-cpu-timers: Fix build on !CONFIG_POSIX_TIMERS

commit 02c12a1482624b7f7ca5906e126d3b5f31d06e3f
Author: Ingo Molnar <mingo@kernel.org>
Date: Sun Aug 25 18:17:56 2019 +0000

  Merge branch 'WIP.timers/core'
▶ ▼ Discussions (1)
Title Replies (including bot) Last reply
WARNING in posix_cpu_timer_del 1 (2) 2019/08/28 11:11
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in posix_cpu_timer_del (3) kernel -1 syz, C error 40 2622d 2634d 0/29 closed as invalid on 2019/10/04 07:44
upstream WARNING in posix_cpu_timer_del (2) kernel -1 syz, C done 76 2636d 2638d 0/29 closed as invalid on 2019/09/02 05:17

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11100 at kernel/time/posix-cpu-timers.c:401 posix_cpu_timer_del+0x2f0/0x3b0 kernel/time/posix-cpu-timers.c:401
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 11100 Comm: syz-executor296 Not tainted 5.3.0-rc6-next-20190827 #74
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:220
 __warn.cold+0x2f/0x3c kernel/panic.c:581
 report_bug+0x289/0x300 lib/bug.c:195
 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+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:posix_cpu_timer_del+0x2f0/0x3b0 kernel/time/posix-cpu-timers.c:401
Code: 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48 83 bb c8 00 00 00 00 74 16 e8 10 58 0d 00 <0f> 0b e9 87 fe ff ff e8 b4 3e 48 00 e9 dd fd ff ff e8 fa 57 0d 00
RSP: 0018:ffff88808a65fc88 EFLAGS: 00010093
RAX: ffff88808af38500 RBX: ffff8880955e4000 RCX: 1ffff110115e71b2
RDX: 0000000000000000 RSI: ffffffff8164d5c0 RDI: ffff8880955e40c8
RBP: ffff88808a65fd18 R08: 0000000000000002 R09: ffff88808af38d98
R10: fffffbfff138b140 R11: ffffffff89c58a07 R12: ffff88809d0ee540
R13: 1ffff110114cbf92 R14: ffff88808a65fcf0 R15: ffff8880955e4058
 timer_delete_hook kernel/time/posix-timers.c:978 [inline]
 itimer_delete kernel/time/posix-timers.c:1021 [inline]
 exit_itimers+0xdb/0x2e0 kernel/time/posix-timers.c:1041
 do_exit+0x1980/0x2e60 kernel/exit.c:853
 do_group_exit+0x135/0x360 kernel/exit.c:983
 __do_sys_exit_group kernel/exit.c:994 [inline]
 __se_sys_exit_group kernel/exit.c:992 [inline]
 __x64_sys_exit_group+0x44/0x50 kernel/exit.c:992
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4452b8
Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0 0f 05 48 3d 00 f0 ff ff 77 21 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0 f7 d8 64 41 89 01 eb d8 0f 1f 84 00 00 00
RSP: 002b:00007ffd2bb230b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004452b8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004cc930 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 00007ffd2bb23110 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006e0320 R14: 000000000000002d R15: 20c49ba5e353f7cf
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (241):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/08/28 02:08 linux-next ed2393ca0910 fd37b39e .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/27 13:48 linux-next ed858b88e6cb d21c5d9d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/27 07:05 linux-next ed858b88e6cb d21c5d9d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/27 01:45 linux-next ed858b88e6cb d21c5d9d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/08/31 02:41 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/31 02:33 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/31 01:31 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 22:24 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 20:59 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 19:06 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 19:04 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 17:35 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 15:35 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 13:54 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 12:42 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 11:41 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 10:30 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 10:17 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 08:54 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 07:33 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 06:02 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 05:23 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 03:50 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 02:11 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/30 00:31 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 23:25 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 23:03 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 21:52 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 20:38 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 19:19 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 18:02 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 16:20 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 16:02 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 12:53 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 11:51 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 08:12 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 07:10 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 06:17 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 04:24 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 02:40 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 01:17 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 00:14 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/29 00:14 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/28 22:40 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/28 21:35 linux-next ed2393ca0910 fd37b39e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/26 14:53 linux-next ed858b88e6cb d21c5d9d .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.