Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3675356pxb; Mon, 1 Feb 2021 01:25:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrjF3O4Xr/EDZNmcTVZyZHmrcTr9xgvIB9M22NWYZVe5LWWWUyRdVg9pkdl7uIB06E7GBn X-Received: by 2002:a05:6402:1118:: with SMTP id u24mr882669edv.386.1612171551127; Mon, 01 Feb 2021 01:25:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612171551; cv=none; d=google.com; s=arc-20160816; b=zoAFuIS8Q9IAl7GNFYGpYX6zC389r4GJ7MJso3DqIKjnYftKhJFCIXbczsbImOZ/mZ NABZ4nFs8nKwH7Mq5MFEUi9KAQIlzRA5ML0SscMCxYYmvWSktUjjWxRQwkPAWEI42XlL xpulc4qXdl4AsK0Umdd84HXebAHw3oI7BySrrFbcT5/KiAXkn1zc6QuEz+lmXJcZ5Q1T SyfUZn6bJScYuNU4vMkUOyXkODwpoaHMffOFoC7ftB+iIEAP9dzcEDuXqHzTOB1OTsf8 MHVBbOVyEzRehHsIcupk4vq9NUihLppc7rQdzyG7nk19SFHV6t8l6w9kD+O+Zuww5Zq8 pcKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=m4R5BkzhKMHXACC3fJ4P7syCDqSSnz8E3Zk8HUxOaOY=; b=gOBRo/kGldjGitecphZ2gp9iABzNK0YlZgfc2rRnoY5XT5xO3b2h2HvzEUg/G1o79Q iR3jQky2VcxV/mjJxEQvpn+5ucETzl++oifw25V6KysZ8BU4YwaBZBgiXEvRZi7LQP2X LBZm1jOShr0N7VJVR75/zh5Dja8JHZd0X/1vz0UBhjsUCjx6huctAI8JmvYw1wEJ8u32 7Y4Au1qB6TJV41Tqn9tBjk/Z4YaVrjP1767FEukvuLBSdOuS1e1YoNHQBtlrjXoKP6XC 3u30dS5RtGxGN9S6IoCqsHIoelOvUo7hnZLLEIXvj5sw+kIVHU3AkzTBy5/Ilru165gh ugFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=yyfRMlS8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j4si79000ejv.17.2021.02.01.01.25.27; Mon, 01 Feb 2021 01:25:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=yyfRMlS8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232805AbhBAJXi (ORCPT + 99 others); Mon, 1 Feb 2021 04:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232543AbhBAJXh (ORCPT ); Mon, 1 Feb 2021 04:23:37 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE68CC061574; Mon, 1 Feb 2021 01:22:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=m4R5BkzhKMHXACC3fJ4P7syCDqSSnz8E3Zk8HUxOaOY=; b=yyfRMlS8YY3jQfMNd/jpdcqegH kDZU5/i3dGRzP3LOFsCgPdeDIbNJZ9VK9Y3T+n7UUKo4s46/v1Ucnv/1KnbsiEUR3BZYVwac0LtrU 5kADJWX4sKKjCCZgcVnUQBxUWAWRluBx6q6B4/McX72rYhRKuaD/mpT2DrNH57eu001K5Pk5TwCY2 65FNTTnuJgJmNbtFk8/WLv5YLM/2uDrO2VgVIWvQrkSxCYrqbrQC4jB33+Rb3HZlZb6D6o2wUrVK7 9LxoY6nP5RRV2uN+ZCSSK3F842tM5YxsLcreQFXUSO9jgJFEHWbJODbFZwkdi2NkO/fqW6IClYFAF qEOsehFw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l6VPk-0006UK-Sw; Mon, 01 Feb 2021 09:22:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 129BF3011FE; Mon, 1 Feb 2021 10:22:27 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9AE942C10ABC9; Mon, 1 Feb 2021 10:22:27 +0100 (CET) Date: Mon, 1 Feb 2021 10:22:27 +0100 From: Peter Zijlstra To: Dmitry Vyukov Cc: Steven Rostedt , Ingo Molnar , Alexei Starovoitov , Daniel Borkmann , andrii@kernel.org, Martin KaFai Lau , David Miller , kpsingh@kernel.org, John Fastabend , netdev , bpf , LKML Subject: Re: extended bpf_send_signal_thread with argument Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jan 31, 2021 at 12:14:02PM +0100, Dmitry Vyukov wrote: > Hi, > > I would like to send a signal from a bpf program invoked from a > perf_event. There is: You can't. Sending signals requires sighand lock, and you're not allowed to take locks from perf_event context.