Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1729036lql; Wed, 13 Mar 2024 06:47:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUVvyORQwxnXyBvGgLtuJbSfTLlgsSXuyFYETex/oVUVs7Gb14UZnS/iyryg48IyZp+zhbU6eNIpsvRi/toxwyL5p1rsN0keJ3DzXjWDw== X-Google-Smtp-Source: AGHT+IGjdhH9Fs9KoMiusi2uFv0zOs2rgmtIB4S6h+FKTGh7OujxnIL2BFPvjEEYFJq4DRKCiqmS X-Received: by 2002:a17:902:d352:b0:1db:7181:c5ba with SMTP id l18-20020a170902d35200b001db7181c5bamr13550034plk.62.1710337670780; Wed, 13 Mar 2024 06:47:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710337670; cv=pass; d=google.com; s=arc-20160816; b=B6tEAGiHbfKm9TfwhDE+qTcXQ/qKGLPm4MTKyP1H9Bryq47srClU4BxDA0M7H6v52+ hbzmtWBuxUL459DfFUAwwTXA3Vs9tMihT7pQUYabj4Rg2Zcrhv/kkLVv2OT1JNkhhh0p 0WivUEavjla5PI/IOuyc2xPXxJa7/p9CFCZCjp/j0h7w103TZq2OaKRv06e5/DhYA94k GH2Yl5aY+RYMgc60UULuFIdau/hWTGtxweeR1fufaPp408rDfzpeRmlRN/2y1ls+NLFL OtHuZqrd9oH+uuh65V09WW9waVUpTmcVNNNreKWje3w59sExDuQYNvscBUPffImwqGqL x6Ow== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=vIjAdfBoiWL33bZ0WTDYgYhPbH4wUcMAQ5Y8wEr1dZY=; fh=Ui9pGx3ZNC8pmGUiDIsxDgorocN3pgLNdUyPxHh7n3g=; b=ZUTTDK0dcwHsk84rOLMO+4Gevvz3zYz/KBlzb1F9cUyEQGPSE9JYGBqi+R+HJBcB4j 1qSChvTJ5T1zUG7LExuAXP54wvJUeqQmlfdBOC7Da0POkfhltBVvTpX7qBKxOoUgcMeT dnC+0YUoNIKKH4M0yVCWcdHNRnNB+BJJngF8diyyijnZXk5feGquRUhqK18bJn0PP6yL 8EfQbf8URJ1X6udEYTjWKmNQShpMcvbdyBH+a0mr2dpQZVtX48V3nqZ8+Gmk71vRdika 1aMpikOvmzESOAddjpGY5a6OrUE9lDS8Y3qfzMjyEC0uKginrdb5OMI/b3WSJScHENOL fX9g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=J1KVgT+H; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u14-20020a170902e5ce00b001dcf977f18csi9109751plf.321.2024.03.13.06.47.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 06:47:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=J1KVgT+H; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-101557-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 29493B225D3 for ; Wed, 13 Mar 2024 13:46:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9369D41C7F; Wed, 13 Mar 2024 13:46:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="J1KVgT+H"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="W1urmu50" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 638954174A; Wed, 13 Mar 2024 13:46:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710337610; cv=none; b=JPMb/ZNvxmYJcZ+iRS4B/w/4H05qWQXOdsVIIS9Q4bnk9WIEBI141U+m80F3bZ+QnWr3MCKbBFnZLeuHQnnZboYJPBaHKUZZz3I5ODmecEuzBBpLSxjSqPDuzvp/9AUdh/mfnNDvuTazN4zFstqlz5QzhdWkupG6iBa3Atv3YO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710337610; c=relaxed/simple; bh=vIjAdfBoiWL33bZ0WTDYgYhPbH4wUcMAQ5Y8wEr1dZY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tgviVFqb0d9VAcCnx6b64XHvSldqqPEUBW0CPegvcSuAeYhzfeTapOxPP+seGqFmEMI7y1z80R4nzfjaLHj2jRhirD1Rce681qNC0W8sjuyIVNX2kzE8KUzH0PtPy/MLVH8htWWsrcKsV01eRpQWHK6fvEbF+nkF/JJGUksiGi4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=J1KVgT+H; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=W1urmu50; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 13 Mar 2024 14:46:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1710337607; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vIjAdfBoiWL33bZ0WTDYgYhPbH4wUcMAQ5Y8wEr1dZY=; b=J1KVgT+H/VBL8Agxtd3g3sdQEzrXIQCmmgC3w0ULmKRAro3/j4L9H3Gay8WHXFA7sIFsc9 L5Hdx7X3dY8JXM55fuYBhZfzR7xbh4agBFaLwpl7QRN+Q4E2K8YeHqlVfUV+03R3t+qO6I 3V0R6JXK/Vp+TecJ3zTb+hvR61wOZj/1BJ8FtJrkHRHjGWYsgbO3dXGN8F1QfuF3hR2L/M RyMv8SnSLCMKAQPpwdcKpzEnOt1T2stcSxy38finxf63UjMH07uYRIidk8dhPX78DgZSh4 Kl0Z89JWHMTUpylW+thitV5soAJqvgbndIila2qyVAny64jmK8XkIlMdihuvSA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1710337607; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vIjAdfBoiWL33bZ0WTDYgYhPbH4wUcMAQ5Y8wEr1dZY=; b=W1urmu50u6l/cXHFtJauFiPDwtDppplz/TQaBN0m9x4jLBK3dO38RFJgZ4cBxIZe96oMHQ Pxbw7Fs0NUgpCVBQ== From: Sebastian Andrzej Siewior To: Arnaldo Carvalho de Melo Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Ian Rogers , Ingo Molnar , Jiri Olsa , Marco Elver , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH v2 0/4] perf: Make SIGTRAP and __perf_pending_irq() work on RT. Message-ID: <20240313134645.bO-XyxAM@linutronix.de> References: <20240312180814.3373778-1-bigeasy@linutronix.de> <20240313081303.DClwQrvb@linutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: On 2024-03-13 10:28:41 [-0300], Arnaldo Carvalho de Melo wrote: > > One part I don't get: did you let it run or did you kill it? >=20 > If I let them run they will finish and exit, no exec_child remains. >=20 > If I instead try to stop the loop that goes on forking the 100 of them, > then the exec_child remain spinning. Okay. So that problem only exists if you intervene. And you can reproduce this odd behaviour with my patches but not without them, right? > > it shouldn't remain there for ever. And my guess, that it is in spinning > > in userland and not in kernel. >=20 > Checking that now, the stack is the one I posted: >=20 > > > [root@nine ~]# cat /proc/24263/stack > > > [<0>] irqentry_exit_to_user_mode+0x1c9/0x1e0 > > > [<0>] asm_sysvec_apic_timer_interrupt+0x16/0x20 > > > [root@nine ~]# could you resolve irqentry_exit_to_user_mode+0x1c9/0x1e0, please? > > I tried it on bare metal and VM and couldn't reproduce this. >=20 > All my tests are in bare metal. Would you mind sending me your .config? The shell is bash I guess. I will try to reproduce your setup on another box=E2=80=A6 > - Arnaldo Sebastian