Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4602081iob; Sun, 8 May 2022 18:52:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcM0gcBciJXccNHg8lqS3HRQv7No04p4ig+iay3uzu5F1JP4e38Swo6kapTX4yxsoeZ59G X-Received: by 2002:a17:902:f70a:b0:153:88c7:774 with SMTP id h10-20020a170902f70a00b0015388c70774mr14170452plo.166.1652061123393; Sun, 08 May 2022 18:52:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652061123; cv=none; d=google.com; s=arc-20160816; b=E5v+xrXk/uSMRKUDLAxKWqXqmGAKfrcwsFmqrtna3PWKTMzoDtVWA3GVeV9SSRoKQs 6S4SL/JXfSfjs9WSSjMR0OpyDhVTPmjsKwogQBYxbApEnMOwmvPCv3qj/3c16X4qfGR7 mEQkccqrLstLHQCZIGzTKyBBb1qt1n5JV8VwTZiJXZAFIbo1AeRU+DmaCs1BRkaJ70Cx QRAgU3uWKSjiQG0ZhZNMjJbUv7ZHR0jGLdOz9sTXjXJ+qSUPCVM9Ey+VBUT4pRrRpr73 9/7bmKYVxG4mBOfgrmA0JK/0yPcEVo0RAYpbfWKt8BOmKlaW7Z47AwjyVu/b0Mc7SGAG hNbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uan3YSckKD+F0UyoMcwlRwcC7eK4puADfdJggDA8Ug8=; b=gzDRbHedFSe7r8ZZltlbLL2wA1WLullG+5GwEFIFyQg4kdABLJFLOsX7fRRSaxuljt wY1XQi9EYYV8c9UEaRiHpCuAiPE4ryjxOny0aGVYwIBIkMyL+a3Lukw2gj5NxX4P1R99 7VpLVCnf8l7Qoqz7qmfNKxzVzDt2l1r97WRnwDygoP4fgxa5yR9nm5EJfmJmEZEizd9F R/43TWnn33LFS/C52d43unKpmnzYsKLjIo3YAZiHKW1p/pG2uTRbp/YI1oxGyn31lgqN IeoavhXAqZbEW3nadJfkLxUguauFK0TPsnS0DcH22fMoa/C0NW8GXHbp5IJfCHt+Nelc csWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J4LFNwMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l70-20020a638849000000b003ab77b8d779si12415411pgd.550.2022.05.08.18.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J4LFNwMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0D55A1EAC6; Sun, 8 May 2022 18:50:44 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442753AbiEFPNX (ORCPT + 99 others); Fri, 6 May 2022 11:13:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442724AbiEFPNF (ORCPT ); Fri, 6 May 2022 11:13:05 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8651C6D1A6 for ; Fri, 6 May 2022 08:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651849757; 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=uan3YSckKD+F0UyoMcwlRwcC7eK4puADfdJggDA8Ug8=; b=J4LFNwMTAVdNxv0smgzrWR17rQGXWplFC5KJpNtrOzNuvPgJJF4SYgQSHRiQf/Ot+EKEMT zof64U+s/TQLPxWH5uKGQKBPijbJwBL+u01Q91gwEYaCTZRvHbuasv4vgjXfwEHRn8Qsb/ 8asoskWQSARsAPXWYevuNHavPbNdCxM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-152-9PYLU4-DOXGJvQCz3IoESg-1; Fri, 06 May 2022 11:09:13 -0400 X-MC-Unique: 9PYLU4-DOXGJvQCz3IoESg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 549788039D7; Fri, 6 May 2022 15:09:11 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.192.95]) by smtp.corp.redhat.com (Postfix) with SMTP id 91E7440CF8E8; Fri, 6 May 2022 15:09:05 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Fri, 6 May 2022 17:09:11 +0200 (CEST) Date: Fri, 6 May 2022 17:09:04 +0200 From: Oleg Nesterov To: "Eric W. Biederman" Cc: linux-kernel@vger.kernel.org, rjw@rjwysocki.net, mingo@kernel.org, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, mgorman@suse.de, bigeasy@linutronix.de, Will Deacon , tj@kernel.org, linux-pm@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Kees Cook , Jann Horn , linux-ia64@vger.kernel.org Subject: Re: [PATCH v4 10/12] ptrace: Don't change __state Message-ID: <20220506150903.GB16084@redhat.com> References: <87a6bv6dl6.fsf_-_@email.froward.int.ebiederm.org> <20220505182645.497868-10-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220505182645.497868-10-ebiederm@xmission.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.11.54.1 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/05, Eric W. Biederman wrote: > > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -103,7 +103,7 @@ struct task_group; > /* Convenience macros for the sake of set_current_state: */ > #define TASK_KILLABLE (TASK_WAKEKILL | TASK_UNINTERRUPTIBLE) > #define TASK_STOPPED (TASK_WAKEKILL | __TASK_STOPPED) > -#define TASK_TRACED (TASK_WAKEKILL | __TASK_TRACED) > +#define TASK_TRACED __TASK_TRACED however I personally still dislike this change. But let me read the code with this series applied, perhaps I will change my mind. If not, I will argue ;) Oleg.