Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1677823pxb; Thu, 7 Oct 2021 12:41:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoJNIWSkZP6amIcTIJ6GAp34h6hUBYS5AC2Qv+ciknXimahKzCNf609svDsrqsh7fSmWXB X-Received: by 2002:a05:6a00:2410:b0:40e:7d8:ad7f with SMTP id z16-20020a056a00241000b0040e07d8ad7fmr6231616pfh.25.1633635661639; Thu, 07 Oct 2021 12:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633635661; cv=none; d=google.com; s=arc-20160816; b=dxAUUUi8ujxyiZp40J+KOI3H2xHM9C121ba2s689IvSVufG8zpmb8d68priQe/0cQV BagegaAM60+Da7KHsfKvIfv7fnfe9IuRsUXFx17fx6NZeLTeCPYa1R/g6Lr4/TXuFHtu TYMddbSdnfFY+qDRBA+3KqNBArzEAo6oyvQMdc9a7PfNMmVU+sSxwDGwDzoVqenutsQS PRMLGrIrSUNli5gJxqllIyb96vqqKRhOir7MOyg23uPbYo3zq3mF8gEpkZB/QLTA4l5J Bkyj/hdwyxl32jVyiru8sZcWe/5ovxUErc1YuNWuEtSZpJQuthzdeShFcYBNyiFOwdB9 zUbw== 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:subject:cc:to:from:date :dkim-signature; bh=GGdMqj6Oj9MFt5UXzZhV5fYOb38SGbB/I7mSYtImtkQ=; b=Exg1OwlF9s6WkWEnyd7CFbVWy2axDVdXJNLx0MualJ8S7KU98GOLt9nR+3lHw+EivS AFX9Uo8QWPAOm68aBSpifIt3uDuY4Rp2qPrurDJQv7NiJ4CSbl1Oi0hDvUhRfuOQmJNx bRk4tD1T9rO1p9AHlqcfmMUPPbwu6v4gNkOfyaK/SieGZRJSOXgBjsOEhrsTepcwdYlv j8Lv/3uRRiV/+w03Goy1mDVZZKzGroF0wswsrmwtAZsJKvVsQDdWjuImamlFPo9WyBHD tjf4Ulh+dYtQLBdcUKtunRkws61UrMxZJUkoKo024YK+8ABXhSqWa+O+qoYzbHlmr8U7 cJww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E3oZ77ws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si320013plq.207.2021.10.07.12.40.47; Thu, 07 Oct 2021 12:41:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E3oZ77ws; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S242417AbhJGQGB (ORCPT + 99 others); Thu, 7 Oct 2021 12:06:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:57854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235232AbhJGQF7 (ORCPT ); Thu, 7 Oct 2021 12:05:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 58AFF60F9C; Thu, 7 Oct 2021 16:04:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633622645; bh=tf0G0RGsr4RO11iT0sEPjUlA9rmNBxhk4Q4mxta2poI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E3oZ77wsEKq+YDVsHOc52CpKWU10Bh+1YziLNcD5i2qxsA2s/EFBKWpdNT4jqCmwU eND46M9XEdZIMf6UcETF+n2rMBkGIgk0kg6V+QoNDczUCA7iGuyfU5wsMcDJJiYqdd zrEoILcVhmVNzEJLe97agu1z1s2q+iRuTdS1aLJzzb0/yk1qt+vXS8gBpDC8lwA8bT sb6BhnqW4AptFNPyhpPX6geq83YWfPlKcY4ybz3XkOxobd6Ti1fskcuY4HyuUC2of6 NDdAwPHrDTjlg74xhnxS9PsJ5CPCvS3ZduPGyzSShZ7Z4sM2ElJ0geE6gxTKJSksQx YBJCCIDSH9nZA== Date: Thu, 7 Oct 2021 09:04:04 -0700 From: Jakub Kicinski To: Richard Palethorpe Cc: Arnd Bergmann , "David S. Miller" , Stefano Garzarella , Andra Paraschiv , Eric Dumazet , Arseny Krasnov , Willem de Bruijn , Deepa Dinamani , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Richard Palethorpe Subject: Re: [PATCH v2 2/2] vsock: Enable y2038 safe timeval for timeout Message-ID: <20211007090404.20e555d4@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20211007123147.5780-2-rpalethorpe@suse.com> References: <20211007123147.5780-1-rpalethorpe@suse.com> <20211007123147.5780-2-rpalethorpe@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 Oct 2021 13:31:47 +0100 Richard Palethorpe wrote: > Reuse the timeval compat code from core/sock to handle 32-bit and > 64-bit timeval structures. Also introduce a new socket option define > to allow using y2038 safe timeval under 32-bit. > > The existing behavior of sock_set_timeout and vsock's timeout setter > differ when the time value is out of bounds. vsocks current behavior > is retained at the expense of not being able to share the full > implementation. > > This allows the LTP test vsock01 to pass under 32-bit compat mode. > > Fixes: fe0c72f3db11 ("socket: move compat timeout handling into sock.c") > Signed-off-by: Richard Palethorpe > Cc: Richard Palethorpe This breaks 32bit x86 build: ERROR: modpost: "__divdi3" [net/vmw_vsock/vsock.ko] undefined! If the 64 bit division is intention you need to use an appropriate helper.