From owner-freebsd-bugs Sun Mar 23 12:40:08 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA27362 for bugs-outgoing; Sun, 23 Mar 1997 12:40:08 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA27336; Sun, 23 Mar 1997 12:40:04 -0800 (PST) Resent-Date: Sun, 23 Mar 1997 12:40:04 -0800 (PST) Resent-Message-Id: <199703232040.MAA27336@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, hsu@clinet.fi Received: from hauki.clinet.fi (root@hauki.clinet.fi [194.100.0.1]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA26928 for ; Sun, 23 Mar 1997 12:34:03 -0800 (PST) Received: from katiska.clinet.fi (root@katiska.clinet.fi [194.100.0.4]) by hauki.clinet.fi (8.8.5/8.6.4) with ESMTP id WAA10003 for ; Sun, 23 Mar 1997 22:33:53 +0200 (EET) Received: (root@localhost) by katiska.clinet.fi (8.8.5/8.6.4) id WAA07029; Sun, 23 Mar 1997 22:33:52 +0200 (EET) Message-Id: <199703232033.WAA07029@katiska.clinet.fi> Date: Sun, 23 Mar 1997 22:33:52 +0200 (EET) From: Heikki Suonsivu Reply-To: hsu@clinet.fi To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/3071: 8th sup file flags change randomly Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 3071 >Category: kern >Synopsis: File flags change randomly >Confidential: yes >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 23 12:40:01 PST 1997 >Last-Modified: >Originator: Heikki Suonsivu >Organization: Clinet, Espoo, Finland >Release: FreeBSD 2.2-RELEASE i386 >Environment: 2.2 from around 8th this month march, kernel compiles around that date, may be supped 1-2 days earlier. Happens on most machines running 2.2 with this late kernel. >Description: I seem to get random flags on files. They change from ls to ls, but the bad thing seems to be that programs or kernel seem to enforce the random flags. This could mean that backups get screwed up and files writable suddenly say they are unwritable or append-only, or files intended to be unmodifiable can be modified. This seems to happen on several machines, almost all of them with the same kernel or from same sup. Earlier kernel from more than a month back seems to work. It happens for files on both NFS and local disks. Curiously, systems with IDE disks do not show this (but it may be due to less load or some other factor). It seems that if machine exhibits this behaviour, it exhibits on all files. The actual flags on disks may be ok, but system behaves like they were random. If the file is local on X and mounted to Y where X shows random flags and Y does not, trying to write to the file in Y results on "operation not permitted" even though flags ls in Y shows "-" for flags. I do not know how long this has been happening, but as nodump also appears there from time to time, this may mean backups silently not dumping lots of files (If dump reads inodes directly, this may not be a problem?). I think I would have noticed if this happened for long time, as the problem is visiable on all files. Reboot does not cure the problem, but I do not quite understand what triggers this. If the files were like this for more than week we would have seen complaints about this and should have noticed it myself. Maybe it just has been there all the time. hsu@news.clinet.fi Sun 12: /bin/ls -l -o /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi -rw-r--r-- 1 root bin sappnd 10272 Mar 23 06:00 /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi hsu@news.clinet.fi Sun 13: /bin/ls -l -o /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi -rw-r--r-- 1 root bin sappnd,schg 10272 Mar 23 06:00 /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi hsu@news.clinet.fi Sun 14: /bin/ls -l -o /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi -rw-r--r-- 1 root bin sappnd 10272 Mar 23 06:00 /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi hsu@news.clinet.fi Sun 15: /bin/ls -l -o /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi -rw-r--r-- 1 root bin - 10272 Mar 23 06:00 /m/katiska/usr/local/etc/sysconfig.kamppi4-gw.helsinki.clinet.fi hsu@news.clinet.fi Sun 16: >How-To-Repeat: /bin/ls -l -o (usually this is visible sooner or later). >Fix: Workaround was to revert back to older kernel. Random flags went away. I'll resup tomorrow and see if it was just a bad sup (really weird one). >Audit-Trail: >Unformatted: