Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3838315yba; Tue, 16 Apr 2019 21:54:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN3vxCTCyKNrupNL/2SvrQC2DUIT5qG1uYlgrSULacb/i6EhUunnQ9OWofj6T4HXliGaFs X-Received: by 2002:a17:902:2827:: with SMTP id e36mr75618702plb.45.1555476880262; Tue, 16 Apr 2019 21:54:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555476880; cv=none; d=google.com; s=arc-20160816; b=OwQzVpXe6k96uydbE6BkHHtVjvkiPI0/sMXsKN71bJk9OfABW5ED53rrS2+1h3sVFh eSz2OAyty0pPToyxZsVq11YTdCvZzXSF/pfl/sZCmyXFPaY5zr29Xt/hzPAOW/L0UmXX LPHdXKHAuZK3XStznGtuoCFr20Y1IQVcKtdS1bRlV401HxK9l/kQDzD2kBUpHt+zC7Uc QHHDi+8wet0zVtc9VDwxOzrVbMMsUWyqhchk0M1rPQbUeFmJLOv73m7ZhEgBo1YeEaiI r45v/jqd2p/LHdHiunKmwKCcvkHgRqo389QRmA6azI11lSnRa3iqpHYQcoRg4/ZcxZ8j u2nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=HK/YQVqCkT0/alBmzi6YcopIr7ajOyRk2T/2US/j7Ds=; b=rwf7o4AGC9/+A0ZN/CQubB0k5KvpVjiIsmA7A3qwDhQ45c9AYTwNL+NHAI5r8LGXbd EglskE8xv5R7cmigl5Q0S2RUrGeaj2ONC3Ng+KN3ZsKiHGMKHOvjQ5Q98kyGKtZfxcmQ TnAlm1a0ZK6If5AGsjricJC1yWPTPiPVmLwMlfY/ycVXU/HDUn3L/JUMcPN83C4DX0nW 9IcoGHOr4Nto+E0mHtGDGJzx9QMLALZ+l2eXUFzG5OJmaxCpwztPrjzRbqOZ+AG8jsmC +pyuIW5YCWEWDuqA88zK247MedjGZ6Yq1Ct+AOr6MJRUMh/+UmpqFThhgvfQtnLDDxJm w2bA== 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 4si50202522plh.289.2019.04.16.21.54.12; Tue, 16 Apr 2019 21:54:40 -0700 (PDT) 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 S1727340AbfDQEwp (ORCPT + 99 others); Wed, 17 Apr 2019 00:52:45 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:49250 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfDQEwp (ORCPT ); Wed, 17 Apr 2019 00:52:45 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CB1FA13D3B828; Tue, 16 Apr 2019 21:52:44 -0700 (PDT) Date: Tue, 16 Apr 2019 21:52:44 -0700 (PDT) Message-Id: <20190416.215244.242506869190097178.davem@davemloft.net> To: arnd@arndb.de Cc: edumazet@google.com, willemb@google.com, deepa.kernel@gmail.com, laoar.shao@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] socket: fix compat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEW From: David Miller In-Reply-To: <20190416203143.408835-1-arnd@arndb.de> References: <20190416203143.408835-1-arnd@arndb.de> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 16 Apr 2019 21:52:45 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Date: Tue, 16 Apr 2019 22:31:14 +0200 > It looks like the new socket options only work correctly > for native execution, but in case of compat mode fall back > to the old behavior as we ignore the 'old_timeval' flag. > > Rework so we treat SO_RCVTIMEO_NEW/SO_SNDTIMEO_NEW the > same way in compat and native 32-bit mode. > > Cc: Deepa Dinamani > Fixes: a9beb86ae6e5 ("sock: Add SO_RCVTIMEO_NEW and SO_SNDTIMEO_NEW") > Signed-off-by: Arnd Bergmann Applied, thanks Arnd.