PROBLEM:	(45411 39936 HPAQ71AFB) (Patch ID: OSF400-001)
********
This patch fixes a problem where a system may hang when an application or 
program attempts to read a file on an AdvFS system.

PROBLEM:  (CLD SOO100812) 	(Patch ID: OSF400-045)
********
This fix corrects a problem when remote NFS clients crash and reboot while
holding locks againsts files on an AdvFS files system.  Prior to this fix
the daemon.log file would receive messages similar to the following:

  Jul 9 13:24:56 <host> lockd[649]:
    can't clear locks after crash of client <ClientName>:  Invalid argument

PROBLEM:  (QAR 47190)	 	(Patch ID: OSF400-068)
********
This patch fixes a situation in which a kernel memory fault can occur.

This panic will only occur if the system is currently running the auditd demon
and auditing msfs_syscall calls. These are the AdvFs system calls. The panic
is most likely to occur if there is a heavy system load and paging is occuring.

The trace back will be:

    2 trap
    3 _XentMM
    4 audit_rec_build
    5 audit_call
    6 msfs_audit_syscall
    7 msfs_real_syscall
    8 msfs_syscall
    9 syscall
   10 _Xsyscall

PROBLEM:  (ZPOB82799)	 	(Patch ID: OSF400-111)
********
This fixes a problem where a hang occurs on an AdvFS filesystem. This problem
occurs because a thread is looping in routine "cleanup_closed_list".
Sample stack after forced crash:
   stop_secondary_cpu()
   panic("cpu_ip_intr: panic request")
   cpu_ip_intr()
   _XentInt()
   cleanup_closed_list()
   fs_cleanup_thread()

PROBLEM:  (GOZ100505)	 	(Patch ID: OSF400-105)
********
A system will panic with the panic string "simple_lock: time limit exceeded".
The stack trace of the panicing process is as follows:

        panic("simple_lock: time limit exceeded")
        simple_lock_fault()
        simple_lock_time_violation()
        msfs_getpage()
        u_seg_fault()
        u_map_fault()
        vm_fault()
        trap()
        _XentMM()

PROBLEM:  (QAR 50227)	 	(Patch ID: OSF400-148)
********
This patch fixes an "ADVFS EXCEPTION" panic after an "advfs I/O error"
message to the console.  The traceback of the panic thread will be as follows:
        panic()
        advfs_sad()
        ftx_fail_2()
        ftx_fail()
        fs_write()
        msfs_write()
        vn_write()
        rwuio()
        write()
        syscall()
        _Xsyscall().

PROBLEM:  (HPAQ92E5E)	 	(Patch ID: OSF400-125)
********
The system is hung while running vdump and there is a thread with the following
signature (note: this is _NOT_ the vdump thread):

  0 imm_get_next_xtnt_desc() [../../../../src/kernel/msfs/bs/bs_inmem_map.c]
  1 imm_merge_xtnt_map()     [../../../../src/kernel/msfs/bs/bs_inmem_map.c]

PROBLEM:  (HPXQ42587, QAR46237)		 (Patch ID: OSF400-176)
********
On an AdvFS system, a broadcast message will cause the idle time to be reset to
zero.

PROBLEM:                          	(Patch ID: OSF400-176-1)
********        (QAR 36779) (Patch ID: OSF400-185 reference information)

This patch fixes a problem that occurs when running the NetWorker Version 4.2c
application.  The NetWorker application is unable to reset the atime (access
time) attribute on files being accessed. No errors or warnings are displayed.

Without this patch, NetWorker Version 4.2c will not perform well.

NetWorker application is unable to reset the atime on files being accessed.
Though this is undesirable bahavior, no errors or warnings are issued to
the user.

PROBLEM:  (TKTR71564 QAR 36411)		 (Patch ID: OSF400-217)
********
Systems running with AdvFS and LSM under heavy I/O loads can have sluggish
interactive performance.  In a DECsafe environment, these systems can 
encounter unexpected relocation of services.

