syzbot


WARNING in ptrace_stop

Status: fixed on 2020/09/16 22:51
Reported-by: syzbot+e7a125aff38791d8cb65@syzkaller.appspotmail.com
Fix commit: d136122f5845 sched: Fix race against ptrace_freeze_trace()
First crash: 1363d, last: 1355d
Cause bisection: introduced by (bisect log) :
commit dbfb089d360b1cc623c51a2c7cf9b99eff78e0e7
Author: Peter Zijlstra <peterz@infradead.org>
Date: Fri Jul 3 10:40:33 2020 +0000

  sched: Fix loadavg accounting race

Crash: WARNING in ptrace_stop (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
WARNING in ptrace_stop 1 (2) 2020/07/24 06:02

Sample crash report:
------------[ cut here ]------------
do not call blocking ops when !TASK_RUNNING; state=8 set at [<00000000b6f391c2>] ptrace_stop+0x0/0x9e0 kernel/signal.c:2054
WARNING: CPU: 0 PID: 7463 at kernel/sched/core.c:6883 __might_sleep+0x135/0x190 kernel/sched/core.c:6883
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7463 Comm: syz-executor382 Not tainted 5.8.0-rc6-syzkaller #0
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+0x18f/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:231
 __warn.cold+0x20/0x45 kernel/panic.c:600
 report_bug+0x1bd/0x210 lib/bug.c:198
 handle_bug+0x38/0x90 arch/x86/kernel/traps.c:235
 exc_invalid_op+0x13/0x40 arch/x86/kernel/traps.c:255
 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:540
RIP: 0010:__might_sleep+0x135/0x190 kernel/sched/core.c:6883
Code: 65 48 8b 1c 25 00 ff 01 00 48 8d 7b 10 48 89 fe 48 c1 ee 03 80 3c 06 00 75 2b 48 8b 73 10 48 c7 c7 a0 3f 4b 88 e8 2d 1a f5 ff <0f> 0b e9 46 ff ff ff e8 1f 41 63 00 e9 29 ff ff ff e8 15 41 63 00
RSP: 0018:ffffc90001db7c78 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88809e2924c0 RCX: 0000000000000000
RDX: ffff88809e2924c0 RSI: ffffffff815d4eb7 RDI: fffff520003b6f81
RBP: ffffffff884ab220 R08: 0000000000000001 R09: ffff8880ae6318e7
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000039
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88809e292948
 try_to_freeze_unsafe include/linux/freezer.h:57 [inline]
 try_to_freeze include/linux/freezer.h:67 [inline]
 freezer_count include/linux/freezer.h:128 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 ptrace_stop+0x4e2/0x9e0 kernel/signal.c:2215
 ptrace_signal kernel/signal.c:2490 [inline]
 get_signal+0xddc/0x1ee0 kernel/signal.c:2639
 do_signal+0x82/0x2520 arch/x86/kernel/signal.c:810
 exit_to_usermode_loop arch/x86/entry/common.c:235 [inline]
 __prepare_exit_to_usermode+0x156/0x1f0 arch/x86/entry/common.c:269
 do_syscall_64+0x6c/0xe0 arch/x86/entry/common.c:393
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x446d19
Code: Bad RIP value.
RSP: 002b:00007fa80ef1adb8 EFLAGS: 00000246 ORIG_RAX: 000000000000003d
RAX: fffffffffffffe00 RBX: 00000000006dcc28 RCX: 0000000000446d19
RDX: 0000000080000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000000006dcc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dcc2c
R13: 00007ffdf63a0f9f R14: 00007fa80ef1b9c0 R15: 20c49ba5e353f7cf
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1413):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/26 03:40 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/25 16:17 upstream 68845a55c31b 1f7cc1ca .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/24 02:35 upstream d15be546031c 70c104a1 .config console log report syz C ci-upstream-kasan-gce-root
2020/07/24 00:35 upstream d15be546031c 70c104a1 .config console log report syz C ci-upstream-kasan-gce
2020/07/23 23:56 upstream d15be546031c 70c104a1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/23 11:56 upstream 8c26c87b0532 340ea530 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/07/22 13:54 upstream 4fa640dc5230 128cd85f .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/22 05:34 upstream 4fa640dc5230 21f1765e .config console log report syz C ci-upstream-kasan-gce
2020/07/21 21:51 upstream 4fa640dc5230 21f1765e .config console log report syz C ci-upstream-kasan-gce
2020/07/20 06:13 upstream 92188b41f139 9c812472 .config console log report syz C ci-upstream-kasan-gce
2020/07/20 06:04 upstream 92188b41f139 9c812472 .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/07/25 15:37 upstream 68845a55c31b 1f7cc1ca .config console log report syz C ci-upstream-kasan-gce-386
2020/07/22 16:52 upstream 4fa640dc5230 128cd85f .config console log report syz C ci-upstream-kasan-gce-386
2020/07/22 14:02 upstream 4fa640dc5230 128cd85f .config console log report syz C ci-upstream-kasan-gce-386
2020/07/20 04:58 upstream 92188b41f139 9c812472 .config console log report syz C ci-upstream-kasan-gce-386
2020/07/27 15:34 linux-next 26027945c94a cb93dc6a .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/27 11:21 linux-next 26027945c94a 51265195 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/24 07:45 linux-next 4f5baedd579d 70c104a1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/24 03:34 linux-next 4f5baedd579d 70c104a1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/23 16:03 linux-next 4f5baedd579d 340ea530 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/07/20 03:42 upstream 92188b41f139 9c812472 .config console log report syz ci-upstream-kasan-gce-root
2020/07/20 02:53 upstream 92188b41f139 9c812472 .config console log report syz ci-upstream-kasan-gce
2020/07/20 01:57 upstream 92188b41f139 9c812472 .config console log report syz ci-upstream-kasan-gce-root
2020/07/22 05:12 upstream 4fa640dc5230 21f1765e .config console log report syz ci-upstream-kasan-gce-386
2020/07/26 09:43 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/26 08:19 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/26 07:04 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/26 05:59 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 04:44 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/26 03:38 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 03:08 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/26 02:06 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/26 00:42 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 23:45 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/25 23:44 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 22:40 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/25 21:19 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 20:15 upstream 23ee3e4e5bd2 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 19:03 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-selinux-root
2020/07/25 18:49 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/25 17:47 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 17:22 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 14:45 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 14:27 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 13:23 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-root
2020/07/25 13:19 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce-smack-root
2020/07/25 12:13 upstream 68845a55c31b 1f7cc1ca .config console log report ci-upstream-kasan-gce
2020/07/25 00:28 upstream 68845a55c31b 0a13649c .config console log report ci-qemu-upstream
2020/07/19 21:56 upstream 92188b41f139 9c812472 .config console log report ci-qemu-upstream
2020/07/20 01:32 upstream 92188b41f139 9c812472 .config console log report ci-qemu-upstream-386
2020/07/27 16:41 linux-next 26027945c94a cb93dc6a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 14:29 linux-next 26027945c94a cb93dc6a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 13:22 linux-next 26027945c94a cb93dc6a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 09:44 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 08:12 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 06:58 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 05:23 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 05:17 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 04:14 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/27 02:23 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 22:32 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 20:42 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 19:36 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 18:34 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 17:29 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 16:01 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 14:46 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 14:11 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 12:57 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 11:42 linux-next 26027945c94a 51265195 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/26 04:57 linux-next 26027945c94a 1f7cc1ca .config console log report ci-upstream-linux-next-kasan-gce-root
2020/07/25 22:24 linux-next 26027945c94a 1f7cc1ca .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.