Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3201488imu; Mon, 17 Dec 2018 15:23:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WLHwHVDuBRd2a5NBd8MrgqkQ276K31W7EMq9BPI3vsDoCz6cAxO8ITvWOvyllym2JvXDl+ X-Received: by 2002:a17:902:bf44:: with SMTP id u4mr14437076pls.5.1545089005409; Mon, 17 Dec 2018 15:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545089005; cv=none; d=google.com; s=arc-20160816; b=LXvjMJszTrHcVPReE7POCLskdM8Cuvd5OmPlc6u1ed4LZLspsMLT7Qg8DCNSi5L0W5 bueX3N0xIZRx1q8bhdFdxMb+pTsHx5xqEKnMCx8TFHOT9kzotf3eaVpI5tFW3rUoMi+Y 2Tk0OgoShTkgt/Yu6sh5+KgFO7dHJHD6l04z9Y1t4nQBeAA+1DO5ZzV0a9hb2PKhR1tS qhGCsk3sTjgLDLpHlml0/4m/fEt4AMpPgMiXF1g1QlNKCEoTuWR8kzGIrtj0UR+53UiB IZZ8swoUJ5VAwRqTciYboz68BAc/Eki0hGJsPf9qyQxTKXt4vxTtmmkpc89qfqa3ANKz RJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=LoEFmcIp57BMTkHKTfBNzPfhkMo8Ej0Qg4qsoSumWLs=; b=S6lEKShsA4vn0ODqyIHWRtuHo0WGBuJWMqeRJCd/FghUasVSFxJUz+Ia8zOVR7HZMW XEmYR7kJVCcDOMpASFptiK5keEuWxhwYBAu7hdfr5mnUpgvvXKOX4O8gyf2B5WclmQ5o Egeut2/04z44xG70pyI/8PFa2KycsUa/pMLjoEaUuJx4ttmkRfexA63otHKjggR+T4Ql SBs4uU2W6NhKsO6mcQ1khkBcFcxmpaYy83SmjiUUY2nKYvXY17hqvnkmjGG2/uhyz7Aa 38SrjMmRamY088aS3qw2prvR6MYT3pv47j3qnD5Fd8oRIKZ+zNsjZcUmxPcxwRymzRBE o/yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3si11564161pgf.453.2018.12.17.15.23.10; Mon, 17 Dec 2018 15:23:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728357AbeLQWFZ (ORCPT + 99 others); Mon, 17 Dec 2018 17:05:25 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:40033 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbeLQWFY (ORCPT ); Mon, 17 Dec 2018 17:05:24 -0500 Received: by mail-qk1-f196.google.com with SMTP id y16so8319448qki.7; Mon, 17 Dec 2018 14:05:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LoEFmcIp57BMTkHKTfBNzPfhkMo8Ej0Qg4qsoSumWLs=; b=rCx0Fup0GW1k7F80pHEpe3Z15DVro7F798OcKQLU2vlPlk1ABfZvNYWTH8Mdw6v7uf RjWSUcf2PXlt4vi5GiniKguO/MWerN17ybAla+wt9Uij/MSVEu0Ap1NdVkRCD0mnkbMN OG/QdUUZxOzryRrQbjgGqJRCa5NCw8BInqtObcwY8wG7n7MSzpjnybrg5Sbvv5zmmcyV S0K63FXHkYcrdGIKNxjsfpDMq8jb7MvTXKBlrTK8vt9w1O3QHrbc+hBYJZI1UmS3Ulxe qpelL7hq/Uu8vrkF9HtRZR4F+0Qsl9cvS8lFdE0qmIg8XAvanWhDvTOX9EvShd5bZ7ii fPxg== X-Gm-Message-State: AA+aEWYmy5LeQmTFHtPCL754mObcnan6/zPb/PN4cULZFQpNUGS8A2jP QRnHn93wh3rwGRKLYzYnweUhJdC/hzjIKQ2pqYrPrpnuMF4= X-Received: by 2002:a37:bdc6:: with SMTP id n189mr13587024qkf.330.1545084323693; Mon, 17 Dec 2018 14:05:23 -0800 (PST) MIME-Version: 1.0 References: <20181217130646.GB3560@osiris> In-Reply-To: From: Arnd Bergmann Date: Mon, 17 Dec 2018 23:05:06 +0100 Message-ID: Subject: Re: [-next] strace tests fail because of "y2038: socket: Add compat_sys_recvmmsg_time64" To: Heiko Carstens Cc: Linux-Next Mailing List , Linux Kernel Mailing List , linux-s390 , Martin Schwidefsky Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 17, 2018 at 10:40 PM Arnd Bergmann wrote: > > On Mon, Dec 17, 2018 at 2:06 PM Heiko Carstens > wrote: > > > > Hi Arnd, > > > > in linux-next as of today 16 strace self tests fail on s390. I could > > bisect this to b136972b063b ("y2038: socket: Add compat_sys_recvmmsg_time64"). > > > > The following tests fail: > > Hi Heiko, > > Thanks for the report and sorry I broke things. I'll have a closer look > tomorrow if I don't find it right away. I suppose the regression was in > native system calls, not the compat syscalls with 31-bit user space, > right? I found a bug in my patch by inspection. Can you try if the patch below makes it all work (apologies for the garbled whitespace), I'm considering a rewrite of that function now (to split it into two again), but want to make sure there isn't another problem in my original patch. Arnd ---- diff --git a/net/socket.c b/net/socket.c index 3bb2ee083f97..7f9f225d0b6c 100644 --- a/net/socket.c +++ b/net/socket.c @@ -2486,12 +2486,12 @@ int __sys_recvmmsg(int fd, struct mmsghdr __user *mmsg, return -EFAULT; if (!timeout && !timeout32) - do_recvmmsg(fd, mmsg, vlen, flags, NULL); + return do_recvmmsg(fd, mmsg, vlen, flags, NULL); datagrams = do_recvmmsg(fd, mmsg, vlen, flags, &timeout_sys); - if (!datagrams) - return 0; + if (datagrams <= 0) + return datagrams; if (timeout && put_timespec64(&timeout_sys, timeout)) datagrams = -EFAULT;