PROBLEM:  (HPXQ43C4D, TKTR52185, QAR 46016) (Patch ID: OSF400-217)
********
A system can hang after the message "syncing disks..." prints during a panic.
When a hang occurs, the "syncing disks..." message does not print entirely
and the system does not take a dump.

A time-out mechanism was added to the "syncing disks" logic. This mechanism
improves the reliability of getting a dump by using the system clock to break
out of the "syncing disks" path and take a dump if no progress is being made
on reducing the number of buffers to be flushed. The numbers printed 
periodically between the "syncing disks..." and "done" messages are the number
of buffers left to flush.

PROBLEM:  (MGO102584)		 (Patch ID: OSF400-228)
********
This patch fixes AdvFS to prevent the following two panics:

        AdvFS Exception  Module = 1, line = 1891

        kernel memory fault with the following stack trace:

_XentMM()
bs_refpg_int()
bs_refpg()
tagdir_get_info()
bs_bfdmn_activate()
bs_bfdmn_tbl_activate()
fs_fset_get_info()
msfs_real_syscall()
msfs_syscall()
syscall()
_Xsyscall()

PROBLEM:  (QAR 45580)            	(Patch ID: OSF400-239B)
********
Multithreaded applications that call the pthread_mutex_destroy routine may fail
when there are no threads referencing the mutex.  This is  caused by a race 
condition inside the pthread_mutex_unlock code.  The typical symptom will be
a return value of EBUSY from pthread_mutex_destroy.

Due to the pthreads fix vdump and vrestore need to be redistributed.

PROBLEM:  (QAR 51304, QAR 51596)	 (Patch ID: OSF400-231)
********
This patch fixes two problems that occur on AdvFS systems:

An AdvFS data corruption problem can occur in user files. This problem occurs
when AdvFS stores two different versions of a particular page (an 8K segment).
This problem will not produce either a core file or return non-zero system
codes when accessing the corrupted file.  The verify command will not detect
the corrupted file.

