Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5223776imm; Tue, 16 Oct 2018 07:07:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV60ifcVVezbzbSJ7TH4ZdnN6zRk6QhwCWYO/yfEo6EOdrtRG9VkGbqdW76Emy8s740RzS9+r X-Received: by 2002:a17:902:bccc:: with SMTP id o12-v6mr22201806pls.202.1539698833603; Tue, 16 Oct 2018 07:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539698833; cv=none; d=google.com; s=arc-20160816; b=ycqHhV4vh9hdbYqt2Bu4a/GyCMHIGc9Q0ejb4nqZtteoW9S5XKq/7rmyVScZKKi5RU 2Jxp3FIV68Aw3hj/IrPcBx64/nkT88NiN7eytHnnFzYpfjKIcHXJQmGYxDtU84g80fZY Ps4Z181kEcC063yzJHijx/WxXvS690mgDqP4LiKVqwjhUoSc4WSTx6ET4fN2Y89qiodN UOwG9Se4vuRxYT9VyOkutdiOhj6pS8mlBIF55D5j/Ujsys+EygwsNm1Gps5i6Fuvxr7u y4jJEQsuYN+jtalcJJRuEylugyZzjA767JqU5FWIDf0W+ghSZBh16dO6cjSMihiT3uGX q7PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3l3A6OygduF1nH1H5Cn5NFNHaqJ5qCd53v7SN/pL1IE=; b=qrkhVno4fUYNR/HJzPb8HGUIxsr51tFn3ut5Sql51TWVjQ10PTQQ9UamsN8OS8kR21 y8VNSwhxrAuljcART7HREkwKowWghKv6rqmse3A5FhKyRUvOtNSE/J9ncETnNopQqi8W 9sqeCabB3F4In7+K+RWHodplL62g4/a2aN7S6EXM7s5dAs4Sc0VMeaKUvuvGW2rcdtuK 2rm8nTbX2nxWfGF02kaJnEiPYBzUfG/lVQLUOFE4hr2IG2+6cp2RnnOBwEiZHKcWwlXz Bx6uiNdAYUAye4Kulk7k5e9iCyzM7WEVB3LMyo9CcjiW1/Ko/pf1FpsybOXXJgTpXvCC KE5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ILPRrYWA; 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 z1-v6si13785405plo.59.2018.10.16.07.06.57; Tue, 16 Oct 2018 07:07:13 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ILPRrYWA; 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 S1727119AbeJPVyK (ORCPT + 99 others); Tue, 16 Oct 2018 17:54:10 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:39168 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbeJPVyK (ORCPT ); Tue, 16 Oct 2018 17:54:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3l3A6OygduF1nH1H5Cn5NFNHaqJ5qCd53v7SN/pL1IE=; b=ILPRrYWAcDt/ksW5HqydbOjtw w/3sMJ4lmbOx+exFDL6KMwMTmIzWxYXje+Qc6K3oisf3Inmcyu6+Ph6GV8lpfmK7bv6GTfR3lLdIp aMpg8fKLc8sUxzljS2LQVrHcPMsKPlEcAUbyduHmgsJXWp6YD11SxiHHjHds1nlExcUdye6dNsFv2 5fjshsMS8xwTYKc2l1z4CmmSp+quwn/k9CvQtDfytpKO70CAYOVleXXzifaUJCxDRKw4OOfGJ4aG7 SESaRX31cv5VsmdZOYns7INMpMxszCYGvBtnWtSG5t7spa2S2QBumDmcaVhn38AqrDITKwO3J+7AJ M04Lo1m0g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCPwS-0004UA-Ul; Tue, 16 Oct 2018 14:03:25 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9893F20295866; Tue, 16 Oct 2018 16:03:22 +0200 (CEST) Date: Tue, 16 Oct 2018 16:03:22 +0200 From: Peter Zijlstra To: Thomas Gleixner Cc: syzbot , Borislav Petkov , "H. Peter Anvin" , LKML , mingo@redhat.com, nstange@suse.de, syzkaller-bugs@googlegroups.com, Juri Lelli Subject: Re: INFO: rcu detected stall in do_idle Message-ID: <20181016140322.GB3121@hirez.programming.kicks-ass.net> References: <000000000000a4ee200578172fde@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 03:24:06PM +0200, Thomas Gleixner wrote: > 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? Sorta, just like FIFO-99 while(1);. Except we should be rejecting the above configuration, because of the rule: runtime <= deadline <= period Juri, where were we supposed to check that?