Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp313463lqo; Thu, 16 May 2024 07:09:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWee0bdnMBdU0lJmeYdiCLYLIxSENZM2Usn5TYKACMGyAJ5A4z1PFsCESv8bdTSpR9Dq3qfmMfcHVJtWKOHAJPc4q0tUmJ75BLtqfWl3Q== X-Google-Smtp-Source: AGHT+IFnHSqwphap3BaILTaLXlPhBj70NYvhhUwiJEB143rCFPTSDZDhTZQG9dDKjmvunwpZH/Uc X-Received: by 2002:a05:6e02:1c23:b0:36c:4c02:f172 with SMTP id e9e14a558f8ab-36cc1465d9amr210701745ab.17.1715868588241; Thu, 16 May 2024 07:09:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715868588; cv=pass; d=google.com; s=arc-20160816; b=RZ+Rp7sTpe/iSpBW8PgYS50GlrSv3HPrWBFhMMKBKoPKC6iW3XV2zWLIufGVerbLZf EAlyJJ3HwD6UfwKI9uLm2THSz1abtuSl35dAk0fCedw5ncGlxvtY2trhGxsTIXjDwDM7 MbtVVxiSuuFwdaHC8WkEepvm+8OysheUU7Q9jpImM+d72zERqPUlf0iWAR74CA2eiR6Z 5TCNtA/K7VKrBrEgwlHvGPRNXatp4a7Rc62mYUWlSjpjlEC4R43bAqLVIpHsNjb9lAlO hOLSkABiG9b5pXh1vi1vPQ66g70qLX/wGhO92cpKW/Kq/NWf5zkaVeTstiJlwDpxzrmC tqWw== 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=lWxSkoUQ3wqpFs1d3eRtXLHERlY+GquKifVKOjbnwzQ=; fh=2zwCh0TY81QL+m8lKeshJdiobUNV+OjhPy1yNmYchVY=; b=qVQ2Satuaifi2vEQsGbxZ7daxKkRJwKVu27Jhun0++pCa9pogOS2daDIFgz0CleZst zHoIY0BK5+DzNRSgnSxJgDCuD4N7uErRr47QfeVyytT01MEK/+lQ9STCfjKXwmQ1wu03 5ZGrLa8XDKTDx9boawGvjF2uKd/Xx1FkSDE6Hc+w+QnzT2u/4DQNxRXL2BZSLiHy+C0o cBeFY6kAn7EBJ6RGeRxboTXf6KOXwu0+rMBGhfO/lRKzi7WUN7ND/THsqlApP05/aH72 o6HTggCflelJGjGEUknON8j7vwTweIOXslm4/N6KckjLfQ3mVWAJebPw6ep+UyLviuwa ocdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OFklCUGc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-65bc5dd2a8fsi773521a12.153.2024.05.16.07.09.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 07:09:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181150-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=@kernel.org header.s=k20201202 header.b=OFklCUGc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-181150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181150-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BBBE8282B38 for ; Thu, 16 May 2024 14:09:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4899D1494D5; Thu, 16 May 2024 14:09:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OFklCUGc" 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 6E8FB1474C6 for ; Thu, 16 May 2024 14:09:42 +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=1715868582; cv=none; b=QjN4xAuayxjJvfsccw6HX2z3KqpivAwPRt0iKhaF2Dc7Dfco93kr40p1w2qo7oXziNV/9+QE0iQBKwHtxZP+CPaPB0VC0pomlb469aCMrg0dlc4lPmRyB6wggfMRmypXyZ00Qa2dvI5sptpx5Mbp06JuN9k9297aWHFdy2POtZs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715868582; c=relaxed/simple; bh=W1WXru2Z9alaapdgnToS4XIqvX+bFFl9qK211MkyCh8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=nCOjUUici4D5UngM4MIw9BtFqf7+1bArsBYVaoJH0FDv82kzjUp7rgae15ISS0JQHmhcGcCAJdjDyfq8CnwwueY8MeD3n5aMEjv1y8LN7Rq1QZm8/Hesl9vYuTfRywwI18J2bwOAUdG2tMUwzJmkua8aamisoE4qeWl4yiuRafc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OFklCUGc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99951C113CC; Thu, 16 May 2024 14:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715868581; bh=W1WXru2Z9alaapdgnToS4XIqvX+bFFl9qK211MkyCh8=; h=From:To:Cc:Subject:Date:From; b=OFklCUGcaMPKiq2NQugaXY4hCWdWpUTfwJHVQ0aoW8xg7Y5JJbuWzo9fj/jsyjjyO a7nE5AtJ38okBZuPqRlxl7qZjRfpw24nodVsvQyu/lIjf3tln9QuUILyqh0qGmf6Xp 4P5K5FAUuloTBasZ/3hwn3bVzLgHguqzGHNex251zVmEoPmi5DAOZJ1GLuVstVRhuF Abcy4Tv6Ne6xjt4NREunFwMYyQg8GGWQdf4Yc+4Xl/ojteDwPWxvmr/q7Kbf+bOwhK vvIgs+k+29PI3DnsGqkJ962kS1AR0CPhWIKpJudvS//JV0V4ULQwuQ4SzwozdOv6j8 d6XYIUjdyY4Qg== 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 v3] perf: Fix leaked sigtrap events Date: Thu, 16 May 2024 16:09:32 +0200 Message-Id: <20240516140936.13694-1-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changes since v2: * Simplify the branch condition on [3/4] (peterz) * Rebase [4/4] accordingly 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 | 49 +++++++++++++++++++++++++++++--------- kernel/irq/manage.c | 2 +- kernel/task_work.c | 34 ++++++++++++++++++++++---- security/keys/keyctl.c | 2 +- 6 files changed, 72 insertions(+), 19 deletions(-) -- 2.34.1