This patch provides the following:
  1. The OS is corrected to prevent any new files from being corrupted.
  2. The verify program now recognizes data corruptions.
  3. The verify -f command detects the corruption and moves the file into
     a temporary file. Another temporary file is created to show the
     contents of the corresponding "visible" page. These files are then
     available for analysis by the user for the purpose of manually
     repairing the corruption.

   The following is an example of a recovery procedure:

   To detect a corrupted file:

   # verify test_domain
   +++ Domain verification +++

   Domain Id 32d3e638.000a46a0

   Checking disks ...

   Checking storage allocated on disk /dev/rz1a

   Checking mcell list ...

   Checking mcell position field ...

   Checking tag directories ...

   +++ Fileset verification +++

   +++ Fileset test_fileset +++


   Checking frag file headers ...

   Checking frag file type lists ...

   Scanning directories and files ...
   Overlapping frag data corruption detected in:
   File: <mount point>/50226.file.4
   Page: 1
   Run verify -f on this domain to enable recovery of this data.

   Scanning tags ...

   Searching for lost files ...

   #

   The verify utility has detected a corrupted file in fileset
   test_fileset.  The name of the file is "50226.file.4" and it
   is located in the highest directory of the fileset when it is
   mounted.  The page that is corrupted is page 1.  Verify also
   suggests running verify again using the -f flag to enable recovery
   of the hidden data for page 1.

   At this point there are two choices:

   1. Delete the file and recreate it. The corruption problem has been
      fixed on the system. The newly created file will not exhibit the
      undesired behavior.

   2. Run verify with the -f flag to identify the corrupted data.


   To identify the corrupted data:


   Run the verify command with the -f flag.

   # verify -f test_domain
   +++ Domain verification +++

   Domain Id 32d3e638.000a46a0

   Checking disks ...

   Checking storage allocated on disk /dev/rz1a


   Checking mcell list ...

   Checking mcell position field ...

   Checking tag directories ...

   +++ Fileset verification +++

   +++ Fileset test_fileset +++

   Checking frag file headers ...

   Checking frag file type lists ...

   Scanning directories and files ...
   Overlapping frag data corruption detected in:
   File: <mount point>/50226.file.4
   Page: 1
   Temporary files created representing the two versions of
   page 1 of file <mount point>/50226.file.4
   Refer to the README file accompanying the patch for a description

   of how to use these temporary files to recover
   from this overlapping frag corruption problem.
   Scanning tags ...

   Searching for lost files ...

   #

   The verify utility reports that it has created two temporary files
   in the same directory as the corrupted file.  Mount the fileset to
   identify these two files:


   # mount test_domain#test_fileset /test
   # ls -l /test
   total 169
   drwx------   2 root  system      8192 Jan  8 13:23 .tags
   -rw-r--r--   1 root  system     24576 Jan  9 12:27 50226.file.1
   -rw-r--r--   1 root  system     40960 Jan  9 12:27 50226.file.2
   -rw-r--r--   1 root  system     32768 Jan  9 12:27 50226.file.3
   -rw-r--r--   1 root  system     24576 Jan  9 12:27 50226.file.4
   -rw-------   1 root  system      8192 Jan 13 14:32 50226.file.4.page_1.ext
   -rw-------   1 root  system      8192 Jan 13 14:32 50226.file.4.page_1.frag
   -rw-r-----   1 root  operator    8192 Jan  8 13:23 quota.group
   -rw-r-----   1 root  operator    8192 Jan  8 13:23 quota.user

   The .ext and .frag files contain information from the corrupted area. In
   the example above:

   50226.file.4              The original corrupted file
   50226.file.4.page_1.ext   A file containing the hidden version of page 1
                             of the corrupted file. A read() cannot
                             retrieve this data.
   50226.file.4.page_1.frag  A file containing the frag version of page 1

                             of the corrupted file.  This is the same data
                             that a read() of page 1 would return.


   To fix the corrupted file:

   1. View the .ext and .frag files to determine which to keep. Note that what
      might really be desired is a merge of the two.

      If the file 50226.file.4.page_1.ext contains the desired data, enter:


      If the file 50226.file.4.page_1.frag contains the desired data, enter:

      # ln -s 50226.file.4.page_1.frag desired_page_1

      If a merge of the two must be done, do the merge and put the result
      into a new file called desired_page_1.

   2. Create a new fixed version of the corrupted file using the
      corrupted file and new file (desired_page_1 in this example).

      A. Copy page 0 (good page) from the corrupted file into a new file:

         # dd if=50226.file.4 of=newfile bs=8192 count=1

      B. Append the desired page 1 to the new file by seeking over 1 page
         in the output file before writing:

         # dd if=desired_page_1 of=newfile bs=8192 count=1 seek=1

      C. Append the remainder of the original file to the end of the new file
         by skipping past the first two pages of the input file
         before reading, and seeking past the first 2 pages (already
         rewritten) in the output file before writing:

         # dd if=50226.file.4 of=newfile bs=8192 seek=2 skip=2

         Run the diff command on the new and the original file to confirm that
         only page 1 has changed to and that the difference is what is desired.
         For example:

         diff newfile 50226.file.4

      D. Rename the new file and remove the temporary files:

         # mv newfile 50226.file.4
         # rm 50226.file.4.page_1.ext 50226.file.4.page_1.frag desired_page_1

         If desired, the verify command can now be run on the domain again to
         confirm that the data corruption problem is gone.

PROBLEM:  (UVO105186)		 (Patch ID: OSF400-259)
********
This patch fixes a problem that occurs on AdvFS system. When a user exceeds
the quota limits, an excessive number of user warning messages are sent to
the system console if the terminal is inaccessible.

After applying this patch, if a user exceeds the quota limits, the warning
messages are still displayed on the terminal (when possible) but never on the
system console. Additionally, when a quota underflow occurs, the warning
message now describes the fileset and the user or group that is experiencing
the underflow problem.

PROBLEM:  (CLD UTO101199,HPAQ30ETE,QAR 51485,52365) (Patch ID: OSF400-262)
********  (Patch ID OSF400-351 (222.00) reference information)
This patch corrects a problem with an NFS V3 mounted AdvFS file system where
under heavy I/O load, data being written to a file may be lost.  Additionally,
because file stats are not being saved, the file modification time my revert
to a previous value.

