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=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 AAEA5C433E3 for ; Thu, 25 Mar 2021 20:41:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7529061A42 for ; Thu, 25 Mar 2021 20:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230377AbhCYUkg (ORCPT ); Thu, 25 Mar 2021 16:40:36 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:28276 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbhCYUkW (ORCPT ); Thu, 25 Mar 2021 16:40:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616704821; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7uJ/V1bTwvig9f9AKI3u7uSUQp3VUNxC3YK1FhlyHsQ=; b=Q6TWVGL9Jn4YLnGy4ImnRl5FAo0tTxpAX/iD4WJiMpBb1V10aQ1fVJ8l+Lc39Bvev3CjVh 5YiFhBzM4i1tuCodkZJO+kVMEWlHfWKxAdIWhJcxZ8YFjMPKxHvVNLlc4gjmmczLTshPzL X3AQ7Rhf3Ww1GakegayeqKVHNITYGNs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-396-wGM5OXhCMs6M9Rj-vRg9yA-1; Thu, 25 Mar 2021 16:40:19 -0400 X-MC-Unique: wGM5OXhCMs6M9Rj-vRg9yA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2FBAA107AFA5; Thu, 25 Mar 2021 20:40:18 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.41]) by smtp.corp.redhat.com (Postfix) with SMTP id 8D3D060D11; Thu, 25 Mar 2021 20:40:16 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 25 Mar 2021 21:40:17 +0100 (CET) Date: Thu, 25 Mar 2021 21:40:15 +0100 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Jens Axboe , Linus Torvalds , io-uring , Linux Kernel Mailing List , Stefan Metzmacher Subject: Re: [PATCH 0/2] Don't show PF_IO_WORKER in /proc//task/ Message-ID: <20210325204014.GD28349@redhat.com> References: <20210325164343.807498-1-axboe@kernel.dk> <3a1c02a5-db6d-e3e1-6ff5-69dd7cd61258@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/25, Eric W. Biederman wrote: > > So looking quickly the flip side of the coin is gdb (and other > debuggers) needs a way to know these threads are special, so it can know > not to attach. may be, > I suspect getting -EPERM (or possibly a different error code) when > attempting attach is the right was to know that a thread is not > available to be debugged. may be. But I don't think we can blame gdb. The kernel changed the rules, and this broke gdb. IOW, I don't agree this is gdb bug. Oleg.