Subject: Re: PR 36963
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Jan Danielsson <jan.m.danielsson@gmail.com>
List: tech-kern
Date: 09/19/2007 20:25:49
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

der Mouse wrote:
>> /home is a mount point.  [...]  But it should be noted that the
>> postfix, postgresql, and apache users don't touch /home.  postgresql
>> resides under /var (which is directly under /), and they exhibit the
>> same kind of error.
> 
> The closest common ancestor is, then, /, right?

   Yupp. Hmm... Just after I had installed, I got a warning about /
(this happened after the init.root switch had occured). I assumed it was
due to a missing / entry in /etc/fstab. I added an entry for / in fstab,
and the message disappeared. I'll remove that entry it and see what the
message is.

> UTSLing makes me think that fstatvfs1() - the syscall that fails in
> your ktraces - does stuff walking up/down the directory tree, unless
> certain flags are given.  I'm beginning to suspect that something is
> weird with / when the system is hosed.  It sure looks to me as though
> the errors occur for, and only for, things that read / (as opposed to
> searching it), as if it loses its world read bit or some such.

> The real baffler to me is how logging out fixes it.  Do you have a
> program that just does a stat() and prints out the results?  Siccing
> that on / might reveal something interesting.

   From my "jan" user (ls never fails with this user):

$ stat /
5120 2 drwxr-xr-x 21 root wheel 1488 1024 "Sep 19 19:51:19 2007" "Sep 19
19:13:48 2007" "Sep 19 19:14:32 2007" "Jan  1 01:00:00 1970" 16384 4 0 /


   From my "pkgsrc" user:

$ whoami
pkgsrc
$ pwd
/home/pkgsrc
$ ls -l
ls: .: Permission denied
$ stat /
5120 2 drwxr-xr-x 21 root wheel 1488 1024 "Sep 19 19:51:19 2007" "Sep 19
19:13:48 2007" "Sep 19 19:14:32 2007" "Jan  1 01:00:00 1970" 16384 4 0 /

   Hmm.. It returns the same information while problem is "active".

- --
Kind regards,
Jan Danielsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFG8WmtuPlHKFfKXTYRCrDDAKCM2YZu6hQjY1LzsOczOhQXp/6oBACcCh1J
ccr2OHzkGk1VpQ0cErIkjZo=
=Ucvy
-----END PGP SIGNATURE-----