Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp530051lql; Mon, 11 Mar 2024 09:33:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJNBLXEKQ5pQ2jk3eLxndSOMBgAvZf+KlXy/B4QTVa3ueHvmL5ivnbn4wUFkxQUzTPUGj+9i9ZfqDMMbAycEqrJYzrQoZHy52jgMp87w== X-Google-Smtp-Source: AGHT+IHPj1pQKabgg6RiNKE9EM6yYiodWXeO7NOJdl8lRD6JvZuIlwB0TIsSiMR4AYYWM0cLyabR X-Received: by 2002:a17:902:ea01:b0:1dd:7e2:b9c2 with SMTP id s1-20020a170902ea0100b001dd07e2b9c2mr8735723plg.10.1710174795604; Mon, 11 Mar 2024 09:33:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710174795; cv=pass; d=google.com; s=arc-20160816; b=0Ec7OAkaQ738xb7ohyrgXXc39wkZUF3jsSHGl+wKxtFK42RwKEF7doZKQ8arxuqLdE mtG9NyxrsH8BcaFCwZPrre9WxloLGiKccmqPoIW2iltLO367i+fo7n5zamQUY0oiS4C0 dQ2ybdI8ZsPMrvbuy4uySkT/xslQzWwKk1lfZmyeWXBHzD9fbs+uhHufYSZ2YJrVAU3I uSBUim9OaQHAZDZGmSussWEmSywp2xmpxOpFX5rRnlPQmZzFChZgHXOHWfqcg5upn2gB BTTC2hv/NOUdhyo5XMcroqrLgOXiZsg7w8+W9dMirykwSnL4DMXDHQJgZsbUrFZQCu0I IvXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=HTmx+rglP8DyioqNi7J7NVsP/noZw8YF/rOjIVAdCv0=; fh=DZx49VWdPmoJqveuCvFrI5FbcXHo7g8TjRaRPbi6pvE=; b=CAQ9zUkltu+hIDCq5HgX8YhTE3r877Db4Yu5R18792X9RyBE6W+eb9vMoD/ZXYKxSg KPQtomH4ZJu4kBBzGRd//VT8ESsJYXpqdMCO4XdB4S4rSrt6pu7zSASUm3IY1s9eRK9h Y2NvZRQWXeO8ZbrOqISG8ht6Nsj9pdnTCP2zM01+Vx90gWZrXqzsAtA4Gunw6U3DQWfo J/3ddOmYVeMy0GZorG34C+Hclcb9EpwgHwrOMc5Seghl3P8ICztDYNQ7ROiRxYPhdPlm PmoWfd2nM/JaXucTiHAVxvmdPXl75IzJRfTsPW1r7YQ3zXT1kfx8lFHygdbpxmhazUO4 o0Wg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n5H4sxEC; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-99246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q13-20020a170902c74d00b001d7404481f6si4871040plq.161.2024.03.11.09.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 09:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n5H4sxEC; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-99246-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99246-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CAA92830E1 for ; Mon, 11 Mar 2024 16:32:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EC2147F63; Mon, 11 Mar 2024 16:31:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="n5H4sxEC" Received: from mail-vk1-f175.google.com (mail-vk1-f175.google.com [209.85.221.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BF2B41211 for ; Mon, 11 Mar 2024 16:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710174710; cv=none; b=cqEW4vyfneDNeYofRDvw6ZBb810ziIbDm/71fUvceGxSKuwqtoW8aPwkXiWA5x3IFIlvDQuUZpohA7chaeBC1fkzwE8XZrQS5B9j1hWMgoxY0KYMsIoeTmrlSWBeFTEoG9zWitc1F1mnhSv/Yr+kiq9Gc3Zb8CBtS6secUrGgz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710174710; c=relaxed/simple; bh=HTmx+rglP8DyioqNi7J7NVsP/noZw8YF/rOjIVAdCv0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=gfu/WlfiO/RC52v1uirrwxVLr17o88RJVtqruK3Uq2zhZd/MkyPJbMMuOMbk1cb+02wgU9hSrDItvpRLJj/TYaqA1zQIeO+17SIY+5feYSfEVzrfrPkCnhYT8ctEUuYn97pYlkFR4qWpIBEGiNf+qCTlxYGvn6VD7NoRPMyl+js= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=n5H4sxEC; arc=none smtp.client-ip=209.85.221.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vk1-f175.google.com with SMTP id 71dfb90a1353d-4d345250ee1so652345e0c.1 for ; Mon, 11 Mar 2024 09:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1710174708; x=1710779508; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HTmx+rglP8DyioqNi7J7NVsP/noZw8YF/rOjIVAdCv0=; b=n5H4sxECl3NdDS4e1fQ8e+AVrKUBP6GCPdrfGTcJJ4QKgn4/4wm1FnTLb0WC9hSX9C gLZfygNuzxPnKvnn8YnzDo2YO33+VXhEsJMzPkZyq5RdEWLIi0bP60Dv3EuMsDQc1+Jz MbJLCtSvNu/bwCK90EnmYa4t7ESwuK49+gzcu/mdKdoULe0m7UD9CcER6pNWdQS759Q6 utGPUn1gZF5Ergx+JMw7tsC25zwg1ip+PbRX74A8pQky/aeJPuNOVOmEyKLPKdFKRO+l dfQLWIHdXR7d0y/MTfs+ytvel6M8HVaAngYZ1XlyUu20jwyvseW/cf3+qun0Rsy3Omy3 mgaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710174708; x=1710779508; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HTmx+rglP8DyioqNi7J7NVsP/noZw8YF/rOjIVAdCv0=; b=BR5R35/hWk5E+IZLAqPt1ouUHufB0nfG0fz8rVaJodJJ8egxGsDFWJSWyOsQIDqQr9 C5XA7xKmYjXxE4VnbvWRrZMhRLFb0bPG44AG/d0vcqAPRWS0lBuFhSaC/xcY1qjCGvAZ QKdoBbp2L0UPFNxmDQaxwsdBSXMjxfF43OQ3wAYGjeJgQYUrPxr1/Hmo4L0GRBZ66tPU whJCKoJUPQdQ1Vk7lncevWB7BZ4lzmDARUXLs2ms3gYSvDNJw31FJWuoz3Xf9qTANG5u xuE4oItoEpsFkwMVPb7PmqNqpWdVYkvVvgBHMPJVMAo7yJjvLzMYbbomA9nqB2VJaEiu nPhw== X-Forwarded-Encrypted: i=1; AJvYcCVLHA18YvPpudnaguq1Gd+WjTEPrLu9aYl1od66mSM7Cwq7D2hzi3FzUtGTdPe9XwXPR3WqwW3dkj8YAa89XWo6KdkDfryNsA2atuz3 X-Gm-Message-State: AOJu0YxuRRwZNDF1Xcg9/DHzhp5uTfN2xvWYX/Z9zmVBVc25FhkxQhfX hlOiYnwj/AhQKLZ9Gg4GEUton3W4bDBKvH0s+gRKDx9wQrepv5MuPlo9P1PWdhvJNvYT28Ir5e/ XdDDBLiHkWd0TJj5wjSMbiW+UyeoNj7JUhuTYIf0wpgt2a0GLrg== X-Received: by 2002:a05:6122:2a0f:b0:4c8:8149:848e with SMTP id fw15-20020a0561222a0f00b004c88149848emr3996116vkb.5.1710174707834; Mon, 11 Mar 2024 09:31:47 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240308175810.2894694-1-bigeasy@linutronix.de> <20240311155927.sbWzLN62@linutronix.de> In-Reply-To: <20240311155927.sbWzLN62@linutronix.de> From: Marco Elver Date: Mon, 11 Mar 2024 17:31:09 +0100 Message-ID: Subject: Re: [PATCH 0/4] perf: Make SIGTRAP and __perf_pending_irq() work on RT. To: Sebastian Andrzej Siewior Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Alexander Shishkin , Arnaldo Carvalho de Melo , Ian Rogers , Ingo Molnar , Jiri Olsa , Mark Rutland , Namhyung Kim , Peter Zijlstra , Thomas Gleixner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 11 Mar 2024 at 16:59, Sebastian Andrzej Siewior wrote: > > On 2024-03-11 11:34:18 [+0100], Marco Elver wrote: > > Unfortunately there's a bug in it somewhere. It can be reproduced with > > tools/testing/selftests/perf_events/remove_on_exec. > > > > (FWIW, the kselftests in that directory are more aggressive test cases > > that I never figured out how to properly port to the 'perf test' > > framework: sigtrap_threads is a more aggressive version of the 'sigtrap= ' > > perf test, and remove_on_exec has no perf test counterpart.) > > You posted to warnings, I can only reproduce the second one. Based on the > backtrace it is obvious what happens and I dare to say that I know why=E2= =80=A6 > Let me try address them. I guess I got lucky with hitting 2 warnings instantly. It might be necessary to run remove_on_exec several times, or even start several instances of it concurrently (something like "for x in {0..100}; do (./remove_on_exec &); done" might do the trick).