PROBLEM:  (UVO105368)		 (Patch ID: OSF400-297)
********
This patch fixes a problem where the vrestore program does not report failed
exit status appropriately on incomplete or incorrect commands, corrupt or
invalid saved sets, or file open failures.

PROBLEM:  (MCPM31DX7)		 (Patch ID: OSF400-254)
********
This patch fixes a problem that occurs on SMP systems with an AdvFS filesystem
in which the system panics with the following message:

        simple_lock: time limit exceeded

The problem occurs when the lock is taken by a thread that calls the
msfs_unmount routine, as can be seen from lock structure in pmsgbuf:

    pc of caller:         0xfffffc00003d756c
    lock address:         0xfffffc00574e12f8
    current lock state:   0x00000000003d6a49
(cpu=0,pc=0xfffffc00003d6a48,busy)

The pc in "current lock state" was code executed by that thread.  This code can
be further defined by printing it in dbx:

    dbx>0xfffffc00003d6a48/i
    [msfs_unmount:2035]

PROBLEM:  (QAR 50858,44602,44776)	 (Patch ID: OSF400-315)
********
This patch fixes a problem that occurs on systems running AdvFS.  The problem
occurs when greater than 512 filesets are created.  The system panics with the
following error message:

        panic (cpu 0): bfs_invalidate: not on free list
        syncing disks...done

