Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23195012rwd; Fri, 30 Jun 2023 20:27:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4DI1NzaRoZ+eN2M6oURR5naopNi+FpzZO6dhe155fY5Kg595/jMBZvpVbXkLUJzbup9xyf X-Received: by 2002:a9d:77cf:0:b0:6b7:6e07:4951 with SMTP id w15-20020a9d77cf000000b006b76e074951mr5121877otl.25.1688182031152; Fri, 30 Jun 2023 20:27:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688182031; cv=none; d=google.com; s=arc-20160816; b=cMZyN69cq7Xe5D/UmuYZxF3SPw/vRMGk8/PEzfnINxQ1LXo/yryagvMtGMC7aXSqLo KTV+O4Axo1shfxSoiZewTdY7tB3c8K+46sAdH35ThIO+Jw+j/+JaY99E4D+apDwKff6n TIgU8IqyQ2Dxqxbl64ApazhXpGXskEwRO4EthHLRhBpabEcZRoHU4BYaRsrNsNT87BMo q/kDP73PVEDBNdeDavzFKgpomifxXveRjVWOME5whkZXxiKzLawpyO0ggSidvJ/y1Z9q xBgc0yz8lZO8WzUHg8abn9KCBgsy/HgsET6/gFdweVz+rKezNoYGb2NC9Hwx+aT/rILu LtUg== 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; bh=z7Hvlun37qCx9WhGhCGmtBOTulXydPCGzsuAKBQvJL0=; fh=lAjGMXQnoY6xAkF3pnOzKnouQaldhMpq2uv0TVYnpxU=; b=cL0ehmM6ZbN4nGLUkTK+/yWVPR2uruZ698Sz7r90SRmsKrndC/U+s7kMXcmZYiRW/w b1ZCcTcnwJQqcGbwpruN2k+qgfrrXTlMJYivaWsk5xnbhKaQQEsMKLrgQGChxoNhyVUL 7rZKZsOz4JNP0V9EIRfIk3UYoGZvce3ImCfajlSmPJVTh+22QJQDEbZ7h7wvUOfi5ISj JvUBOglMu8CdA0cf4UjFyeHnfaty3BXRSp3thbwPSb5ZMGCNRWPuihU1L57m+PqVFQv2 aTLu9fTj+k/YhwPcdLLn9zRq1qhrbrpeIsKs4kQ+QNxocPnJRQZL3qgT5dslkHYvsp0n 34IQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a634b10000000b00557671b7ee5si13649467pga.423.2023.06.30.20.26.50; Fri, 30 Jun 2023 20:27:11 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbjGADZ1 (ORCPT + 99 others); Fri, 30 Jun 2023 23:25:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjGADZ0 (ORCPT ); Fri, 30 Jun 2023 23:25:26 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5A2055A7; Fri, 30 Jun 2023 20:25:24 -0700 (PDT) Received: from dggpeml500012.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QtH161LqyzqSKx; Sat, 1 Jul 2023 10:57:46 +0800 (CST) Received: from localhost.localdomain (10.67.175.61) by dggpeml500012.china.huawei.com (7.185.36.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 1 Jul 2023 10:58:06 +0800 From: Zheng Yejian To: CC: , , , , , , , , Subject: Re: [PATCH -next] selftests/ptrace: Fix Test terminated by timeout in ptrace_attach Date: Sat, 1 Jul 2023 22:58:33 +0800 Message-ID: <20230701145833.3604187-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <202212011638.31BBB562B@keescook> References: <202212011638.31BBB562B@keescook> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.175.61] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500012.china.huawei.com (7.185.36.15) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 1 Dec 2022 16:48:20 -0800, Kees Cook wrote: > On Mon, Nov 28, 2022 at 08:56:09AM +0100, Bernd Edlinger wrote: > > thanks for cleaning this up. > > Oh, hm, I never saw the original email -- I'll check my Spam folder, it > gets overly excited sometimes. > > > Just for completenes: > > > > I have actually two patches submitted a while ago, but did not get any response so far, > > one that would make the test case work as it is: > > > > [PATCH v10] exec: Fix dead-lock in de_thread with ptrace_attach > > https://lore.kernel.org/lkml/AM8PR10MB470801D01A0CF24BC32C25E7E40E9@AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM/ > > > > and my favorite one, that would fix the dead-lock altogether (and adjust the test case accordingly): > > > > [PATCH v11] exec: Fix dead-lock in de_thread with ptrace_attach > > https://lore.kernel.org/lkml/AM8PR10MB470875B22B4C08BEAEC3F77FE4169@AM8PR10MB4708.EURPRD10.PROD.OUTLOOK.COM/ > > This fell off my radar, but let's look at it again. Is this still an > existing race after Eric's various refactorings? I assume so. Eric, can > you looked at this case? > Kindly ping :) This discussion suspended for half a year, but testcase 'tools/testing/selftests/ptrace/vmaccess.c' still can not pass on the newest v6.4 kernel. Would you continue to work it out? :) --- Thanks, Zheng Yejian > -- > Kees Cook >