From patchwork Sat Sep 15 05:08:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepa Dinamani X-Patchwork-Id: 10601383 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00B73112B for ; Sat, 15 Sep 2018 05:09:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCFAD2A97F for ; Sat, 15 Sep 2018 05:09:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0DCA2A991; Sat, 15 Sep 2018 05:09:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AE5EF2A97F for ; Sat, 15 Sep 2018 05:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725976AbeIOK1A (ORCPT ); Sat, 15 Sep 2018 06:27:00 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:41884 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbeIOK1A (ORCPT ); Sat, 15 Sep 2018 06:27:00 -0400 Received: by mail-pg1-f194.google.com with SMTP id s15-v6so5292320pgv.8; Fri, 14 Sep 2018 22:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cajKTwSrMQhKjLfAgR+no/JZ9XepjehaTNg6E79EXhQ=; b=U54MXtvamLDOxLnixoSaGuc9fSjeUi8uew/iJHZVBycLeV3sYHCizChdZko/MdfEkb sj0jqxbp3uk8WB6ATeM6nJFlSsJvG7C7381FxnyMKLKT8aFlshMjwyrLXZpIxKmx8KDR l+w+vKOJf5o2+2TNfHZ9384ybfPsnokFFeMwEsznXirUJV1LnwMHh85lQ3jIa315sRgy qsFiAMmpVov1Y8xBG2dffSho5N/Mm4f7j41AD2bzoPDkSfWjaPS+hDYjBvzmOW4+qS88 WNLE8eGRWbYPzbPrnWlv5lk618+LLdTd/Fb/zYN3mK819LDBsSbqhMUJElDxUVZgduk9 8dkQ== 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=cajKTwSrMQhKjLfAgR+no/JZ9XepjehaTNg6E79EXhQ=; b=R3PbF7pEBsx58gQPASzscKacAB3jhrHFD2GAwxHCdi3zcD+xW7DBGvW9Nofi6jMbk/ HN2GeG8V2Wq+yxYNVUZdVMIIokRNeH7OMUIN7Daa6tsoSzovBcNtjoGaLFWLOSJvsgSF zLIXakZX2RSjvttixbV0tjIWhrQAtO3rDcWAUCVC/AdF1Lgy9hW86yM58FR+9vPmezia B8oESkEtqB6XRkqviamqEw7TCvlnK7x/xJ6s/63J/D8d8TO3SSRseTYUgvnBmKpLL3TL Fm3FHV4OeV+U0tX29hXmEVznQfWUJ1wrrN+8J2KdmCoRuXjm8up4xGd6LsHBbCUPTyqp jGWA== X-Gm-Message-State: APzg51A53vFzYnUnDDrOJp/iHTN+8My3x7szvCjXU+HWJFge2rSz2YRb Q4xUeOMcUYnxtt6xoxVHVmE= X-Google-Smtp-Source: ANB0VdbVU5BiWYhvyyMTBIFoK9yrX8PJ3t+ucq2HRI04pxl3ZVvoRTOrj+GhMNTBir7B9E+kHDbnDw== X-Received: by 2002:a63:ef10:: with SMTP id u16-v6mr14450079pgh.269.1536988161527; Fri, 14 Sep 2018 22:09:21 -0700 (PDT) Received: from deepa-ubuntu.lan (c-67-170-212-194.hsd1.ca.comcast.net. [67.170.212.194]) by smtp.gmail.com with ESMTPSA id g6-v6sm14195676pfb.11.2018.09.14.22.09.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 22:09:20 -0700 (PDT) From: Deepa Dinamani To: viro@zeniv.linux.org.uk, tglx@linutronix.de, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, y2038@lists.linaro.org, linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, linux-aio@kvack.org Subject: [PATCH v2 0/5] y2038: Make ppoll, io_pgetevents and pselect y2038 safe Date: Fri, 14 Sep 2018 22:08:38 -0700 Message-Id: <20180915050843.19183-1-deepa.kernel@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The series transitions the ppoll, io_getevents, and pselect syscalls to be y2038 safe. This is part of the work proceeding for syscalls for y2038. It is based on the series [1] from Arnd Bergmann. The overview of the series is as below: 1. Refactor sigmask handling logic for the above syscalls. 2. Provide y2038 safe versions of syscalls for all ABIs. [1] https://lkml.org/lkml/2018/8/27/651 Changes since v1: * fixed bug pointed out by arnd Deepa Dinamani (5): signal: Add set_user_sigmask() signal: Add restore_user_sigmask() ppoll: use __kernel_timespec pselect6: use __kernel_timespec io_pgetevents: use __kernel_timespec fs/aio.c | 138 ++++++++++----- fs/eventpoll.c | 52 +----- fs/select.c | 367 +++++++++++++++++++++++---------------- include/linux/compat.h | 20 +++ include/linux/signal.h | 4 + include/linux/syscalls.h | 20 ++- kernel/signal.c | 78 +++++++++ 7 files changed, 437 insertions(+), 242 deletions(-)