Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp22189pxb; Mon, 8 Feb 2021 14:01:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwn+LyzfsKzdXcdryBmrRvGnV4Mn69DCJ1+5+EOoECbSNiR7EIIFF14nOqzbVqhsAJmObez X-Received: by 2002:a17:906:660b:: with SMTP id b11mr20189786ejp.458.1612821719362; Mon, 08 Feb 2021 14:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612821719; cv=none; d=google.com; s=arc-20160816; b=UhcIVHwpDEvubMhMTQCdckFtHokN7fvEbNYEfm0hEncqrptzGTW2xS8z9NkGw84fjn tfur+0kg3A+pP1fkm5iBi84tDyrS1OwnWFQ0J5T6Ln6nSR6Th6eMitwMtWBkWRg3i84+ /huhuPWW7DXfT/2gkTaabPgHx/PwXu+NAOvlnzThbR5Nc8P0frllOVi/QOwnhlwo0x5X pSGkv747hL6jk1mAbIHyAAqXM2qmCuWOaVRU1hHPpsRNldeOInFfe6Jfu5f1/qPT9ij0 QfqKo0v6xnPsygFp1BKHWgMVyZYQ7UNeSweviapE0HaL5rOr6tnFqYe7V7e/ndMbiRl0 EIDA== 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 :message-id:date:subject:cc:to:from; bh=slTd59I7Y8E1WEkwRd821CTDk7j9skLtmaaFeE6az84=; b=ai++I+F81FmXXXdGirq6rcO58VB4pZkbE04ky2zv5lY7CuHCd/2m8tSCy47d4GdTkF zbt+L8mUwYmFW/dKcDdTynnC2f1EhO32iA0rCljtIdiGl/6EQwjMCgxc1UdW9dk0QhsL iVrMfCuTUIJKAYxDLIT3ahKWlYfIn2bYYBGqzd0NtGKW5RPSzxstv0f8eDctvwrWgbN7 mbP6rS/xgqyu/bD+y6ZVlLkf9K22Ny1B8PjvgeZumExGt10MGUfyBwchMxqYp9R6gamO G5ZkyLDWUMk3eybaNKUtQ/LRH3eQBNI+nLhaBcPdHtbXilV3XzxJee1XuksJdvEFzqMQ R5rA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x21si12036695ejy.280.2021.02.08.14.01.32; Mon, 08 Feb 2021 14:01:59 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234180AbhBHV63 (ORCPT + 99 others); Mon, 8 Feb 2021 16:58:29 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:41835 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236918AbhBHV6N (ORCPT ); Mon, 8 Feb 2021 16:58:13 -0500 Received: from mail-oi1-f198.google.com ([209.85.167.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1l9EXA-0004lZ-Rx for linux-kernel@vger.kernel.org; Mon, 08 Feb 2021 21:57:29 +0000 Received: by mail-oi1-f198.google.com with SMTP id s4so4922611oia.5 for ; Mon, 08 Feb 2021 13:57:28 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=slTd59I7Y8E1WEkwRd821CTDk7j9skLtmaaFeE6az84=; b=TCtoNI3Rg99nBaEFY4wEONGwbH5RKhRrQH/DyCAnqHN5jm5Yy6YkEv/eC2U3tXkGb3 vCFnkewyDZbkh2u54DzWo8AYuijws9Owkdb6S61YjATnoAO7zDlek2IAfT01rih5R3dx XedbLA0SNybDpxgQSSCSKNxP8Gs8phP0dLnXC5FcCbTHzKn2Cu+/P4ywVGS31Duza3rE Uq/5juo4BPXnbomY9yi0G9bFnAfFX+A9kZ5GFTtawhe1kl6/aL5R8NFUYC0djo7AZXWZ ZBmP4jyutT57QQclVHkzvJI1Q/jbVJWlcYEPOu7hpyebOGvqETIvyNVzLh2bFBDajkZG eBeg== X-Gm-Message-State: AOAM533jMmHoJWw89/iPmLr8xwjiCM8+GTIPTfwfYeo5UB1gWlM7mIrC jrudWxi2dfEoFAdXJ2S70MWl40q6sNkPrn+aliqInKxvaVNfpB4oyCcPVMRPTyrXAa0lFanRBQ8 6i6kM2fids3Q7dVo976WWHeCPMYgOn4+c1bUKetvX+A== X-Received: by 2002:aca:52c3:: with SMTP id g186mr547241oib.136.1612821447890; Mon, 08 Feb 2021 13:57:27 -0800 (PST) X-Received: by 2002:aca:52c3:: with SMTP id g186mr547233oib.136.1612821447721; Mon, 08 Feb 2021 13:57:27 -0800 (PST) Received: from localhost ([2605:a601:ac0f:820:953a:a460:6ddc:bef4]) by smtp.gmail.com with ESMTPSA id g3sm3839161ooi.28.2021.02.08.13.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Feb 2021 13:57:26 -0800 (PST) From: Seth Forshee To: Andrew Morton Cc: Chris Down , Amir Goldstein , Richard Henderson , Ivan Kokshaysky , Matt Turner , linux-mm@kvack.org, linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: [PATCH] tmpfs: disallow CONFIG_TMPFS_INODE64 on alpha Date: Mon, 8 Feb 2021 15:57:26 -0600 Message-Id: <20210208215726.608197-1-seth.forshee@canonical.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As with s390, alpha is a 64-bit architecture with a 32-bit ino_t. With CONFIG_TMPFS_INODE64=y tmpfs mounts will get 64-bit inode numbers and display "inode64" in the mount options, whereas passing "inode64" in the mount options will fail. This leads to erroneous behaviours such as this: # mkdir mnt # mount -t tmpfs nodev mnt # mount -o remount,rw mnt mount: /home/ubuntu/mnt: mount point not mounted or bad option. Prevent CONFIG_TMPFS_INODE64 from being selected on alpha. Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb") Cc: stable@vger.kernel.org # v5.9+ Signed-off-by: Seth Forshee --- fs/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/Kconfig b/fs/Kconfig index 3347ec7bd837..da524c4d7b7e 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -203,7 +203,7 @@ config TMPFS_XATTR config TMPFS_INODE64 bool "Use 64-bit ino_t by default in tmpfs" - depends on TMPFS && 64BIT && !S390 + depends on TMPFS && 64BIT && !(S390 || ALPHA) default n help tmpfs has historically used only inode numbers as wide as an unsigned -- 2.29.2