PROBLEM:  (HPAQ50U3T,ZUO101186)		  (Patch ID: OSF400-322)
********
When a user attempted to restore a vdump, which had been done with the "-D"
option and included directories for which Access Control Lists (ACL's) had
been declared, the vrestore program was failing to restore ACL's on directory
files and issued the following messages:

RECORD HEADER (unknown/unexpected)
 record type  : 14
 data offset  : 0
 record size  : 208
 flags        : <none>

RECORD HEADER (unknown/unexpected)
 record type  : 14
 data offset  : 0
 record size  : 208
 flags        : <none>
vrestore: error setting extended attributes 2

The "unknown/unexpected" error was being reported twice on each directory for
which ACL's had been found (since they are recorded twice  in the vdump).
When a user specified the "-t" option, vrestore erroneously attempted to
restore proplists on files that had them; issuing same warning messages.

PROBLEM: (Patch ID: OSF400-331)
********
When the /etc/passwd file is very large, a performance degradation may occur.

When the number of passwd entries reaches up into the 30,000 to 80,000 range
or greater, mkpasswd will sometimes fail to create a hashed (ndbm) database.
Since the purpose of this database is to allow for efficient (fast) searches
for passwd file information, failure to build it causes commands that rely
on it to do a linear search of /etc/passwd.  This results in a serious per-
formance degradation for those commands.  This patch allows the vedquota,
vquot, vquota and vquotacheck commands to work correctly when the customer
builds a hashed passwd database using a non-default page file block size.

For customers choosing to use the mkpasswd -s option to avoid this type of
failure, a potential database/binary compatibility problem may arise.  If a
customer application that accesses the password database created by mkpasswd
is built statically (non-shared), that application will be unable to read
from or write to the password database correctly.  This would cause the
customer application to fail either by generating incorrect results or by
possibly dumping core.  Any statically linked application would be affected
if it directly or indirectly calls any of the libc ndbm routines documented
in the ndbm(3) man page and then accesses the password database.  To remedy
this situation, the customer would need to re-link the application.

Customers who do not use the mkpasswd -s option will not see this database/
binary compatibility problem.

PROBLEM:  (GOZ100774)		 (Patch ID: OSF400-344)
********
This patch fixes a problem that occurs on AdvFS systems. The system will
panic with an error message similar to the following:

AdvFS I/O error

    faulting virtual address:     0x000000000000003c
    pc of faulting instruction:   0xfffffc00003998d0
    ra contents at time of fault: 0xfffffc000039ac70
    sp contents at time of fault: 0xffffffffb7d0f480

panic (cpu 0): kernel memory fault

The following is a sample stack trace:

        0 thread_block()
        1 thread_preempt()
        2 boot()
        3 panic()
        4 trap()
        5 _XentMM()
        6 imm_get_first_xtnt_desc()
        7 imm_get_first_hole()
        8 frag_list_extend()
        9 bs_frag_alloc()
        10 fs_create_frag()
        11 close_one_int()
        12 close_int()
        13 bs_vfs_close()
        14 msfs_inactive()
        15 vrele()
        16 utimes()
        17 syscall()
        18 _Xsyscall()

PROBLEM:  (QAR 48878,36473,44706,49895) (Patch ID: OSF400-399)
********
This patch corrects problems with AdvFS performance regression, and two AdvFS
race condition situations between multiple routines that can cause panics.

One AdvFS race condition is between the ubc routines that call putpage and
AdvFS invalidate. If this condition arises an ensuing panic may occur.
Output from the panic might look like:

lock_read: hierarchy violation

      pc of caller:         0xfffffc0000397728
      lock address:         0xffffffff8031a200
      lock info addr:       0xfffffc0000722200
      lock class name:      bfAccessT.xtntMap_lk
      class already locked: bfAccessT.putpage_lk
      current spl level:    0

  panic (cpu 0): lock_read: hierarchy violation
  syncing disks...
  lock_read: simple lock owned

      pc of caller:         0xfffffc00003c6f80
      lock address:         0xffffffff8031a2b0
      lock info addr:       0xfffffc0000722210
      lock class name:      bfAccessT.putpage_lk
      pcb slock count:      2
      current spl level:    2

The other AdvFS race condition is between msfs_putpage and
bs_real_invalidate_pages. If this condition were to arise,
it too might cause a panic to occur. Output from the panic
might look like:

panic "bs_real_invalidate_pages: buf refd or pinned"

PROBLEM:  (QAR 54983, QAR 49607)	 (Patch ID: OSF400-413)
********
This patch fixes a problem that occurs on an AdvFS file system. The system may
panic with the following error message:

     ADVFS INTERNAL ERROR: dealloc_bits_page: can't clear a bit twice

The following is an example of a stack trace:

 (dbx) t
 >  0 stop_secondary_cpu(do_lwc = 0x0)
    1 panic(s = 0xfffffc0000556528)
    2 event_timeout(func = 0xfffffc0000276738, arg = 0xfffffc000059a2c0,
timeout = 0x5)
    3 xcpu_puts(s = 0xfffffc00005798d0, prfbufp = 0xfffffc000059a2c0)
    4 printf(fmt = 0xfffffc000051fd68)
    5 panic(s = 0xffffffff88cb71d0)
    6 advfs_sad(0xfffffc000030a7c8, 0x0, 0xe, 0x1f500, 0xfffffc0005952000)
    7 CANT_CLEAR_TWICE(0x7b, 0xe, 0xffffffffffffff00, 0xc27f, 0x612)
    8 dealloc_bits_page(0x38, 0xfffffc00005311a0, 0xfffffc00075d2008,
0xfffffc00057ba000, 0x301001a)
    9 bitmap_undo_opx(0x3, 0xfffffc00005b9df8, 0xfffffc00075d2298, 0x0,
0xfffffc00075d3578)
   10 ftx_fail_2(ftxH = struct {
     hndl = 0x1a
     level = 0x2
     dmnh = 0x1
     }
   11 ftx_fail(ftxH = struct {
     hndl = 0x0
     level = 0x0
     dmnh = 0x0
     }
   12 fs_write_add_stg(0x1, 0xffffffff80287530, 0x7, 0xfffffc00020986e0, 0x0)
   13 fs_write(0xc884, 0x14, 0x45f4f, 0x200000002, 0x0)
   14 msfs_write(vp = 0xfffffc0002098600, uio = 0xffffffff88cb7848, cred =
0xfffffc0001e0be00)
   15 vn_write(0xfffffc00002839ec, 0xffffffff88cb78e0, 0xfffffc000783bfc0,
0xf888, 0x1)
   16 rwuio(0xfffffc0001fb6220, 0xfffffc0005431b80, 0xfffffc0000575ab0,
0xfffffc0001fb6000, 0xfffffc0 00783bfc0)
   17 write(0xc884, 0xffffffff88cb7838, 0x28000, 0xc88400000001, 0x100000000)
   18 syscall(0xf888, 0x1, 0xfffffc000045f7fc, 0x3ffc01877c0, 0x4)
   19 _Xsyscall(0x8, 0x3ff800d2ed8, 0x14000c2c0, 0x3, 0x140059000)
 (dbx)

PROBLEM:  (QAR 56152,55813)	 (Patch ID: OSF400-436)
********
This patch fixes two problems that occur on AdvFS systems:

   o The system may panic with the following error message:
     simple_lock: hierarchy violation

   o A locking problem in the AdvFS log data structures may cause the
     following to occur:

        - System panics
        - Kernel memory faults
        - Memory corruption

PROBLEM:  (QAR 51816,45334)	 (Patch ID: OSF400-445)
********
This patch fixes a problem that occurs on AdvFS systems. If the "ls -l M1"
command is given in a .tags directory, the fileset will become unmountable.
If the system is then halted, the following panic will occur.

   1 panic(...RefCnt =...)
   2 advfs_sad()
   3 bfs_dealloc()
   4 bs_bfs_remove_root( )
   5 dmn_dealloc()
   6 bs_bfdmn_deactivate()
   7 bs_bfset_deactivate()
   8 msfs_unmount( )
   9 dounmount()
  10 boot( )
  11 reboot()
  12 syscall()
  13 _Xsyscall()

PROBLEM:  (MCGMA1R2P,FNO100154)	 (Patch ID: OSF400-449)
********
This patch fixes an AdvFS problem in which improper handling of I/O queues cause
either a kernel memory fault or the following panics:

        "bs_invalidate: cache rundown"
        "rm_or_moveq: ioDesc not on a queue"

Sample stack traces follow:

1)
   5 panic(s = 0xfffffc00005efab0 = "kernel memory fault")
   6 trap()
   7 _XentMM()
   8 bs_osf_complete() (attempting to obtain a pointer to a virtual disk table
                        to log statistics for the disk that the i/o occurred on)
   9 msfs_async_iodone_lwc()
  10 lwc_schedule()
  11 thread_block()
  12 xpt_callback_thread()
  13 lwc_schedule()
2)
   9 panic()
  10 trap()
  11 _XentMM()
  12 bs_q_lazy()
  13 bs_q_list()
  14 bs_unpinpg()
3)
   9 panic()
  10 trap()
  11 _XentMM()
  12 consecutive_list_io()
  13 bs_startio()

