Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp907724pxf; Thu, 25 Mar 2021 17:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5hRzFsaoAg664EjnnV1ek7Sf/d+1p74C+bk3uxoUoYhdInD5BIQmoIUbPLF36rIomUsEo X-Received: by 2002:a17:906:bcc7:: with SMTP id lw7mr12711172ejb.209.1616719417050; Thu, 25 Mar 2021 17:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616719417; cv=none; d=google.com; s=arc-20160816; b=J5P/b7Pl/WXk+gIm+A4u+63CCHn1RdU/C9N53N0HkyFrcs9k0eRW2HvsU7LBvL8AkX MI65BUnwiUZdO1FVbKt2fdr+f781b1igreGAJIQcNscNGEaXU0R2z6H1NEOL3clZhutX j0akxacU/+7TSgkqFbwrceHwT599ThKmw+d33EFOGL2LQtaYMtFeTS+yaEu96eOKM/Aj 48GokLfSS5FLz8u2quT6OcYaChgD/lqzgSsI+5XmVb2+70UC0PxEilbSMSZKuv70LZNW L1d8e2Q3racMPNovfVa0S/N1DsP1S6WtaqRPW/p0gXBMTLQ+iJD+xzAPDSmgVEspNnR0 /kMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2AQtMuOB9bXRoDfBmDGIY9ygRNoX9J/CWoDuEf866/M=; b=V02XeXiwjV1eKKGggB3O/1/TkRgywNM1+Ii9yNOJmJ7lG04x86hk09BmIs68e6qfuX ixm2hVwymfzhszCCZN3k/YsdQH2Mp+Pa5HDWJIUc7EKxUIntR5ozhWCnneCXDCyKzPx3 zNOtlrDcI+G6mpLXYvQpUdGKDqOYLszTp5xDfregozWU9l6Wf4RULpsMcOaKt5GFrFB2 35uQOM8gLpcMNX9MfJNHlOiIfXuHStaY8uCAv6MUUK5jFoPS39FQnDeku3vJPMEEdPJR /ioyaOAtqGOxQr0r95Cfn1j2fZs7C1ESN0DxkY/xjxmDKGfAUyovLUdF4fCPpaQJjeUf oXWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=avsmrllR; 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 dn4si6287033ejc.709.2021.03.25.17.43.14; Thu, 25 Mar 2021 17:43:37 -0700 (PDT) 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=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=avsmrllR; 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 S230131AbhCZAlV (ORCPT + 99 others); Thu, 25 Mar 2021 20:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbhCZAkt (ORCPT ); Thu, 25 Mar 2021 20:40:49 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E2F3C06174A for ; Thu, 25 Mar 2021 17:40:49 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id o2so75079plg.1 for ; Thu, 25 Mar 2021 17:40:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2AQtMuOB9bXRoDfBmDGIY9ygRNoX9J/CWoDuEf866/M=; b=avsmrllR7+0gfohzFsk6ASZHgl9TuqABTHAJ2V+eiz+DSys2Q/pzcvX/fVH2y6dK3A lN3baIPCSMVclURKqiGfnpVH1Htvcv+xWplzmoIIWYkRZft23OTfwQXl1wkDMy/rn8LR jBwAgavTqIx28ENWIWjSiZCcP9vYtEATf7Av3Qu+CkBTI+4KP9KMHs05Sqon7g3EPvQk iFUXt7P6QbCUPZTO2yUT/AaFdlI6P5IlNMCN72fXN8paDBIj2fBxYUwjTIgq6gcmhfZ8 S6aIddhzcij1lZICm8yi4oOqoX+BnNIf2tAFez/DvFe2XhsXaa2QEw7IK/t0RJ4UHWKy y28g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2AQtMuOB9bXRoDfBmDGIY9ygRNoX9J/CWoDuEf866/M=; b=q4mrFvF2wmnO+MaGezYnXkN34JURjEzgmwNXUvZRrXoDdoKJkSw5yV2Vwd2tXT0kvd fY4nU1MEkmDozHC3FOrGuIcHpipklMepsM4cd2kQGr6AGChBmqRij/157ljINoFVPmiG /6wn2nemjmHyg0iNGdftE1XpWfrCUW1CHF02jViDJc8sgh+dHKsAJs/zAOtOlvxLPlyq +QZrLGYNMCsqe+UEuWpdgne5n2RSjKys0TLQSRcd5DFvLXEv7jgn5u+XOK98a8tNsYP7 9naj935eCPD/Eseq3M/HJY9/BIau0qwgOWpdfPAP+p3oxXpqvh3iNQNnGTplPx/6Cp0I jbmg== X-Gm-Message-State: AOAM531JuULsIchhE4hzWTRArVUMRs9REoOl/osSzbMtT5AAFoHliziv JZw8a5PLopsgFjjWm+xNjqN1ew== X-Received: by 2002:a17:90a:1b08:: with SMTP id q8mr10734086pjq.203.1616719249055; Thu, 25 Mar 2021 17:40:49 -0700 (PDT) Received: from localhost.localdomain ([66.219.217.173]) by smtp.gmail.com with ESMTPSA id c128sm6899448pfc.76.2021.03.25.17.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 17:40:48 -0700 (PDT) From: Jens Axboe To: io-uring@vger.kernel.org Cc: torvalds@linux-foundation.org, ebiederm@xmission.com, metze@samba.org, oleg@redhat.com, linux-kernel@vger.kernel.org, Jens Axboe Subject: [PATCH 3/8] Revert "signal: don't allow sending any signals to PF_IO_WORKER threads" Date: Thu, 25 Mar 2021 18:39:26 -0600 Message-Id: <20210326003928.978750-4-axboe@kernel.dk> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210326003928.978750-1-axboe@kernel.dk> References: <20210326003928.978750-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 5be28c8f85ce99ed2d329d2ad8bdd18ea19473a5. IO threads now take signals just fine, so there's no reason to limit them specifically. Revert the change that prevented that from happening. Signed-off-by: Jens Axboe --- kernel/signal.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/signal.c b/kernel/signal.c index f2a1b898da29..cb9acdfb32fa 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -834,9 +834,6 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info, if (!valid_signal(sig)) return -EINVAL; - /* PF_IO_WORKER threads don't take any signals */ - if (t->flags & PF_IO_WORKER) - return -ESRCH; if (!si_fromuser(info)) return 0; -- 2.31.0