syzbot


WARNING in __kthread_bind_mask

Status: fixed on 2019/05/27 12:48
Reported-by: syzbot+6d4a92619eb0ad08602b@syzkaller.appspotmail.com
Fix commit: 060586324648 io_uring: park SQPOLL thread if it's percpu
First crash: 1831d, last: 1820d
Cause bisection: introduced by (bisect log) :
commit 6c271ce2f1d572f7fa225700a13cfe7ced492434
Author: Jens Axboe <axboe@kernel.dk>
Date: Thu Jan 10 18:22:30 2019 +0000

  io_uring: add submission polling

Crash: WARNING in __kthread_bind_mask (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
WARNING in __kthread_bind_mask 1 (2) 2019/04/13 15:13

Sample crash report:
WARNING: CPU: 0 PID: 7617 at kernel/kthread.c:398 __kthread_bind_mask+0x3b/0xc0 kernel/kthread.c:398
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7617 Comm: syz-executor174 Not tainted 5.1.0-rc4+ #65
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+0x2cb/0x65c kernel/panic.c:214
 __warn.cold+0x20/0x45 kernel/panic.c:571
 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:973
RIP: 0010:__kthread_bind_mask+0x3b/0xc0 kernel/kthread.c:398
Code: 48 89 fb e8 27 88 24 00 4c 89 e6 48 89 df e8 dc e7 02 00 31 ff 49 89 c4 48 89 c6 e8 af 89 24 00 4d 85 e4 75 15 e8 05 88 24 00 <0f> 0b e8 fe 87 24 00 5b 41 5c 41 5d 41 5e 5d c3 e8 f0 87 24 00 4c
RSP: 0018:ffff8880a4ab7bb8 EFLAGS: 00010293
RAX: ffff88808cab00c0 RBX: ffff888090256240 RCX: ffffffff814c06f1
RDX: 0000000000000000 RSI: ffffffff814c06fb RDI: 0000000000000007
RBP: ffff8880a4ab7bd8 R08: ffff88808cab00c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff87691090 R14: ffff888090256260 R15: ffffffff81c801d0
 __kthread_bind kernel/kthread.c:411 [inline]
 kthread_unpark+0x123/0x160 kernel/kthread.c:479
 kthread_stop+0xfa/0x6c0 kernel/kthread.c:555
 io_sq_thread_stop fs/io_uring.c:2057 [inline]
 io_sq_thread_stop fs/io_uring.c:2052 [inline]
 io_finish_async+0xab/0x180 fs/io_uring.c:2064
 io_ring_ctx_free fs/io_uring.c:2533 [inline]
 io_ring_ctx_wait_and_kill+0x133/0x510 fs/io_uring.c:2590
 io_uring_release+0x42/0x50 fs/io_uring.c:2598
 __fput+0x2e5/0x8d0 fs/file_table.c:278
 ____fput+0x16/0x20 fs/file_table.c:309
 task_work_run+0x14a/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0x90a/0x2fa0 kernel/exit.c:876
 do_group_exit+0x135/0x370 kernel/exit.c:980
 __do_sys_exit_group kernel/exit.c:991 [inline]
 __se_sys_exit_group kernel/exit.c:989 [inline]
 __x64_sys_exit_group+0x44/0x50 kernel/exit.c:989
 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43ee98
Code: Bad RIP value.
RSP: 002b:00007ffdb96f79e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043ee98
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be6a8 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2929):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/04/13 02:49 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/12 23:38 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/12 23:21 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/12 22:48 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/12 22:32 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/12 22:13 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2019/04/12 22:12 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/12 21:54 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-smack-root
2019/04/12 21:54 upstream 8ee15f324866 c402d8f1 .config console log report syz C ci-upstream-kasan-gce-root
2019/04/13 01:54 linux-next bcb67f0fbce9 c402d8f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/12 22:12 linux-next bcb67f0fbce9 c402d8f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/12 21:36 linux-next bcb67f0fbce9 c402d8f1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/04/20 22:33 upstream 371dd432ab39 b0e8efcb .config console log report ci-upstream-kasan-gce-smack-root
2019/04/20 20:43 upstream 371dd432ab39 b0e8efcb .config console log report ci-upstream-kasan-gce-root
2019/04/20 20:35 upstream 371dd432ab39 b0e8efcb .config console log report ci-upstream-kasan-gce-selinux-root
2019/04/14 06:49 upstream b60bc0665e6a c402d8f1 .config console log report ci-upstream-kasan-gce
2019/04/23 12:18 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 11:16 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 10:51 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 09:17 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 08:10 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 06:29 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 05:06 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 04:04 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 03:01 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 01:59 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/23 00:53 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 23:26 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 21:34 linux-next 3f018f4a019a 53199d6e .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 19:11 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 19:01 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 17:59 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 16:26 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 15:23 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 14:19 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 13:19 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 12:11 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 10:56 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 09:34 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 09:03 linux-next 3f018f4a019a 0a77c33c .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 08:02 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 06:52 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 05:49 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 04:49 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 04:33 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 03:10 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 02:03 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 01:28 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/22 00:17 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 23:14 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 22:48 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 21:00 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 19:54 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 19:23 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 18:17 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 17:07 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 16:29 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
2019/04/21 15:18 linux-next 3f018f4a019a b0e8efcb .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.