Note:
Users should also not attempt to reduce the AdvFS per-volume cache to zero.
This could result in mismanagement of buffers associated with that device
and could cause further panics or corruptions. This is generally done by
performing "chvol -t 0 domain". In a future release this will be disallowed.

PROBLEM:  (QAR 57938,50417)		 (Patch ID: OSF400-474)
********
This patch corrects a problem in AdvFS where a data structure field is not
initialized until after an AdvFS mount which is too late. This results in
the inability for example to see the files after a remount.

An example of this problem would be the ls command not being able to list files
on an AdvFS mounted filesystem that is NFS exported.

PROBLEM:  (QAR 57680,57689,58050,49803) (Patch ID: OSF400-476)
********
While the symptoms of these AdvFS problems vary, the most common is a panic
with the following error message:

    bs_frag_alloc: pinpg faild\n N1 = -1035

    Alternately,

    bs_frag_dealloc: pinpg faild\n N1 = -1035

A sample stack trace follows:

   0 panic()
   1 event_timeout()
   2 xcpu_puts()
   3 printf()
   4 panic()
   5 advfs_sad()
   6 bs_frag_dealloc()
   7 fs_delete_frag()
   8 copy_and_del_frag()
   9 fs_write_add_stg()
  10 fs_write()
  11 msfs_write()
  12 vn_write()
  13 rwuio()
  14 write()
  15 syscall()
  16 _Xsyscall()

