Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1096568ybi; Thu, 30 May 2019 11:31:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsuuuUTnetXP/HfX/COa5YvJJ+0qzHt5r9mqS3Njs4dnQ/g6hZhj34DglTBhDZGGOvKvBY X-Received: by 2002:a17:90a:8982:: with SMTP id v2mr4604152pjn.138.1559241062793; Thu, 30 May 2019 11:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559241062; cv=none; d=google.com; s=arc-20160816; b=pZHqtzNKV876tXWsjAx+y04J8l3pZZr50HajF/RiMSg0bBd6pmIVqGLOAkQqJlem2t HnLnMiFAoowTaq3GXBxgeeJpe4PiDyd06lMmTy7dKMdmm0Vru1x7AbcIya0NzVzB/ufH I/Nl4Ty4dOJniPxlAVJ4MQYGbKNBRbm0uMyWeBn7dcWlntkNFXYsjisQ91BO/AX/4flu v+vSWLR5+WKwcldJZKrSWq6/THV+FOtBn7nIgOdkQug5IcrwFAQZbz7h4c533Qj4LmoR z8/WF/T+yMVA8fq83SRKPvL0X1pK3oUltnSTIvSsRpO80/bZM/gwf+sO+fBrY1vz61tt Hdxg== 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=y/lAesORefc6bhlBeQ2Gn091+SjcoN/8Ir1iuEsW99A=; b=sOduHJRonEjIU8zV7i+ojOvmQ9xgOQSGbbb5jaW2Yr6F2w1bg6OKtjsCpuKcC5ymXp J5I6LNErxIYVxG1r+5sCRPYO6C8L8OA4thSGubL3ESnTe+PyHo2dMGDeDh384HqQvksJ ficYvzBrLHVJTZqXWz539eV/WOvDqsAtya++Zn3jq9MLO73r0Y/4BtONY1VKJHIG9Cp4 xZ4dql/LlSB8s4mTQ/upcmVd2hFwq4gu7phE3pLIdXkvk9L2dJF1F9kg7bozVWlG538N EMe/Ow2+FMRtLMxn/4nuCHG6qdVILpCo82Ues1S3tJO4ffYLM9mTFUe/+32ft3mw8iLE NaJA== 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 s145si4410038pfc.283.2019.05.30.11.30.47; Thu, 30 May 2019 11:31:02 -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 S1726736AbfE3S2m (ORCPT + 99 others); Thu, 30 May 2019 14:28:42 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:33904 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726079AbfE3S2m (ORCPT ); Thu, 30 May 2019 14:28:42 -0400 Received: by mail-qt1-f196.google.com with SMTP id h1so8228571qtp.1; Thu, 30 May 2019 11:28:41 -0700 (PDT) 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=y/lAesORefc6bhlBeQ2Gn091+SjcoN/8Ir1iuEsW99A=; b=QhzkmGMypMm9pHr7YV2l2l3kwhSgGYYTPo9Ui6fbzivhiUmeUEkLQ+vWUflEDcxswU oA0/XS7gEIH+kWhfS5fMV/BCdkBLwHz3vTTiJtRN99dVRlesKrkmqCkexsucoxBoZFoE oCmzavHc9QEHTQaJ69U3obalRJYxv70kjk+dPlYQ95ddEcJWesAwE8TZMscNVoYhsRHi b9MKVDvFmLuXmU3CoBjklRpQSAfg6YQgPXQ2w7723BT44YUz2eAtlzz81JAL027vcA3X qbFYtb2Ik54tPoS3BdPn8ql5ZmfF5t3yxzr3ZMqZYB6oPkLy7WhW0RlAgKm3jK7njIm6 f6Vg== X-Gm-Message-State: APjAAAWFz66nDB82toN9GYf+rVzYGpUKEH5O/wPHkVTxjyppzcFnMoLt YbzTcybHjqhqlC6bvformNebIY/+n60nujpxPuA= X-Received: by 2002:ac8:2433:: with SMTP id c48mr4854798qtc.18.1559240921162; Thu, 30 May 2019 11:28:41 -0700 (PDT) MIME-Version: 1.0 References: <20190522032144.10995-1-deepa.kernel@gmail.com> <20190529161157.GA27659@redhat.com> <874l5czozi.fsf@xmission.com> In-Reply-To: <874l5czozi.fsf@xmission.com> From: Arnd Bergmann Date: Thu, 30 May 2019 20:28:24 +0200 Message-ID: Subject: Re: pselect/etc semantics To: "Eric W. Biederman" Cc: Oleg Nesterov , Deepa Dinamani , Al Viro , Linus Torvalds , Linux Kernel Mailing List , Andrew Morton , dbueso@suse.de, Jens Axboe , Davidlohr Bueso , e@80x24.org, Jason Baron , Linux FS-devel Mailing List , linux-aio , omar.kilani@gmail.com, Thomas Gleixner , "# 3.4.x" 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 Thu, May 30, 2019 at 3:54 AM Eric W. Biederman wrote: > Arnd Bergmann writes: > > On Wed, May 29, 2019 at 6:12 PM Oleg Nesterov wrote: > > > > Not sure about the order of the cleanups, but probably something like > > this would work: > > > > 1. fix the race (to be backported) > > 2. unify set_compat_user_sigmask/set_user_sigmask > > 3. remove unneeded compat handlers > > 4. replace restore_user_sigmask with restore_saved_sigmask_if() > > 5. also unify compat_get_fd_set()/get_fd_set() and kill off > > compat select() variants. > > Are new system calls added preventing a revert of the patch in question > for stable kernels? Yes, a straight revert would not work, as it was done as a cleanup in order to simplify the following conversion. I suppose one could undo the cleanup in both the time32 and time64 versions of each syscall, but I would consider that a more risky change than just fixing the bug that was reported. Arnd