Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2236494pxb; Tue, 23 Feb 2021 01:54:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLJeUwXcLyC66rp5zz3BWAlgfB+axZ82QQgfLyCXm8XA1Exhk38WC5pwHfh9dn7qzW2m8Y X-Received: by 2002:a17:906:4447:: with SMTP id i7mr3074793ejp.303.1614074043118; Tue, 23 Feb 2021 01:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614074043; cv=none; d=google.com; s=arc-20160816; b=sYcpWZCP4j9j1BJ4CcRhxsUhA1iVrDPSb5pgXAPHPC9asYSP46coss3373b7vqyUg6 HNHceXTnntFqJXHgQx3Qsf6ik9dORndFkBU20/wIazNVolYQcowRXdODHmoCPcmhDwmi CZxHhrAs17CcmLTwodCGOQk6eugvZQCo14mRFJiG2CmA7lsICuoAf9zkyBjSg6UJHFGY TnEI698QQDXdG5aVKI/4uRl/O/l2PK/bzuIvbTKH8fK014ChnzIlNKsERZ9+xhhsgGyu gj87W5iI6WwzQdVwO8Rm7ubMeAg9wuJ5d8qi0C5iDnR53BDY0BFG0z4T1QgjTOFKrRkS WxCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=90CYvbRkeTtw2LjHxZUF9fRU7+4Z7FPgkvOsHErySow=; b=KyG2Sju3pPNudqGVz6/mavHcQFOjAH9FQ98b3T18pQ5DbOPqLSx1VRbSOBq5SPliCr AG/DZtUUPx9SaxLZKlNcpfe+2eFG0XdIx+S730SUCp8thqsB+v6DgMI8nTvLu11b+8Vv InOepvLQQo0boBTrEHteJVkPKfmTBbxlxB6wAWltxBjJt8QHvfkgb0J8bj27Si2bd0HA 3FWB1enZYkiMlX5tEBA5XSHuzb4RB4aK6bsa+yMrSx0Sh2yAQT+jJg7iSskg53sfMo0X ufEZda17dPgRQryTaHn5V42ziuDooyrNkLzt1Ug4VU3sa/bM6/0JDm6l2XUVDazPt4qB 5nTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=n13MigGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q2si2600453ejx.738.2021.02.23.01.53.31; Tue, 23 Feb 2021 01:54:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=n13MigGw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232106AbhBWJIj (ORCPT + 99 others); Tue, 23 Feb 2021 04:08:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbhBWJIK (ORCPT ); Tue, 23 Feb 2021 04:08:10 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D095C061574 for ; Tue, 23 Feb 2021 01:07:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=90CYvbRkeTtw2LjHxZUF9fRU7+4Z7FPgkvOsHErySow=; b=n13MigGwlenLA9Izui3+NOrScn QKrPaD75AzEo96ZYQcdh/80/x0Xo0u0FyAdUcn+bSPDg45RnATGbuMxli40MBFzco9me/hdTR3vl/ 1NSHF2a3luZR/NYtrZ7MfbM6mita8J6N6IOzAm4qGAasVLUpos916s7wlwjs1MhdNka9INVBwh6nw hpP/F6f0LgzttRpqdXYpJXrp5afsvnZMra1pursiUjvn+dyr9H8yAzzpu+sXT279c4T1XBFAfq+0x nsQk2tmiQIBG7IBvnhpNkD9yFik+adXET0xVh8v3i3y8mTZTTOtNa93shrVK+FW/THS93yto0/4l3 4zB6g+Sw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lETdN-007kad-Jv; Tue, 23 Feb 2021 09:05:37 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EF3DD30477A; Tue, 23 Feb 2021 10:05:29 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4DD732BF456FC; Tue, 23 Feb 2021 10:05:29 +0100 (CET) Date: Tue, 23 Feb 2021 10:05:29 +0100 From: Peter Zijlstra To: Chris Hyser Cc: "Joel Fernandes (Google)" , Nishanth Aravamudan , Julien Desfossez , Tim Chen , Vineeth Pillai , Aaron Lu , Aubrey Li , tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, torvalds@linux-foundation.org, fweisbec@gmail.com, keescook@chromium.org, kerrnel@google.com, Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini , vineeth@bitbyteword.org, Chen Yu , Christian Brauner , Agata Gruza , Antonio Gomez Iglesias , graf@amazon.com, konrad.wilk@oracle.com, dfaggioli@suse.com, pjt@google.com, rostedt@goodmis.org, derkling@google.com, benbjiang@tencent.com, Alexandre Chartre , James.Bottomley@hansenpartnership.com, OWeisse@umich.edu, Dhaval Giani , Junaid Shahid , jsbarnes@google.com, Ben Segall , Josh Don , Hao Luo , Tom Lendacky Subject: Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling Message-ID: References: <20210123011704.1901835-1-joel@joelfernandes.org> <20210123011704.1901835-3-joel@joelfernandes.org> <0e91838e-4cca-4c3b-cb36-226c098f36c9@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e91838e-4cca-4c3b-cb36-226c098f36c9@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 22, 2021 at 11:00:37PM -0500, Chris Hyser wrote: > On 1/22/21 8:17 PM, Joel Fernandes (Google) wrote: > While trying to test the new prctl() code I'm working on, I ran into a bug I > chased back into this v10 code. Under a fair amount of stress, when the > function __sched_core_update_cookie() is ultimately called from > sched_core_fork(), the system deadlocks or otherwise non-visibly crashes. > I've not had much success figuring out why/what. I'm running with LOCKDEP on > and seeing no complaints. Duplicating it only requires setting a cookie on a > task and forking a bunch of threads ... all of which then want to update > their cookie. Can you share the code and reproducer?