PROBLEM:  (QAR 56845, QAR 56403) 	(Patch ID: OSF400-482)
********
This patch fixes an AdvFS problem that causes the system to panic with the
following error message:

    simple_lock: lock already owned by cpu

PROBLEM:  (QAR 55308, QAR 55447)         (Patch ID: OSF400-389)
********
This patch fixes an AdvFS problem in which the "advfsstat -n" command causes
a core dump. The system displays the following error message:

        Memory fault(coredump)

PROBLEM:  (QAR 57258,56851) 	(Patch ID: OSF400-497)
********
This patch corrects a problem where the mcellCount on-disk was not being
updated as files were being migrated and this resulted in a panic situation.

The panic would produce a message like:

bs_frag_alloc: pinpg faild\n N1 = -1035

PROBLEM:  (QAR 57798,57702)	 (Patch ID: OSF400-497)
********
This patch fixes a race condition that occurs on an AdvFS file system.
The system panics with the following error message:

        panic (cpu 0): bs_frag_alloc: pinpg faild

PROBLEM:  (QAR 57086,56656) 	(Patch ID: OSF400-497) 
********
This patch fixes a problem that occurs on an AdvFS file system.
An AdvFS lock is not released which hangs the system next time a thread
tries to obtain the lock.

PROBLEM:  (QAR 55791,55773)	 (Patch ID: OSF400-497)
********
When executing /sbin/advfs/verify command on an unmounted
AdvFS domain, the system will panic with the following
panic string:

panic_string:  0xfffffc00006cad90 = "kernel memory fault"

The stack trace looks like the following:

        boot()
        panic()
        trap()
        _XentMM()
        fs_update_stats()
        cleanup_closed()
        fs_cleanup_thread()

PROBLEM:  (QAR 57164,54852) 	 (Patch ID: OSF400-489)
********
This patch fixes a system panic when shutting down to single user mode using
one of the following commands:

        a.) # shutdown now
        b.) # init s

When AdvFS is the root or usr filesystem.  This cause of this problem is subject
to the timing of several kernel threads, so therefore the symptoms or panic may
occur intermittantly and on different platforms.

The example stack trace is as follows:

>  0 boot(0x0, 0x4, 0x1, 0x1, 0xfffffc00004893b8)
["../../../../src/kernel/arch/alph a/machdep.c":1795, 0xfffffc00004f4a6c]
   1 panic(s = 0xfffffc0000630098 = "panic stuck syncing disks")
["../../../../src/kernel/bsd/subr_prf.c":673, 0xfffffc0000450eb8]
   2 hardclock(pc = 0xfffffc0000281388 = "@", ps = 0x2)
["../../../../src/kernel/bsd/kern_clock.c":736, 0xf ffffc0000437044]
 3 _XentInt(0x2, 0xfffffc0000281388, 0xfffffc0000681bd0,
0xfffffc0006152de0, 0x1) ["../../../../src/kernel/arch/alpha/locore.s":917,
0xfffffc00004f1764]
   4 ufs_fsync_clrflag_wakeup(ip = 0xfffffc0006152cb0, dolock = 0x6152c00)
["../../../../src/kernel/ufs/ufs_vnops.c":6242, 0xfffffc0000281384]
   5 ufs_inactive(vp = 0xfffffc0006152c00)
["../../../../src/kernel/ufs/ufs_inode.c":1231, 0xfffffc000026f180]
   6 vrele(vp = 0xfffffc0002196400)
["../../../../src/kernel/vfs/vfs_subr.c":2234, 0xfffffc00004638ec]
   7 mntbusybuf(mountp = (nil))
["../../../../src/kernel/vfs/vfs_bio.c":1356, 0xfffffc0000460d30]
   8 boot(0x0, 0x0, 0xffffffff887fb4c8, 0x36, 0x8000000000)
["../../../../src/kernel/arch/alpha/machdep.c":1751, 0xfffffc00004f4978]
   9 panic(s = 0xffffffff887fb4c8 = "N1 = 2")
