Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4383883ioa; Wed, 27 Apr 2022 02:35:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCTBTPmVwwqKtQql8MsMVelP+tT619iDbt9E+2TVwhhgW+Hrioi7r/tR7LUzODRRFeMGck X-Received: by 2002:a63:e24b:0:b0:399:1d7e:1503 with SMTP id y11-20020a63e24b000000b003991d7e1503mr22894660pgj.335.1651052121201; Wed, 27 Apr 2022 02:35:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651052121; cv=none; d=google.com; s=arc-20160816; b=goeyvrMFRQAAirdnAlZW/yJpx0FHUI7k/GufOpkDXe16pMmyqKYjzkTnySNLBJvSOn oI4/9u4XhwYrEq/Q2h6gUqvM7o2bU4eBEDytcD2ah0JKDQD4ULbrDul5z1hOFcSugQST OjAACQgJ1va9CylFbZQ4XAv/hAnVgyzgnmNsmUpJdH3g9t7CRJgswk5PI2wQ4KziwLa3 ha9rKjODeRBW7IY7pSW+K3xGfMsB46QXkPwKy7uEJxn0r9zanWoegnjhCH0hz+znKVGo 2hpz/fX9H5lOi7QrSQ/6XMGi7oLnDVY/31Y2LQ9cyhhPz555yNd+f7aKYuxmoRiloJiZ 9GAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6g4o+wEfKL9+T8sQSTcxefCBo4KDuhC1uhCrtK54UWo=; b=KwVhArog7r7JE/VmjZh7DnqQxI9X9SIUiQRMbMX/H07yiNQTVanitEB+SnRr+Ql/su s32ae6NbOOnk3vvDcgytB4tW+yQguOsG8hpC3IOv1IZa3nR+wZh3pO/3/M2186gCWMav j2nfBBsnQN7zXOfM2MP/F4xHkjC3pWGCtWQadBxUPqBM6pOCR1WYybqyvMX3Mnpbk/PS Z/JlC1qLO+mKkYhNN2HeSjX1idTIulGE0xiceLg/dUVQgpWLP8zV4X6UpSgD0vD5jkwr dHtdfZPl97RVt0JysT8vOhCfoO1ssQDnpR1dNy4i1GoT5ijMxWzF9LBZJkyv+PmeSfiF y/xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZublxYN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id m18-20020a170902db1200b00153dd942e08si1246820plx.407.2022.04.27.02.35.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 02:35:21 -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=@gmail.com header.s=20210112 header.b=RZublxYN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6815926B5A5; Wed, 27 Apr 2022 02:14:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1356144AbiDZXgu (ORCPT + 99 others); Tue, 26 Apr 2022 19:36:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356149AbiDZXgs (ORCPT ); Tue, 26 Apr 2022 19:36:48 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5BBC4C438; Tue, 26 Apr 2022 16:33:37 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id bv19so108884ejb.6; Tue, 26 Apr 2022 16:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6g4o+wEfKL9+T8sQSTcxefCBo4KDuhC1uhCrtK54UWo=; b=RZublxYNfQ7ngoScyoD6qTgaa97/w7pVGTUyLZhdE0TbXzm6oFZt1wzzdGxgoB+FOp ZURXwDkCEXvHnAFv8Qg7/HFrHMVTKXQoL74HkkAplLob98VWlB+9Q+cEJ1hNOOSOSXII t1AIQmJg8BTbun+5r7wh8s9RJ6EhtfHg5P6gBvE7vklc6IgSkphXHRc6NrmHWSBVM3RF 22/DppMe/W6wtg/i8IPus0fmKZoF4YFiaHF6CT8c10rBNMuJrP0EG1DFiEvM3XxRLDVU tf5d59s4jmV7/sJdbMAgJSGbuLa/PaetUFZ3cWHDmN3qlp1YiNjbvZ0rRppM7T1oIzek 7v/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6g4o+wEfKL9+T8sQSTcxefCBo4KDuhC1uhCrtK54UWo=; b=L3pVqOVtksF6RYyDxH0yeKYak1OlmdSZRrHTkKoPCznJjgRQ44ntSmNug5OFIP5xv+ y2+AK0VZP5Gc+R0eQlCdBh1Y9K57yRLNL6fYfyCz8dMBDsbROcv2idaRy62xJZ2uoIw7 86YIL0RQy37G+kxbkhjLrfq4wApTvp6bYwKxU2EvAWowqCROpOSDoTmgF1RUwhPxTmw9 hq7ogP3OYStWhu84vW29pWM8H4zxwe+91kk2IkSll7utzp/NY8f2/vZuvn3rDHIm3KBD Yn+eEWfmWs954xBeLotR2XT59nBIAezMUNWLNUAjrg3FC65W0cGKzRcIJ2Is6L6/NKaw VLqg== X-Gm-Message-State: AOAM532+Bv6jr9wn00m9Kicq8qw07dUwk2sMYtnDudO25zLuXlVuCl1b j34TGgsApJwIK/GjUo2ql1iXD93GKdc7PxAvU+c= X-Received: by 2002:a17:906:7c96:b0:6f3:b6c4:7b2 with SMTP id w22-20020a1709067c9600b006f3b6c407b2mr4426898ejo.676.1651016015646; Tue, 26 Apr 2022 16:33:35 -0700 (PDT) MIME-Version: 1.0 References: <878rrrh32q.fsf_-_@email.froward.int.ebiederm.org> <20220426225211.308418-4-ebiederm@xmission.com> In-Reply-To: <20220426225211.308418-4-ebiederm@xmission.com> From: Max Filippov Date: Tue, 26 Apr 2022 16:33:24 -0700 Message-ID: Subject: Re: [PATCH 4/9] ptrace/xtensa: Replace PT_SINGLESTEP with TIF_SINGLESTEP To: "Eric W. Biederman" Cc: LKML , rjw@rjwysocki.net, Oleg Nesterov , Ingo Molnar , Vincent Guittot , dietmar.eggemann@arm.com, Steven Rostedt , mgorman@suse.de, Sebastian Andrzej Siewior , Will Deacon , Tejun Heo , linux-pm@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Anton Ivanov , Johannes Berg , linux-um@lists.infradead.org, Chris Zankel , inux-xtensa@linux-xtensa.org, Kees Cook , Jann Horn Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Tue, Apr 26, 2022 at 3:52 PM Eric W. Biederman wrote: > > xtensa is the last user of the PT_SINGLESTEP flag. Changing tsk->ptrace in > user_enable_single_step and user_disable_single_step without locking could > potentiallly cause problems. > > So use a thread info flag instead of a flag in tsk->ptrace. Use TIF_SINGLESTEP > that xtensa already had defined but unused. > > Remove the definitions of PT_SINGLESTEP and PT_BLOCKSTEP as they have no more users. > > Signed-off-by: "Eric W. Biederman" > --- > arch/xtensa/kernel/ptrace.c | 4 ++-- > arch/xtensa/kernel/signal.c | 4 ++-- > include/linux/ptrace.h | 6 ------ > 3 files changed, 4 insertions(+), 10 deletions(-) Acked-by: Max Filippov -- Thanks. -- Max