Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10784951rwl; Thu, 12 Jan 2023 02:29:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXvjGtW28ngu6XPRjhMmIz2dFx+E5Eybqb5DqWAzLyOSk/JmKHVrnxvq1Ns2arnBFQ1HwnjO X-Received: by 2002:a17:906:36ce:b0:838:1b80:9a7a with SMTP id b14-20020a17090636ce00b008381b809a7amr63193913ejc.12.1673519397617; Thu, 12 Jan 2023 02:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673519397; cv=none; d=google.com; s=arc-20160816; b=eMSmZUYNvg+hbQnUTumGkFyaKz9QAO6u6WD8/Iatb2TEnD0Prj67ZcxrCffm2Io7R4 18W9TDOS7kCs8xpf3JvT3Xoz+qxjv5hdychQS32giHB+ZQwrEjiLedJOxOdHX7hBbBb3 XRNq7Eo43l6230yyZ340rIZUxtS+Ln7HfnCm95DbTwI5VyPn5+fDPu6v4FBShaC0D+hH 2b3Y5X2QKqgls0tKYepv+dFfGgpQflCvU480MNVloD9As5cS2k0NNjthO+brWZ9VAIcb /WHwYxfB3AlCoYH4ER/lhCGBgHV7tFGow0XiYZGTDTtDDpruLudLFv5wIrgVLFhwhGJG 7MOg== 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=Vrs/k0kGenx+NFo3Jw8RY4ecr7/0oXGYxEZPXWzxnk0=; b=vRDql0AWGdsN9e1BhWBR6Y0uyoKDiqJcwHs45OU1xL9GFuZKvzOp2i+Sa0pB0T7BHT b81KDpyxj9AZ/4H9KOsmPO3f0fbIyuX5Fqqsk5Z+YaIOKF3SP91QFsvjGEF0Ay95Wgy0 jyt5yiU2aXYTY+I+uivxMDVasE4sFHaCoD67jHfzzhuReRlBllKgEYzWhW19IHNmTmk0 rQLVtI/P9bYNG6DKN75Va3Eo2sOKxwO9IH3HSJW27H1vO1xDMTpwv41HZj2wHpXYTFz8 SqL0DtsoMv50LgWH381fPAsKE7fufJIiPra1U5awiY9MS0G5dmfCjzRCdkVww8BugR// wzPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U5o7pGHN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd9-20020a170907078900b007c16107b16bsi6768226ejb.432.2023.01.12.02.29.45; Thu, 12 Jan 2023 02:29:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=U5o7pGHN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237323AbjALKBf (ORCPT + 49 others); Thu, 12 Jan 2023 05:01:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231389AbjALKAj (ORCPT ); Thu, 12 Jan 2023 05:00:39 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E188762F6; Thu, 12 Jan 2023 01:59:20 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7BD8661FCD; Thu, 12 Jan 2023 09:59:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 145BAC433A4; Thu, 12 Jan 2023 09:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673517559; bh=DNY322/iimzurqg2rAQmkk32JHcSLTVqr6N5got/hZY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U5o7pGHNdf2+x2kSllWmxrFy1xZ+aOIXlUpN0b2iFyFVARpJJSgHRzKKFlMPEk3ts 8k4Naa26+U5ikUFoI8E6iNfXGUFinpWkAmS4ehzSexHlOMGGoRPl6WiCAILwo+umCg DcmaPppKaxvQXyeO5+Er62WlslUNVIVPHAlgkCV52CnsG+1+8txesE3cb7ntOpESmD njF6ytkh+mjN5Rwj7c9EZo8QRFe28j+/3uPdah14fQE9qM7Y58FtVMoyanMw+cPACj mAdF5Ti0+j9njywliIxVJ3R+WS47FNQpdQr0u1kqoIVnDXMzm/WE4XOk5/CavJ9X5b bqBVUlnpacjuA== From: guoren@kernel.org To: arnd@arndb.de, guoren@kernel.org, palmer@rivosinc.com, tglx@linutronix.de, peterz@infradead.org, luto@kernel.org, conor.dooley@microchip.com, heiko@sntech.de, jszhang@kernel.org, lazyparser@gmail.com, falcon@tinylab.org, chenhuacai@kernel.org, apatel@ventanamicro.com, atishp@atishpatra.org, mark.rutland@arm.com, ben@decadent.org.uk, bjorn@kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Guo Ren , Oleg Nesterov , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= Subject: [PATCH -next V14 2/7] riscv: ptrace: Remove duplicate operation Date: Thu, 12 Jan 2023 04:58:43 -0500 Message-Id: <20230112095848.1464404-3-guoren@kernel.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20230112095848.1464404-1-guoren@kernel.org> References: <20230112095848.1464404-1-guoren@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Guo Ren The TIF_SYSCALL_TRACE is controlled by a common code, see kernel/ptrace.c and include/linux/thread_info.h. clear_task_syscall_work(child, SYSCALL_TRACE); Signed-off-by: Guo Ren Signed-off-by: Guo Ren Reviewed-by: Oleg Nesterov Reviewed-by: Björn Töpel --- arch/riscv/kernel/ptrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/riscv/kernel/ptrace.c b/arch/riscv/kernel/ptrace.c index 2ae8280ae475..44f4b1ca315d 100644 --- a/arch/riscv/kernel/ptrace.c +++ b/arch/riscv/kernel/ptrace.c @@ -212,7 +212,6 @@ unsigned long regs_get_kernel_stack_nth(struct pt_regs *regs, unsigned int n) void ptrace_disable(struct task_struct *child) { - clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE); } long arch_ptrace(struct task_struct *child, long request, -- 2.36.1