From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4BEAC433E2 for ; Fri, 26 Mar 2021 15:52:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9D5E561A26 for ; Fri, 26 Mar 2021 15:52:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230444AbhCZPwP (ORCPT ); Fri, 26 Mar 2021 11:52:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbhCZPwG (ORCPT ); Fri, 26 Mar 2021 11:52:06 -0400 Received: from mail-il1-x136.google.com (mail-il1-x136.google.com [IPv6:2607:f8b0:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38C44C0613B1 for ; Fri, 26 Mar 2021 08:52:06 -0700 (PDT) Received: by mail-il1-x136.google.com with SMTP id t6so5380293ilp.11 for ; Fri, 26 Mar 2021 08:52:06 -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=hMymc1XEJnHboewJHBELgaGAh0vm6Ei5t+AwJJuno7Y=; b=PWMIzL4AReCIo7P6ZLE4Puv968iq2t+WZ9f03chcHWKV2bOEOm8cnJUcLmm8kzZqz+ RJJknnGQ6dJFVKU2z6KD8HU3vEE0UrcFBx1gZcMB6rMFhdw9wb1/Qr8RamYQrtEuiqsg a4LoPm/eZ7u1XZ2md5ozJJV6/kge6wQQJD8IqynIbm3vG+Cu5KN6k695psVZtVaEbDzU 8QW9ZaXq+uggqOJoLvmRHZoyBYis1B7JwL6VKxVoEZ/sWlM9EEGGg0YHGJajz8vQLFhI jzPN94wQPazNHVh2aQ5spQO6RfJDgS1+9NeO1py8N0RhCKMr6/2k9XB9+D2YRG8v9zF9 B/HA== 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=hMymc1XEJnHboewJHBELgaGAh0vm6Ei5t+AwJJuno7Y=; b=AOyS/EB3q3K6ZKDA9N/BWMunou19l8fp+WwbWV7eFf3NvfijT72Mbww2ObF3yS23Av JSX6ia2ObwVWR8C/x1csQSu2eKaFN9b5xCCs6Vc9pCpV9Qa5Ip0vZhYwgFhtcrX2CSYF 7MTKbhrDxPKqyuf411wz8nGd7Yss0m2MKL2G9pYIgeJNjPzGuvoTV2GkuYDzO5tWwqqg fW285ZYAOTh9AoYF9PBuppLKwiePHBXQmypk2ZEqQg3cXuxzXoTbkCqQpOWyQQV62ASb PIvg8b1eA+bfPwwJnflD3zPPj/vPN/5GF12NdRcrPeY1JeFRO9RxQZbv4iuzPm1ghn4D rkwg== X-Gm-Message-State: AOAM531uAgZgh6C3p+CgFYndMCaOQTwKaHL3cbhRl8mF7XvWx7ksF6ES aPRqdShqAOyA4N+axu/cfsIKF8wfWuSzCQ== X-Google-Smtp-Source: ABdhPJwKRPA+P4hY5sdmIqs505YO+U1mCaz3WcrQ2M6OLnhntwgJA4iotDi5JroibR4I5azV3MY1hw== X-Received: by 2002:a05:6e02:1848:: with SMTP id b8mr11225378ilv.122.1616773925443; Fri, 26 Mar 2021 08:52:05 -0700 (PDT) Received: from p1.localdomain ([65.144.74.34]) by smtp.gmail.com with ESMTPSA id a7sm4456337ilj.64.2021.03.26.08.52.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Mar 2021 08:52:05 -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 03/10] Revert "signal: don't allow sending any signals to PF_IO_WORKER threads" Date: Fri, 26 Mar 2021 09:51:16 -0600 Message-Id: <20210326155128.1057078-4-axboe@kernel.dk> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210326155128.1057078-1-axboe@kernel.dk> References: <20210326155128.1057078-1-axboe@kernel.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: io-uring@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 e3e1b8fbfe8a..af890479921a 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