Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752715AbdHIKAL (ORCPT ); Wed, 9 Aug 2017 06:00:11 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:33574 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752368AbdHIKAI (ORCPT ); Wed, 9 Aug 2017 06:00:08 -0400 MIME-Version: 1.0 In-Reply-To: <6767.1502271233@warthog.procyon.org.uk> References: <8ac57c96bf5a0695ecc67fd230440b0b9d15740f.1502246502.git.baolin.wang@linaro.org> <6767.1502271233@warthog.procyon.org.uk> From: Arnd Bergmann Date: Wed, 9 Aug 2017 12:00:06 +0200 X-Google-Sender-Auth: GZ0DVre3pz56o42lRRU4R4_mkls Message-ID: Subject: Re: [PATCH 3/3] net: rxrpc: Replace time_t type with time64_t type To: David Howells Cc: Baolin Wang , David Miller , james.l.morris@oracle.com, "Serge E. Hallyn" , marc.dionne@auristor.com, Dan Carpenter , "Jason A. Donenfeld" , Mark Brown , keyrings@vger.kernel.org, Linux Kernel Mailing List , LSM List , Networking Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 990 Lines: 24 On Wed, Aug 9, 2017 at 11:33 AM, David Howells wrote: > Arnd Bergmann wrote: > >> > @@ -533,8 +536,9 @@ static int rxrpc_preparse_xdr_rxk5(struct key_preparsed_payload *prep, >> > pptoken = &(*pptoken)->next) >> > continue; >> > *pptoken = token; >> > - if (token->kad->expiry < prep->expiry) >> > - prep->expiry = token->kad->expiry; >> ... >> >> I'm still slightly puzzled by what this function does: it does have four >> timestamps (authtime, starttime, endtime, renew_till) that are all >> transferred as 64-bit values and won't expire, but then it also uses the >> 32-bit expiry field in rxrpc_key_token->kad->expiry instead of the 64-bit >> rxrpc_key_token->k5 fields. > > Good catch. This is a cut'n'paste error. It should be using > token->k5->expiry here not token->kad->expiry. Do you know which format is used in practice? Are both kad and k5 common among rxrpc users? Arnd