Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp448630rdh; Thu, 23 Nov 2023 08:10:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IHETqfrmAwkkz4OSwwS5j1RFxCGqsvuZHbHEwBFMJn4SMUG3ibP7Cb5XWOS9oyBEMV4YDBP X-Received: by 2002:a05:6a00:278a:b0:6b6:e754:9e02 with SMTP id bd10-20020a056a00278a00b006b6e7549e02mr6295760pfb.12.1700755849604; Thu, 23 Nov 2023 08:10:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700755849; cv=none; d=google.com; s=arc-20160816; b=av9wTNwjY/bldtVSEZKVNgAM6CUDC6Onvgjkxfpph2oCkolO0yPn8gKnKvErmi0o9z hLh2n9l0mWy8+0egouuSAleEn/EcH5uNHZkfFV6GL5GhfUN1MDleypeL00F6FmCHgJsP mp60nPKQ+/EUeX06/EYeX/wR3IZ3HJKpBHE0YqqJKKpwxLapy7e78w4rfjpQZf5wiThJ QEOuiy5Aea3tY2eJtJhCn0WsNxg8v9SR6Nf8H64uiPbItBM1MSbGGPrT8ycnBA9ORgSF bcIm98O17arxxIvRuJgBJPW2vgX3Ca2Wub4h2FFh3c68Sqp40hT5nBLkv6ljj/rvGF93 TRKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=6MDJzQW6p5t0CMfzt3lesKn8SgjBF5SbK9ItM13EcbY=; fh=aG3xVwEX9XJGCOXFeVjXHbAUhPpZRhr1T1pzt4tdUBY=; b=qJQiioCSVBwizXrHXu2kek1gyXLcDkOC2KUJPaou4r9Wa48MHwtXF/N4lM0hsS3FNu am9m4VqRpAZlqtev1uuCwpkCEbDOYldLw694tZL9WoKsqc/sPF+OO0RmyoOgx5nMouHS KNv8v5wtf5el140DGPxua9zNSiyd8DT+6IMN40W3VFtAei/c/wJHUpU35Y5CqwLd4u2f riVo+WTEvPFjLdflVlrQyELQnOLINUiJbe1ZvABH6AejhnRql7B02BndtiD5L1PHV8+g 4UoMUqBJ2QPn1qbBgyzEAvRmmEzgN9L3FhKmfCyGGkn5Rzw6qBmq+NtlqU8gwJ3hYYKa MCyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="GD/7uBqz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m1-20020a632601000000b005c1e7583b8csi1606711pgm.96.2023.11.23.08.10.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 08:10:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b="GD/7uBqz"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 516138097D31; Thu, 23 Nov 2023 08:10:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345067AbjKWQKK (ORCPT + 99 others); Thu, 23 Nov 2023 11:10:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229862AbjKWQKJ (ORCPT ); Thu, 23 Nov 2023 11:10:09 -0500 Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B40C3F9 for ; Thu, 23 Nov 2023 08:10:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From:Cc: References:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe :List-Post:List-Owner:List-Archive; bh=6MDJzQW6p5t0CMfzt3lesKn8SgjBF5SbK9ItM13EcbY=; b=GD/7uBqzVdpVYhJLlemFOalNlp 3Ux9HsL5jlgr55zSdBHKpxKKr2mmrgZbM4Dtyc0b7xUYspHwX6dvuHm4xBrmgyHezYY2YgwWuiWzx V6AsTNhwjAuqm2/7yEH//hkuq2TWJIuib9dQY+wvqhwOUSGl3AjNFVUHN4Er2I5v0zU4qDMlWt+eg YlcEwLD4ob/gN7k/riu26ksAQFY5qavqKhcFFeQXdTBF5lMVglr3jOlX3yDOFGdrYHEGxIQkB9BTa vwyO+ZmxxinYaTHmB/tyu3pjv6K2gn26/AtSJK0hOzwLh6dNU6GY5PG3Xny/xvrzfC0/oRNB1gP6N 91cNg1fw==; Received: from 189-69-166-209.dial-up.telesp.net.br ([189.69.166.209] helo=[192.168.1.111]) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim) id 1r6CHA-006Sic-Ky; Thu, 23 Nov 2023 17:10:00 +0100 Message-ID: <189e733e-7056-45c4-a5c6-3371f8219b7e@igalia.com> Date: Thu, 23 Nov 2023 13:09:55 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1] futex: Add compat_sys_futex_waitv for 32bit compatibility Content-Language: en-US To: Wei Gao References: <20231123053140.16062-1-wegao@suse.com> Cc: tglx@linutronix.de, dvhart@infradead.org, linux-kernel@vger.kernel.org, dave@stgolabs.net, mingo@redhat.com, peterz@infradead.org, Arnd Bergmann From: =?UTF-8?Q?Andr=C3=A9_Almeida?= In-Reply-To: <20231123053140.16062-1-wegao@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 08:10:45 -0800 (PST) [+CC Arnd] Hi Wei, Em 23/11/2023 02:31, Wei Gao escreveu: > From: wei gao > > Current implementation lead LTP test case futex_waitv failed when compiled with > -m32. This patch add new compat_sys_futex_waitv to handle m32 mode syscall. > > The failure reason is futex_waitv in m32 mode will deliver kernel with struct > old_timespec32 timeout, but this struct type can not directly used by current > sys_futex_waitv implementation. > > The new function copy main logic of current sys_futex_waitv, just update parameter > type from "struct __kernel_timespec __user *" to "struct old_timespec32 __user *," > and use get_old_timespec32 within the new function to get timeout value. > From, what I recall, we don't want to add new syscalls with old_timespec32, giving that they will have a limited lifetime. Instead, userspace should be able to come up with a 64-bit timespec implementation for -m32. Thanks, André