Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp58723pxb; Mon, 8 Feb 2021 15:11:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEjF7R85B6r4aFmxSFV/LwTd7sYI8/oKIOym+6AWErNbkaBQeFk7LMfm0nu8r+V9NYEfBu X-Received: by 2002:a05:6402:26d5:: with SMTP id x21mr19775453edd.50.1612825871005; Mon, 08 Feb 2021 15:11:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612825870; cv=none; d=google.com; s=arc-20160816; b=vnbOBzD0nX0U/jiIatJsJYatIv26B6CLc/U/6ppxRAHq5yKiD1EBmrw2WsmwhG3HY9 9OA8DQ+TcXuyR04nASC0ePd1JqwcKzV3a99OYxk3cZV5COfmmcFcTiwBv1sXgEvIftd6 +x3/SKPr/PhUidmgLkr1pjSCtzrAI5pYlFNmVfcEYsQ0/M5IHMELiQbol0vcl2HXWNEE rAC8cOsAmoqbWkz6fFmO9tzIzE2+NddGyGpjv/9heexTF0tD6bp5C03TvCIPEYldMg75 31qKPjLUOZ4p/UGeleb+JUq2a8qlkQMTMaFbbYd/g0HsybDsydW/vLSdwy0iS0M9WUMx IDxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=2jaIFVPMabgNRI/gSMsENX64xR0X2GpzOOyOdGUnNRo=; b=hoJM/3fedQ9i9Juh7e3SJCApxpztWu5+OIVWSEjZUbj+FN3SNMGBwb5oCKDtkJFocW cZ5QdugPjGzMQqlTlHbs9bPsSs0dPA4BBmiPul60xR2XoZnKP+AXZzhTMP3iwRnyQaf+ /arDVcAVeqeKcgG/0T0692xyu8khNQ9pXQo8+GqpEP/yKTk6VxMgFVePvMYfwpBsZIX7 09muyrCaTl2Eh+rkYCmKNwwMkBZAN1Dlpp4utirsAYuo6R7A3tSRJ2fxbwORgt2wTorG CrczGpc/ZGx0cd+HLEA/+ATjIegfWDYL8eodF4w2Cf7TexW25tCPqqfiKjGmlm9K7WW7 3UnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=pBScR02E; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb11si11542296ejb.0.2021.02.08.15.10.47; Mon, 08 Feb 2021 15:11:10 -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=@google.com header.s=20161025 header.b=pBScR02E; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbhBHWvt (ORCPT + 99 others); Mon, 8 Feb 2021 17:51:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229609AbhBHWvn (ORCPT ); Mon, 8 Feb 2021 17:51:43 -0500 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF67C06178B for ; Mon, 8 Feb 2021 14:51:03 -0800 (PST) Received: by mail-oo1-xc2d.google.com with SMTP id x19so3829403ooj.10 for ; Mon, 08 Feb 2021 14:51:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=2jaIFVPMabgNRI/gSMsENX64xR0X2GpzOOyOdGUnNRo=; b=pBScR02E5r0TkgIM7R/gTKUoLt7Z0j2l+KmGEUVvzVD6iJ+rV1NRqIGbxRSCpN/xF9 6ECzsWEtkMBYUHsLOW6EmRZvwcz50tmS4Z4kiMiTfHKdQVnDJR9wum99SFr67PJhCEhZ LIAGh6+XAHdhQB9YQkWu+PZsyD1WTPyCGPQIOOzymGPNz3Zg/acuqdTbeBlHqgHqbB9X QenXmEk9IGatt+KNlyRpsbxQe1sY+gcou4x4VQREJS7Wkxn/y9p8kt/wMxSfTAPAzsFj ohqYM+FW7JqUugev+5lDjtz30gnXn9A1GT2uGo8yxHk2lR3kD335idp9Ai8G83c7Ni6B LKbQ== 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:in-reply-to:message-id :references:user-agent:mime-version; bh=2jaIFVPMabgNRI/gSMsENX64xR0X2GpzOOyOdGUnNRo=; b=qZu8YpNDI9qJoLiyPyNCIdKZt0nYucbg5xWLsqfe3OtY62wQ49Q+bFetKMB4FTdKBK YybzXUhZlb1oga7Qzlc1zBFBkZkum5vGrFsnYgUrfsiJUJRxvV6o5wXn1hqlLnRTNFKq Np5VxoohHaYUiq4wSNV//3CsOAPZHDv8BBOnipMR/fUBI0cQjOinSvvRff0HNDs7mGJa MDb8GKED0k3Rl3snukBdWyKL/cLTlDRI/NmU0MVO/YCjzDnoYBcaGqdWmr9feISPppjF WTAWWDlIojQ3P+yma3cBaa7DNKpJ/6O3XZ6TXi0mkJoDs71M+XoJU4K/wR4BQxBhZSk+ MSIg== X-Gm-Message-State: AOAM530/xQ9aUvcC4o0ZIXk3cSo2eQ3xwhHaKmi947PYye/xVKBrtLm5 q+HVonFdzuyOI41rrUYvlzsnyg== X-Received: by 2002:a4a:870c:: with SMTP id z12mr13898102ooh.15.1612824662639; Mon, 08 Feb 2021 14:51:02 -0800 (PST) Received: from eggly.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id r25sm1079478ota.42.2021.02.08.14.50.59 (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Mon, 08 Feb 2021 14:51:01 -0800 (PST) Date: Mon, 8 Feb 2021 14:50:47 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Seth Forshee cc: Andrew Morton , Hugh Dickins , Chris Down , Amir Goldstein , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , linux-mm@kvack.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] tmpfs: Disallow CONFIG_TMPFS_INODE64 on s390 In-Reply-To: <20210205160551.cf57c4293ba5ccb8eb648c11@linux-foundation.org> Message-ID: References: <20210205230620.518245-1-seth.forshee@canonical.com> <20210205160551.cf57c4293ba5ccb8eb648c11@linux-foundation.org> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Feb 2021, Andrew Morton wrote: > On Fri, 5 Feb 2021 17:06:20 -0600 Seth Forshee wrote: > > > This feature requires ino_t be 64-bits, which is true for every > > 64-bit architecture but s390, so prevent this option from being > > selected there. > > > > The previous patch nicely described the end-user impact of the bug. > This is especially important when requesting a -stable backport. > > Here's what I ended up with: > > > From: Seth Forshee > Subject: tmpfs: disallow CONFIG_TMPFS_INODE64 on s390 > > Currently there is an assumption in tmpfs that 64-bit architectures also > have a 64-bit ino_t. This is not true on s390 which has 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, but passing the "inode64" mount > option will fail. This leads to the following behavior: > > # mkdir mnt > # mount -t tmpfs nodev mnt > # mount -o remount,rw mnt > mount: /home/ubuntu/mnt: mount point not mounted or bad option. > > As mount sees "inode64" in the mount options and thus passes it in the > options for the remount. > > > So prevent CONFIG_TMPFS_INODE64 from being selected on s390. > > Link: https://lkml.kernel.org/r/20210205230620.518245-1-seth.forshee@canonical.com > Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb") > Signed-off-by: Seth Forshee > Cc: Chris Down > Cc: Hugh Dickins Thank you Seth: now that you've fixed Kirill's alpha observation too, Acked-by: Hugh Dickins > Cc: Amir Goldstein > Cc: Heiko Carstens > Cc: Vasily Gorbik > Cc: Christian Borntraeger > Cc: [5.9+] > Signed-off-by: Andrew Morton > --- > > fs/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/fs/Kconfig~tmpfs-disallow-config_tmpfs_inode64-on-s390 > +++ a/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 > + depends on TMPFS && 64BIT && !S390 > default n > help > tmpfs has historically used only inode numbers as wide as an unsigned > _ > >