From patchwork Wed Aug 9 02:51:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 109686 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp282064qge; Tue, 8 Aug 2017 19:52:12 -0700 (PDT) X-Received: by 10.84.130.42 with SMTP id 39mr7340071plc.60.1502247132644; Tue, 08 Aug 2017 19:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502247132; cv=none; d=google.com; s=arc-20160816; b=l05vXjxkYmsrIYKpGn4HejV7zZqrSK5zNAOs0qHSxxgnPQyNBu24XXf+vGFxfNxkzs ZZ/4BJqbQICgaUv3MXEJRavlVylB5goLs6PjfSQX35vtRNIZESyOZL99RzcbIcIx+t2S 1dYaEDDSwI11K4GMidqxAdcPruq4x6U9bMQa4Sxhu0F+/UEWFrgyXkJlrknvB7FFyrOC ODcZ7LyC9yg/O8cvtlDiprqSu8trmXcEG+itOMNyMDiTj63M9L0iuxKjfv0YbieumxO2 +2l8p4lY6VFugTVpEWfMz88cDuO+uT4F101/ndaQtU4ao8hQpLoRi4+eUoY4Mz4XwTwG nYjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=tzQ4/dLKNhsnH9jcp9NsqR75p61l9qK63i+FDdpuk6U=; b=o/JoBiPe30nTKyYC8dhrer8iHY3TuHrpEruFY+6ln0ORHXT8Fy7Eb4dsZoc2qfqPb6 nJNajF2JrlgrjUvBDvChVzz0uQLHdFUugE0gI3R8j/cxpkRH6djFaN4xN0WpWIz8M0mp 6cxBzc3x8UgmPZ9sQsMFCSoX4Mu7zTMvYdTp8uICmjUISkpFVbJ43bJUXEBOm3nmGGfL KNfZbi9MW8rtHvN3aKQB2j3dFqKo0E9+WxkBgV+pDMAooa4RBEH1pb3U+yiQJceJwEwp xOVDFIVbPrxDPvkzwjTKYe7YLryUOqpM2U8LStU4G1oeIhbAI3cFmyiQs092IUf8Sh5K k9Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g+d8E0Az; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si1943956pli.429.2017.08.08.19.52.12; Tue, 08 Aug 2017 19:52:12 -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; dkim=pass header.i=@linaro.org header.s=google header.b=g+d8E0Az; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbdHICwH (ORCPT + 25 others); Tue, 8 Aug 2017 22:52:07 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:33878 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752265AbdHICwF (ORCPT ); Tue, 8 Aug 2017 22:52:05 -0400 Received: by mail-pf0-f169.google.com with SMTP id o86so22087095pfj.1 for ; Tue, 08 Aug 2017 19:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=tzQ4/dLKNhsnH9jcp9NsqR75p61l9qK63i+FDdpuk6U=; b=g+d8E0AzqhXE6XcUKTAfHQJIhq7Oyj1luSoyWWQp4xkPj8Y4LyPy/eNNZKZDYWj4oU SloTbE1DvlfviOQTVbYPmnkceprn/quVLWjwokD0uLMsj3cuzZe4XrQuQDaymlaH/xqq jz632AfYzKT9GuW6+tGCH2y0kzxSRpmRDA2eU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=tzQ4/dLKNhsnH9jcp9NsqR75p61l9qK63i+FDdpuk6U=; b=T8B0QdIDsquFmM+VuP1Rzk2rIpUJ9MXpASFif4WcYYOOftPs8GkUD3gEtTMVhVXBbj Pay3Ae7q1ATWfUyAlbGY1CkqJPolZuMZQYq3zkIKy4UnbsJbcAbPqAa4zw6GFpwlIyCE QXM2ng0QeaWTAt704Zmy+A+N8CDVowsPyrllt/wCUbJxzM73rX9BYbHJwTdTjrz1NAjX nPbRdM0UdiHoE9Tkp9iuGb4ZEXU/WsYUJlLRenvFfNp+ZSh05DmMuUr5jJAoj52BHPFF ctE9RS7xIgHCPVREmNnTxbErwdi2TZ+CIPW8x490Tx63Zk3aS8MlgltF7MTFG7QRLUbJ mkOA== X-Gm-Message-State: AHYfb5i3rCEhYjXIrl8C3ntbwiBa8xXB5dZOgEkBQd4T/VrKOipjfgoQ Qd/xZ3uHgBYFduJ8 X-Received: by 10.84.232.11 with SMTP id h11mr7326318plk.126.1502247124797; Tue, 08 Aug 2017 19:52:04 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t64sm4435558pgd.80.2017.08.08.19.51.59 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 19:52:03 -0700 (PDT) From: Baolin Wang To: dhowells@redhat.com, davem@davemloft.net Cc: james.l.morris@oracle.com, serge@hallyn.com, marc.dionne@auristor.com, dan.carpenter@oracle.com, Jason@zx2c4.com, arnd@arndb.de, broonie@kernel.org, keyrings@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, baolin.wang@linaro.org Subject: [PATCH 0/3] Fix y2038 issues for security/keys subsystem Date: Wed, 9 Aug 2017 10:51:29 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since 'time_t', 'timeval' and 'timespec' types are not year 2038 safe on 32 bits system, this patchset tries to fix this issues for security/keys subsystem and net/rxrpc subsystem which is connected with security/keys subsystem. Baolin Wang (3): security: keys: Replace time_t/timespec with time64_t security: keys: Replace time_t with time64_t for struct key_preparsed_payload net: rxrpc: Replace time_t type with time64_t type include/keys/rxrpc-type.h | 21 +++++++++++++++++++++ include/linux/key-type.h | 2 +- include/linux/key.h | 7 ++++--- net/rxrpc/ar-internal.h | 2 +- net/rxrpc/key.c | 22 ++++++++++++++-------- net/rxrpc/rxkad.c | 14 +++++++------- security/keys/gc.c | 20 ++++++++++---------- security/keys/internal.h | 8 ++++---- security/keys/key.c | 27 ++++++++++----------------- security/keys/keyring.c | 18 +++++++++--------- security/keys/permission.c | 3 +-- security/keys/proc.c | 20 ++++++++++---------- security/keys/process_keys.c | 2 +- 13 files changed, 93 insertions(+), 73 deletions(-) -- 1.7.9.5 Reviewed-by: Arnd Bergmann