Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5898062rdb; Thu, 14 Dec 2023 02:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IGY1++lk3dV79mCqopzjeVbPsQaeCwWYRn+PorPCBhK3JzX18zTJxeOAkXuyQ8ThjKdhL7T X-Received: by 2002:a05:6358:f0a:b0:170:17eb:14b2 with SMTP id b10-20020a0563580f0a00b0017017eb14b2mr5470089rwj.34.1702551427563; Thu, 14 Dec 2023 02:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702551427; cv=none; d=google.com; s=arc-20160816; b=LRhJQHWwY+CBzxhgi8HtrmWhUYeWgE0VbhSn1nt4cv/22t1zC1dwnxjXNxFgk3OCqO s37N5Tdk8r+vifq+aGhELXPBq0dJTYaQI4vwXFZ6WeFJK1b1jfVT5X4si2ki7IpwCTee RxqOwMpftnITYgbbIwsznGwamoa1ni4TKny69b/oBs/s6YvHs8onIt+XIFQlPsjDJC53 aehMPL8LuJoAQCkmGWD3P67TRanehk8dzqLmmIYf3ffLJQDPgpF+oUE2ibNIZlAwI9Ya p3dpZYWL5OUOCVKd+FnGD6CBY+MLZ4LHJzjY/2Zpkrr3crTKCJ9BEzuiww1ykKeL8oii PwyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=AT2pL+oxFqk+T5z2MbJKLz/I8yyJORNnlK1zxgbumtg=; fh=3g5mG1GkALldtD4657908y8AI0ajxmEk7ERtfdRirqM=; b=hflGgdim6zAygpLZU/6rGrN8V846MPYisr1kOBwKaWH96TSxVh2nsvWNmdMMCMsbdZ fW5Q+ke2WIO55hFBzrGVTX8oCdV7mGecTOEwLZxSUpp3HO41wRvD5EQ5hNpbdD7eTBze KC7RS20Bqh88Pkifb8by1PxkQJLDYfSEHhgUNGGyFaupdGIhr/VuMVYTBQHj8oYq3Pll vjbNorXlp5rs3gcNiQop8B7dCVOlrQeKIpSZcwXpjLLwIbQmUpInGdj+Z8xuwsmaXrGz RJyVQYRyOkxV7k6OU66ZZkQd62Kbd0ATZxmMN+Rsl14dkTDYWf26QCqzTsl6HZygCeSu wt/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XMFfqC4f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id h8-20020a170902704800b001cfa7f91403si11085411plt.183.2023.12.14.02.57.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XMFfqC4f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4B0E083348A3; Thu, 14 Dec 2023 02:57:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443955AbjLNK4c (ORCPT + 99 others); Thu, 14 Dec 2023 05:56:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443957AbjLNK4K (ORCPT ); Thu, 14 Dec 2023 05:56:10 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9480810C7 for ; Thu, 14 Dec 2023 02:55:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACB0FC433C8; Thu, 14 Dec 2023 10:55:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702551328; bh=dOHfKJ1H5Yv4IAoRy4gpJnm+3MqfFLCm0K0QAMRIqk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XMFfqC4fH1moFbk3rbUruEybthFx4pghbNQ3GrwVQ101Jz8GdgjwxNQbifFnkvmy8 2keVRO8t2F8SxAiafKclJilYeTpyLvpt+yzkWg0R69zw1IjcWQJMsRISxGlsbRXmzZ qA+a25hALeHaDgNztnvx6+W6CsCKMgsrdh1phd+Ws0N/AVQNBNLcYcbePobluRIFd5 2P4810geWzWzy/baIcXAFzlzfcQy7DE95e5eP4FG9fbeHrg79nzSNyNme52tkB7Tqd 4VF9F6XJ4WaWod7fxaILA0a5agkzAijmmTjUhldOStFtS+KKIGKVvvHLLXHOURZ/gA CQ8UUqsYztKGA== From: Christian Brauner To: Andrei Vagin Cc: Christian Brauner , linux-kernel@vger.kernel.org, Alexander Mikhalitsyn , Alexander Viro , linux-fsdevel@vger.kernel.org, overlayfs , Miklos Szeredi , Andrew Morton , Amir Goldstein Subject: Re: [PATCH 1/2 v2] fs/proc: show correct device and inode numbers in /proc/pid/maps Date: Thu, 14 Dec 2023 11:55:04 +0100 Message-ID: <20231214-datieren-maler-10004f2ff2c3@brauner> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231214064439.1023011-1-avagin@google.com> References: <20231214064439.1023011-1-avagin@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Developer-Signature: v=1; a=openpgp-sha256; l=1358; i=brauner@kernel.org; h=from:subject:message-id; bh=dOHfKJ1H5Yv4IAoRy4gpJnm+3MqfFLCm0K0QAMRIqk8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaRW3Wff3frux6qykENz9S+anNN6efD5zrY9LgvvKpidi ZX2z9Ap7ihlYRDjYpAVU2RxaDcJl1vOU7HZKFMDZg4rE8gQBi5OAZiIGxcjwyfliWs2v7m/V77w zJPtfA9k9lgnrrzj13NSL0D8qEjEzo0M/8tuF77hXLvkmErfgW3l2ftvHXK9/HcO/7LPTYkxiTL 9SVwA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:57:04 -0800 (PST) On Wed, 13 Dec 2023 22:44:38 -0800, Andrei Vagin wrote: > /proc/pid/maps shows device and inode numbers of vma->vm_file-s. Here is > an issue. If a mapped file is on a stackable file system (e.g., > overlayfs), vma->vm_file is a backing file whose f_inode is on the > underlying filesystem. To show correct numbers, we need to get a user > file and shows its numbers. The same trick is used to show file paths in > /proc/pid/maps. > > [...] Applied to the vfs.misc branch of the vfs/vfs.git tree. Patches in the vfs.misc branch should appear in linux-next soon. Please report any outstanding bugs that were missed during review in a new review to the original patch series allowing us to drop it. It's encouraged to provide Acked-bys and Reviewed-bys even though the patch has now been applied. If possible patch trailers will be updated. Note that commit hashes shown below are subject to change due to rebase, trailer updates or similar. If in doubt, please check the listed branch. tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git branch: vfs.misc [1/2] fs/proc: show correct device and inode numbers in /proc/pid/maps https://git.kernel.org/vfs/vfs/c/26b50595e169 [2/2] selftests/overlayfs: verify device and inode numbers in /proc/pid/maps https://git.kernel.org/vfs/vfs/c/22d9cfff4639