["../../../../src/kernel/bsd/subr_prf.c":757, 0xfffffc0000451074]
  10 advfs_sad(0x1a, 0xae7, 0xfffffc000062ac30, 0x0, 0x2)
["../../../../src/kernel/msfs/bs/bs_misc.c":345,0xfffffc00003e85dc]
  11 log_donerec_nunpin(ftxp = 0xfffffc0007cd8008, dmnp = (nil), lrdp = (nil))
["../../../../src/kernel/msfs/bs/ftx_routines.c":2790, 0xfffffc00003c0218]
 12 ftx_done_urdr(ftxH = (...), agentId = FTA_BS_BMT_UPDATE_REC_V1, undoOpSz =
 0x0, undoOp = (nil), rootDnOpSz = 0x0, rootDnOp = (nil), redoOpSz = 0x0,
 redoOp = (nil)) ["../../../../src/kernel/msfs/bs/ftx_routines.c":1225,
 0xfffffc00003bda38] 13 ftx_done_n(ftxH = (...), agentId = 30914472)
["../../../../src/kernel/msfs/bs/ftx_routines.c":978, 0xf ffffc00003bd5bc]
 14 bmtr_update_rec_int(0xffffffff80287ef8, 0xff, 0xfffffc0007d61498,
 0x58, 0x0) ["../../../../src/kernel/ msfs/bs/bs_bmt_util.c":1816,
 0xfffffc00003b6308]
 15 bmtr_update_rec(0x400fe001f003c00, 0xff, 0xfffffc0007d61498, 0x58, 0x0)
["../../../../src/kernel/msfs/
 bs/bs_bmt_util.c":1646, 0xfffffc00003b5fe8]
 16 fs_flush_saved_stats(0xfffffc000041cfa0, 0x0, 0x13000004b0273001,
 0x2c000009f7000055, 0xfffffc0007cc00
 18) ["../../../../src/kernel/msfs/fs/fs_create.c":1100, 0xfffffc000041e1a8]
 17 cleanup_bfap_with_saved_stats(bfap = 0xfffffc000041cfb8)
["../../../../src/kernel/msfs/bs/bs_access.c":766, 0xfffffc00003e5674]
 18 fs_cleanup_thread(0x0, 0xfffffc0007d61488, 0x130000018e0169,
 0x281f00000000, 0xa80000053d0000)
["../../../../src/kernel/msfs/fs/fs_dir_init.c":906, 0xfffffc000041cfb4]


FILE(s):

/sys/BINARY/advfs.mod           		subset OSFADVFSBIN400
CHECKSUM: 00939   1144 
/usr/sbin/advfsstat             		subset OSFADVFS400
CHECKSUM: 07856    232     RCSfile: advfsstat.c      RCS: 1.1.16.2
/sbin/advfs/logread             		subset OSFADVFS400
CHECKSUM: 61001     32     RCSfile: logread.c     RCS: 1.1.2.3
/sbin/advfs/verify              		subset OSFADVFS400
CHECKSUM: 22237    224     RCSfile: verify.c      RCS: 1.1.15.2
/usr/lib/nls/msg/en_US.ISO8859-1/verify.cat  	subset OSFADVFS400
CHECKSUM: 53996     12
/sbin/vdump                                     subset OSFADVFS400
CHECKSUM: 08585    432 
/sbin/vrestore                                  subset OSFADVFS400
CHECKSUM: 03671    464     RCSfile: vrestore.c    RCS: 1.1.45.3
/usr/sbin/vedquota              		subset OSFADVFS400
CHECKSUM: 56242    408     RCSfile: vedquota.c    RCS: 1.1.25.2
/usr/sbin/vquot         			subset OSFADVFS400
CHECKSUM: 20917    424     RCSfile: vquot.c       RCS: 1.1.7.3
/usr/sbin/vquota                		subset OSFADVFS400
CHECKSUM: 00466    352     RCSfile: vquota.c      RCS: 1.1.22.2
/usr/sbin/vquotacheck           		subset OSFADVFS400
CHECKSUM: 22962    384     RCSfile: vquotacheck.c RCS: 1.1.23.2
