From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 850601C244E for ; Tue, 1 Oct 2024 12:52:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727787167; cv=none; b=BrOXcxmIQWLyPWabOGTk4Glidt+e6JqYPaArjKmdZVLc1j4JLPn6OA511p5ZlgoHdZg8sb6+Knb63NQZUNXVMwePJTho3w33oYRIP240+0sOUh3IMGTOHrku7WVx4ZN5uImzOW9w6Q7wtgGnQxopUk3NaTeKyo9PPGO6Zs+r92I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727787167; c=relaxed/simple; bh=3A6vNta9SvTLyYbuZA6Y9cFT4NVEjyyhoIMiYJsbc60=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=kB+0eugvgf628Cotybkb+6JLO73EWKmOHVk297oCmDDNWAMXzYy/aDA8F2mQL17KJryT+pEBmZ39wo+eBaDKu4QK+4ffM5bXe57IetT3Uqd75SOEe6ZsYAHiVFhkRC2sElk/sDDvOt/4s2lovZenOAPjoa8IwtqXmH8T9j4Wj3I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=bdig4z91; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="bdig4z91" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727787164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GEPx7v6OMKseDg9pVfYwY8ZmnNisp90m0mp2T3pN8ko=; b=bdig4z914fiPP2mvFkf50LnABKedV+zjztirgt93VnRKMsAhDQCUqRoyNQSdke7k0IIAV1 IvWRAliceCd38ecaO2WUEztvo+A1J0zCrCxbcRXLJEW0qvNUqf7ljJ4aV3N3/a0hq6Anew 9rm2WjnUrPyGFOpCASNrJ0rg7TH+R34= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-691-9dZ3LAmcNsafF__AmqlxsQ-1; Tue, 01 Oct 2024 08:52:43 -0400 X-MC-Unique: 9dZ3LAmcNsafF__AmqlxsQ-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7a9a6251df5so1223120585a.3 for ; Tue, 01 Oct 2024 05:52:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727787163; x=1728391963; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GEPx7v6OMKseDg9pVfYwY8ZmnNisp90m0mp2T3pN8ko=; b=TgW6TXigSbZsmuwAJjl7zEJHgObZKPcLDIN/5wCqWib40t84kiaiD3Prr5rrpH7nnD 6qm9v6+iaTt+Z/3FGyHscJN0XFOLtxFOw4QhEx9/uKKMcPD2sR3m6yspaKAy5phelYxs 0iD5E6AYFNYwx1CMUIlrAcjF8zA9oXUpTCztE2g9rfUKqW/kVVvQ7bveaMQzDHODLW+w raoRySKe171Lk1O5X691YJ6jaYR4HB4pggwWXqJ7FzK1vdfQvmFRXuyNjLBC4EhkD0im D1NSLoCsWLeKnMLAZNRbsJMpupT1/OKv3IxCjauGVvLcoHniKYY2aaYtzGOBExBNN3vu p6Jw== X-Forwarded-Encrypted: i=1; AJvYcCVIJBzpsiJ4b4XSa1CL251eevAZ9lt3Zzx+/g2pfsSr/D4GpWpPIPXc2paCITu8CQP9cOcw1ISukOlaGRk=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3LzcXICTRuAo/Ndb83s8QBsGz4GDMBkjxgHzqFh/gW4tv/NJt dtiGSfRMRyyrYbstSUGwzcAHlQy/A2z2Mq1pAxR7pvNl1BUPAoRqbYBWG7wdf9BVy+074ZZnrZi 0PJmuoS7kbmWQJkqethzPewS/+6nWeZIqw86Kec1fj1nwPhwB7ceAmf1BzGT6Qg== X-Received: by 2002:a05:620a:2946:b0:7ac:e931:f158 with SMTP id af79cd13be357-7ae378dbba3mr2612318285a.53.1727787162861; Tue, 01 Oct 2024 05:52:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc2vx2t9dX9fiRJfJxGZjbq1Mw82t9tHhJSNRuUJgNwVDEGGHA3aFaYZ0NFxy4voUaTAhpag== X-Received: by 2002:a05:620a:2946:b0:7ac:e931:f158 with SMTP id af79cd13be357-7ae378dbba3mr2612314985a.53.1727787162455; Tue, 01 Oct 2024 05:52:42 -0700 (PDT) Received: from vschneid-thinkpadt14sgen2i.remote.csb (213-44-141-166.abo.bbox.fr. [213.44.141.166]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7ae3782b961sm499235085a.75.2024.10.01.05.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 05:52:40 -0700 (PDT) From: Valentin Schneider To: paulmck@kernel.org Cc: Chen Yu , Peter Zijlstra , linux-kernel@vger.kernel.org, sfr@canb.auug.org.au, linux-next@vger.kernel.org, kernel-team@meta.com, Tomas Glozar Subject: Re: [BUG almost bisected] Splat in dequeue_rt_stack() and build error In-Reply-To: References: <8094db32-5c81-4537-8809-ddfe92a0ac6c@paulmck-laptop> <4b93e5cf-c71e-4c64-9369-4ab3f43d9693@paulmck-laptop> <250cde11-650f-4689-9c36-816406f1b9b8@paulmck-laptop> <182ef9c6-63a4-4608-98de-22ef4d35be07@paulmck-laptop> <43d513c5-7620-481b-ab7e-30e76babbc80@paulmck-laptop> Date: Tue, 01 Oct 2024 14:52:37 +0200 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On 01/10/24 03:10, Paul E. McKenney wrote: > On Mon, Sep 30, 2024 at 10:44:24PM +0200, Valentin Schneider wrote: >> On 30/09/24 12:09, Paul E. McKenney wrote: >> > >> > And Peter asked that I send along a reproducer, which I am finally getting >> > around to doing: >> > >> > tools/testing/selftests/rcutorture/bin/kvm.sh --allcpus --duration 12h --configs "100*TREE03" --trust-make >> > >> >> FYI Tomas (on Cc) has been working on getting pretty much this to run on >> our infra, no hit so far. >> >> How much of a pain would it be to record an ftrace trace while this runs? >> I'm thinking sched_switch, sched_wakeup and function-tracing >> dl_server_start() and dl_server_stop() would be a start. >> >> AIUI this is running under QEMU so we'd need to record the trace within >> that, I'm guessing we can (ab)use --bootargs to feed it tracing arguments, >> but how do we get the trace out? > > Me, I would change those warnings to dump the trace buffer to the > console when triggered. Let me see if I can come up with something > better over breakfast. And yes, there is the concern that adding tracing > will suppress this issue. > > So is there some state that I could manually dump upon triggering either > of these two warnings? That approach would minimize the probability of > suppressing the problem. > Usually enabling panic_on_warn and getting a kdump is ideal, but here this is with QEMU - I know we can get a vmcore out via dump-guest-memory in the QEMU monitor, but I don't have an immediate solution to do that on a warn/panic. Also I'd say here we're mostly interested in the sequence of events leading us to the warn (dl_server_start() when the DL entity is somehow still enqueued) rather than the state of things when the warn is hit, and for that dumping the ftrace buffer to the console sounds good enough to me. > Thanx, Paul