Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp59403lqo; Wed, 15 May 2024 07:43:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGvK5jSbjxdCvPfOTq5tVD/PtVZYCOekDwNN/FQGlEKC4A+rBhJSfoh2ZU5IWQ3ypqxW3mKj45YopMhVb+FN5gaYwx8iFgI8pJHZgc5Q== X-Google-Smtp-Source: AGHT+IHTmhi4DyuAp5c4NCkBQsu+oWvyBswrRZu+sjn9dCdSFzXyBDypPhq2TCxrhlRK9+wEBSx/ X-Received: by 2002:a50:f616:0:b0:56c:d35:1775 with SMTP id 4fb4d7f45d1cf-5734d6dea64mr14557846a12.35.1715784205289; Wed, 15 May 2024 07:43:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715784205; cv=pass; d=google.com; s=arc-20160816; b=beTUTQWl1fWgxkFmImRlQMtmYBWYmPrEDmvkPPKX5YVUdPYdadSWrj1Banbqw8mJg+ ApbS7p8+csnzgZ7ETUf0woRBC71PjGd+AGeEkY3lFz8gWlX77BTkwmoo1qolOgz7Oq/5 4QVTJz0w3Rmtgyyb6XOrNwqdi5Q3QVCec2qW9IT/LN8yQNvi1KybJt9ROUoe0GqXv/oB pj3+agWKUnQsgYLeudJWatdCoN+GkJy13+uqAdjXHOXs7r/0+V7clm7OySHUb8VHS48V kC1PksrfAuD6I0S+CZX2hLId2FHohXumSkoIf7ORN8e3lDANcexZ7O+29tpwKxxAJWvj UNSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0QpXM6ywH4CGwGxCwuFGUttC9d86mHYMO3BhvT6iIR8=; fh=2zwCh0TY81QL+m8lKeshJdiobUNV+OjhPy1yNmYchVY=; b=LKoU8zTrx35x2BuTOvJUUKhQeNG7RduaK5K2ZPOHRfmxF9i9ci5FQIJIv3rRlA81tt OBcmY66IZp1/LZgb5H0GNf+n8VIJJYVw9MK3cdkmXJmSZDaAh067rKMfTKPK6+i8UBcA wofJy2lP7wHGT+bdV+QKqZ4/2dwuhPBwwh6gh/dnQ7Qi1jRKjQuNgYCVc3FlzCxNQLtO SuzBja2sX81of0CLatwpscOiKCeYkVEIDFLY1KThMDLbcxxFROzwZ0J7EjFyKEV5GJ0D cSDVHGV+uxbdZcGauHvIN3mo5vzt5YuS1vrBpZfcSxJWkaNJ+0f/a1JxW638gP551xjx ROmw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRMbFTY8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3412f4si7849681a12.476.2024.05.15.07.43.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 07:43:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RRMbFTY8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-180019-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180019-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0D7841F2327F for ; Wed, 15 May 2024 14:43:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3AA7915572E; Wed, 15 May 2024 14:43:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RRMbFTY8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 66E4B5C8EF for ; Wed, 15 May 2024 14:43:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715784199; cv=none; b=hqGj70G0D1uBH4/t/t4Nyu6vozvy5I30lTBUN9jF/cD0NtXITir9nClKGeC4mQE5kVs+DIQ1phJUg45eGLmmRNiXQ6fJtzKLckae+m84a0i60jUuP5zNXKQHJiYCfqS/BhuhjOkOSVVd/qmcN+T4BhjxIEUAy4ApbIjdHdfWX8I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715784199; c=relaxed/simple; bh=MYxrG/4OoDfLVTkkT8WxuDkgYkCERZjlW9K+2Ac+afc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cuH9oXclELYRJ0IzMPyGSQcg3ZOjUNi8bi0tS1oiHMnfjnGD5+yyqcPQKZIF7/VyhVbdaIWf++RTkOiXS+af1kgej2szhOWwvnXvqSbjdQo/qHPLTVbLKsHl/28h1JVRIUOBGc01za1cJSCCP2DQNAFln+fh6Al/peDvEY6Gy9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RRMbFTY8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9BB4DC116B1; Wed, 15 May 2024 14:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715784198; bh=MYxrG/4OoDfLVTkkT8WxuDkgYkCERZjlW9K+2Ac+afc=; h=From:To:Cc:Subject:Date:From; b=RRMbFTY89VVK/01ttxKV2j/aSHNu5ebpD+Q20Ve9NouZsmjakgg7NlGXpoTrcs0ic m8sVe+2k1d1hD42M5+aNjodLR5oguObBVR7c+saYsKKFsQ3diRYBW/awacHHZKOBKg ErKu1JL0wzVRvTShyTh/so9/9jhUXBRFmHsi6iMjNYIhuZD1ZnXP0bKGoLcOaMFSuU 9n7tTgnlKabApJUYv6NgL6Fvp35iEfIjEkPSy9m1gsZsaajdcA3K6j1YtrER9Ypm/p I4YJN2jcsitYb+5dli8hRhM5mz/KV5FBPsxZok0Nn30rzjLTRjO301Bye+0hVFNnIP TJWfXV+e2Fx0A== From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Sebastian Andrzej Siewior Subject: [PATCH 0/4 v2] perf: Fix leaked sigtrap events Date: Wed, 15 May 2024 16:43:07 +0200 Message-ID: <20240515144311.16038-1-frederic@kernel.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, After discussions with Sebastian, here is an updated version of https://lore.kernel.org/all/20240329235812.18917-1-frederic@kernel.org/ Changes since v2: * Use rcuwait instead of waitqueue (more RT-friendly when preemption is disabled) * Add a few comments about RCU-ordering expectations Thanks. Frederic Weisbecker (4): task_work: s/task_work_cancel()/task_work_cancel_func()/ task_work: Introduce task_work_cancel() again perf: Fix event leak upon exit perf: Fix event leak upon exec and file release include/linux/perf_event.h | 1 + include/linux/task_work.h | 3 ++- kernel/events/core.c | 45 ++++++++++++++++++++++++++++++++------ kernel/irq/manage.c | 2 +- kernel/task_work.c | 34 +++++++++++++++++++++++----- security/keys/keyctl.c | 2 +- 6 files changed, 72 insertions(+), 15 deletions(-) -- 2.44.0