Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5176546imm; Tue, 16 Oct 2018 06:25:23 -0700 (PDT) X-Google-Smtp-Source: ACcGV608AfGmuu7gspvXbah5sJk7yFoCh4/x2LagypWNTl0JsuqAJzFvUWr06sOiDufBN38jd1pe X-Received: by 2002:a62:8f:: with SMTP id 137-v6mr21958579pfa.24.1539696323587; Tue, 16 Oct 2018 06:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539696323; cv=none; d=google.com; s=arc-20160816; b=bTE05nVEB2p4xtJvn4MgJx0sZqt6Tlsvtw/Y1sFrAO3gvmY6pN94iAgp9ea+Gbhctv u1cJl0hfivLe5s/VIowdrv/kFy6j53ABxvjQ0ZyCO0SJt3BjTScN8afh47jzK/V/mr4E TmUPr8InHtFo8Zn80UYOriUjR38tD3rO7N8VM0Dn5tE6upVfYmcjXIU7yTrzXFl241+h SeAYk0gzGXydwJqFqtgzLAjGDSihgLYGMdIMb6iyOm6ZNw9KtCzTEUWlZFN80tUnK9I8 R1XveyEEu9LnWimKfkShm8JZOUOs24nennwX85a8/mS41NsqH56pdna83GjkUDGYNhcG d2xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=G+/B+Eke1sWBfQKntxFUujqYChkkg8RCCMnPZh3gnUU=; b=ckvOtmt20WzZFlwXIvH9AT0O8AXrpPA4c3yqco2waZ8mURRhN5KwaH1mjenq9kToYA jwzFYcSrdUvjlbWLuYVXSg6SQvG15ExujH6Zibp4MH5cj/lsIxkjAU6Jt6zSWpcbp/82 Z7DROJUP4gqbiQ5YMV6+QLiGnZmptK+tL/7m0KEWcOOnDXotARPAuNuNZFuYVlEipcXd S2xuBdWIKb0ZrwVHlQOPCujXlC/23hYKNpX/2MbMK7qdIdk6G8UY6Yv34H8mGhG7G9Xt M+wqxTt5KTJYbk6sbsu0SYKDdQjd1yUp5WNSe4x9xd9EzVm6rsLzd8k8g3JLhY3xEMHl bLJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v2-v6si14715549pfa.103.2018.10.16.06.25.06; Tue, 16 Oct 2018 06:25:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727034AbeJPVPB (ORCPT + 99 others); Tue, 16 Oct 2018 17:15:01 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:58133 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726760AbeJPVPA (ORCPT ); Tue, 16 Oct 2018 17:15:00 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1gCPKR-0005u6-47; Tue, 16 Oct 2018 15:24:07 +0200 Date: Tue, 16 Oct 2018 15:24:06 +0200 (CEST) From: Thomas Gleixner To: syzbot cc: Borislav Petkov , "H. Peter Anvin" , LKML , mingo@redhat.com, nstange@suse.de, syzkaller-bugs@googlegroups.com, x86@kernel.org, Peter Zijlstra Subject: Re: INFO: rcu detected stall in do_idle In-Reply-To: <000000000000a4ee200578172fde@google.com> Message-ID: References: <000000000000a4ee200578172fde@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 13 Oct 2018, syzbot wrote: > syzbot found the following crash on: > > HEAD commit: 6b3944e42e2e afs: Fix cell proc list > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=1545a479400000 > kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d > dashboard link: https://syzkaller.appspot.com/bug?extid=385468161961cee80c31 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14825d5e400000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=122cc531400000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+385468161961cee80c31@syzkaller.appspotmail.com > > sshd (5193) used greatest stack depth: 15496 bytes left > sched: DL replenish lagged too much > hrtimer: interrupt took 417330 ns > rcu: INFO: rcu_sched detected stalls on CPUs/tasks: It does reproduce here but with a kworker stall. Looking at the reproducer: *(uint32_t*)0x20000000 = 0; *(uint32_t*)0x20000004 = 6; *(uint64_t*)0x20000008 = 0; *(uint32_t*)0x20000010 = 0; *(uint32_t*)0x20000014 = 0; *(uint64_t*)0x20000018 = 0x9917; *(uint64_t*)0x20000020 = 0xffff; *(uint64_t*)0x20000028 = 0; syscall(__NR_sched_setattr, 0, 0x20000000, 0); which means: struct sched_attr { .size = 0, .policy = 6, .flags = 0, .nice = 0, .priority = 0, .deadline = 0x9917, .runtime = 0xffff, .period = 0, } policy 6 is SCHED_DEADLINE That makes the thread hog the CPU and prevents all kind of stuff to run. Peter, is that expected behaviour? Thanks, tglx