All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@inai.de>
To: Christoph Hellwig <hch@lst.de>
Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,
	Sparc kernel list <sparclinux@vger.kernel.org>,
	debian-sparc <debian-sparc@lists.debian.org>,
	Frank Scheiner <frank.scheiner@web.de>
Subject: Re: Regression in 028abd92 for Sun UltraSPARC T1
Date: Tue, 23 Mar 2021 17:50:59 +0100 (CET)	[thread overview]
Message-ID: <n0n38p9-rn4s-213-n983-9o3o4oo8s54r@vanv.qr> (raw)
In-Reply-To: <4d033ff9-329e-77e7-20de-720aa65bba3e@web.de>


On Monday 2021-03-22 22:55, Frank Scheiner wrote:
>>> Riccardo Mottola first recognized a problem with 5.10.x kernels on his
>>> Sun T2000 with UltraSPARC T1 (details in [this thread]). I could verify
>>> the problem also on my Sun T1000 and it looks like this specific issue
>>> breaks the mounting of the root FS or maybe mounting file systems at
>>> all. This affects both booting from disk and from network.
>>> (...)
>>> ...as first bad commit.
>>>
>>> ```
>>> commit 028abd9222df0cf5855dab5014a5ebaf06f90565
>>> Author: Christoph Hellwig <hch@lst.de>
>>>      fs: remove compat_sys_mount

Some participants in the discussion over at the debian-sparc list mentioned
"NFS" and "Invalid argument", which is something I know just too well from
iptables. NFS is a filesystem that uses an extra data blob (5th argument to the
mount syscall). Such blobs have historically not always been designed to bear
the same layout between ILP32 and LP64 modes, and nfs's structs fell prey to
this as well.

My hypothesis now is that fs/nfs/fs_context.c line 1160:

	if (in_compat_syscall())
		nfs4_compat_mount_data_conv(data);

and ones similar to it (I didn't look too close where nfs3 gets to do its
conversion), no longer trigger as a result of compat_sys_mount being
wiped from the syscall table:

+++ arch/sparc/kernel/syscalls/syscall.tbl
@@ -201,7 +201,7 @@
 164    64      utrap_install           sys_utrap_install
 165    common  quotactl                sys_quotactl
 166    common  set_tid_address         sys_set_tid_address
-167    common  mount                   sys_mount                       compat_sys_mount
+167    common  mount                   sys_mount

I didn't extract from the debian-sparc discussion whether people were running
the all-LP64 userspace, or had some older Debian with a ILP32-on-64bitkernel
setup.


[But that's just a theory - a kernel theory!]

  reply	other threads:[~2021-03-23 16:59 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-22 21:30 Regression in 028abd92 for Sun UltraSPARC T1 Frank Scheiner
2021-03-22 21:48 ` John Paul Adrian Glaubitz
2021-03-22 21:55   ` Frank Scheiner
2021-03-23 16:50     ` Jan Engelhardt [this message]
2021-03-23 16:57       ` Christoph Hellwig
2021-03-23 17:39         ` Frank Scheiner
2021-03-23 22:17         ` Frank Scheiner
2021-03-24  8:28           ` Christoph Hellwig
2021-03-24 12:30             ` Frank Scheiner
2021-03-24 12:42               ` Anatoly Pugachev
2021-03-24 12:48                 ` Frank Scheiner
2021-03-24 12:49               ` John Paul Adrian Glaubitz
2021-03-24 13:09             ` Frank Scheiner
2021-03-24 13:16               ` John Paul Adrian Glaubitz
2021-03-24 13:19                 ` Frank Scheiner
2021-03-24 13:24                   ` Anatoly Pugachev
2021-03-24 13:29                     ` Frank Scheiner
2021-03-24 13:57             ` Frank Scheiner
2021-03-24 15:22               ` Jan Engelhardt
2021-03-24 15:58                 ` Frank Scheiner
2021-03-24 16:10                   ` Christoph Hellwig
2021-03-24 16:33                     ` Frank Scheiner
2021-03-24 16:37                       ` Frank Scheiner
2021-03-25  7:50                         ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=n0n38p9-rn4s-213-n983-9o3o4oo8s54r@vanv.qr \
    --to=jengelh@inai.de \
    --cc=debian-sparc@lists.debian.org \
    --cc=frank.scheiner@web.de \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=hch@lst.de \
    --cc=sparclinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.