Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3797056pxb; Sun, 7 Feb 2021 23:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6wkwj/SuS3XtHjNphTpzGtSAMV8+VXi07lQ4qg6MlIhsptWYGb7LjAZ3fLLFQS27jbp6B X-Received: by 2002:a17:906:6c92:: with SMTP id s18mr8638989ejr.22.1612770220649; Sun, 07 Feb 2021 23:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612770220; cv=none; d=google.com; s=arc-20160816; b=fWP099zsamDefmtJGQ628sEgjLcLCrfh6fWl+I+tjVBFGLW6j2ShOzMJ6aqwPwt3bX hIbZ7tc1pV6XQMsPpVqmzOMtv332D3WyLpHOSZPGn3NthEs8gBcCIuOYJ/fdL1AOHHNg nXhAyTVrtIeg04LZH/6FbENP+AgNu3z7NCXjEgUQbUx9QeTnU9ZRxcS+s88RRJcjDmMy 7wTZu9tAIq5hjK9GL7py2wKzRY1bLhxypWh5XwNXOl6FbeJyaM4yojCkJe+kIJB2ktOB VlnC15AlfnLe0qFc+L69j0Kf+MPtx6ql7hY6/PVlu7O7kaaa4Jt/RmmaM5AKjO3VV1hm KtsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=3qO9XtGjtAL1hXm5+HTnDd4FC41lJytDGSMy8XTKh0Y=; b=i4F5/98yJfYzO0RK21IJ7m+phdho0Iz37vPumklD0amEnO0hY84uDHLrlXO6QZ3D31 LyvaKIz8JYO+YPkLc3JtVEnFNh9XpN7V2fKzVtD2nb6bJEofR4KB51w9lDoGZQttJrdZ CsTqS5obemdtb9GyI+D2WYtkV5fEtTCkSV+grF6Du3uwGn5krro3V/KtuufqgmxxThkG De0fhIi121mzeTTjdWiJDPxXxQp7MzoAcfjCsSDEQdtu2gmLd5dzZF5+WVocZRv8S92D lu9wcIqnp5FtfjdOcbHQUJge9dV2/+wJylFL9EjJc2AeyiQle6ZCwBK/ekAWqn8xSOsO l6Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SSzgvzvh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si10639657edq.211.2021.02.07.23.43.17; Sun, 07 Feb 2021 23:43:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SSzgvzvh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230104AbhBHHki (ORCPT + 99 others); Mon, 8 Feb 2021 02:40:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229621AbhBHHke (ORCPT ); Mon, 8 Feb 2021 02:40:34 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4194DC06174A; Sun, 7 Feb 2021 23:39:53 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id c18so15742466ljd.9; Sun, 07 Feb 2021 23:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3qO9XtGjtAL1hXm5+HTnDd4FC41lJytDGSMy8XTKh0Y=; b=SSzgvzvhKMHtU5nb6Uvar2B0cFRNGCAJDt/7VgieRpNZPcSNm5GGig1mk0SSqzTwFj zJDkYA9ndFHjAJRcbHa8BQGsi6Fe0cWyufMI6X7IrCx8hcDAISa8ezTItBL0b3EmqyNJ n07+NgyhAW/o2QS50he7tNgpbyWLSojPttwgPgryE/1EypL4Q1HqSbqOX1UVUh3ldn2W 5RPASflWE8bki5+i6LZcOt7V2c1E9wxxQPSNq3oaDJJjLJBk3Nh9SCi/HQqmDdRB8zyc JxkYHlUjnSojUZ+OZkKJujlHLO98oH8UClFBmkn5arBZfE0VNrax0wnaou9xuKc4VfHE 6/qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3qO9XtGjtAL1hXm5+HTnDd4FC41lJytDGSMy8XTKh0Y=; b=XJlrWoVCiQlBRFm/mOtMN2/XZGAm9fCGhkWpYG2BFDzeUs2HNwBXKeeXAlp9wo3157 RjJ0E63llz1CWXjbErvw49ZcMtNDnntp3qO7VP1QcvFoKeYvYyckeKdvI1BGHT7AHfNe np3YlaNMaKB7risVZk0SUB2ciexm3Ab0CZc+9bwCGIA/XHnIrKFInQbuPaEcdD0mHtJN GxFOf/cRiTX+dgjMDUsUh6K89dmx3OIqQLdsMB/b7XlbYWCtTA6aado6R/wbwMqGetp6 6O7Vu6PRdB1MEFYYD7GzXZovQWylCbpG3fG8YoEaeLdXT33j4WZXj/vjuiqsT7hYhzsy LmnQ== X-Gm-Message-State: AOAM532Zn85/1d2L2GAwLFvz+8/r5U4nzOu41o/VZz3haw4XLRB6TMcb /xZXvHkVgVy4bz7+pY7js40= X-Received: by 2002:a2e:bc1a:: with SMTP id b26mr10238231ljf.294.1612769991678; Sun, 07 Feb 2021 23:39:51 -0800 (PST) Received: from grain.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id r136sm1971361lff.247.2021.02.07.23.39.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 23:39:50 -0800 (PST) Received: by grain.localdomain (Postfix, from userid 1000) id 94ED2560163; Mon, 8 Feb 2021 10:39:49 +0300 (MSK) Date: Mon, 8 Feb 2021 10:39:49 +0300 From: Cyrill Gorcunov To: Pavel Tikhomirov Cc: Jeff Layton , Jeff Layton , "J. Bruce Fields" , Alexander Viro , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrei Vagin Subject: Re: [PATCH] fcntl: make F_GETOWN(EX) return 0 on dead owner task Message-ID: <20210208073949.GL2172@grain> References: <20210203124156.425775-1-ptikhomirov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203124156.425775-1-ptikhomirov@virtuozzo.com> User-Agent: Mutt/1.14.6 (2020-07-11) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 03:41:56PM +0300, Pavel Tikhomirov wrote: > Currently there is no way to differentiate the file with alive owner > from the file with dead owner but pid of the owner reused. That's why > CRIU can't actually know if it needs to restore file owner or not, > because if it restores owner but actual owner was dead, this can > introduce unexpected signals to the "false"-owner (which reused the > pid). > > Let's change the api, so that F_GETOWN(EX) returns 0 in case actual > owner is dead already. > > Cc: Jeff Layton > Cc: "J. Bruce Fields" > Cc: Alexander Viro > Cc: linux-fsdevel@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Cyrill Gorcunov > Cc: Andrei Vagin > Signed-off-by: Pavel Tikhomirov I can't imagine a scenario where we could break some backward compatibility with this change, so Reviewed-by: Cyrill Gorcunov