PROBLEM:  (TKTR21634)		 (Patch ID: OSF400-030)
********
A dangling "s_ttyvp" vnode pointer in a session structure can allow a reference
to the session structure after it has been freed.  This corruption eventually
causes a panic in an unrelated malloc() from kmembuckets[2], from which session
structures are allocated.  The corruption to the freed session structure can be
identified by looking at the faulting address, which indicates that the 
corruption was done in ttyclose():

trap: invalid memory read access from kernel mode
    faulting virtual address:     0x0000000000437820
    pc of faulting instruction:   0xfffffc00004206b0
    ra contents at time of fault: 0xfffffc0000420644
    sp contents at time of fault: 0xffffffffa0977420
panic (cpu 10): kernel memory fault

>  0 boot() ["../../../../src/kernel/arch/alpha/machdep.c":1727]
   1 panic("kernel memory fault") ["../../../../src/kernel/bsd/subr_prf.c":757]
   2 trap() ["../../../../src/kernel/arch/alpha/trap.c":1219]
   3 _XentMM() ["../../../../src/kernel/arch/alpha/locore.s":1307]
   4 malloc() ["../../../../src/kernel/bsd/kern_malloc.c":743]
   5 k_mem_grow_pageable() ["../../../../src/kernel/vm/k_mape_mem.c":660]
   6 k_map_allocate_paged() ["../../../../src/kernel/vm/vm_kmap.c":1099]
   7 kmem_alloc_pageable() ["../../../../src/kernel/vm/vm_kern.c":257]
   8 exec_args_allocate() ["../../../../src/kernel/bsd/kern_execargs.c":345]
   9 exec_args_copyin() ["../../../../src/kernel/bsd/kern_execargs.c":70]
  10 execve() ["../../../../src/kernel/bsd/kern_exec.c":261]
  11 syscall() ["../../../../src/kernel/arch/alpha/syscall_trap.c":519]
  12 _Xsyscall() ["../../../../src/kernel/arch/alpha/locore.s":1094]

(dbx) 0xfffffc0000437820/i
  [ttyclose:1336, 0xfffffc0000437820]   bsr     r26, simple_unlock(line 263)

PROBLEM:  (UVO104310)	 	(Patch ID: OSF400-030)
********
A related problem occurs when ttymodem() uses the "s_leader" field from the 
freed session structure:

trap: invalid memory read access from kernel mode
    faulting virtual address:     0x0000000000000008
    pc of faulting instruction:   0xfffffc0000426314
    ra contents at time of fault: 0xfffffc00003dbff0
    sp contents at time of fault: 0xffffffff911cf370
panic (cpu 0): kernel memory fault

>  0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":1900]
   1 thread_preempt() ["../../../../src/kernel/kern/sched_prim.c":3450]
   2 boot() ["../../../../src/kernel/arch/alpha/machdep.c":1679]
   3 panic("kernel memory fault") ["../../../../src/kernel/bsd/subr_prf.c":757]
   4 trap() ["../../../../src/kernel/arch/alpha/trap.c":1213]
   5 _XentMM() ["../../../../src/kernel/arch/alpha/locore.s":1307]
   6 simple_lock_B() ["../../../../src/kernel/arch/alpha/lockprim.s":524]
   7 proc_ref() ["../../../../src/kernel/bsd/kern_proc.c":552]
   8 ttymodem() ["../../../../src/kernel/bsd/tty.c":1379]
   9 ptcclose() ["../../../../src/kernel/bsd/tty_pty.c":606]
  10 speclose() ["../../../../src/kernel/vfs/spec_vnops.c":2193]
  11 spec_close() ["../../../../src/kernel/vfs/spec_vnops.c":2341]
  12 msfsspec_close() ["../../../../src/kernel/msfs/osf/msfs_vnops.c":3783]
  13 vn_close() ["../../../../src/kernel/vfs/vfs_vnops.c":1220]
  14 closef() ["../../../../src/kernel/bsd/kern_descrip.c":1393]
  15 close() ["../../../../src/kernel/bsd/kern_descrip.c":1071]
  16 syscall() ["../../../../src/kernel/arch/alpha/syscall_trap.c":519]
  17 _Xsyscall() ["../../../../src/kernel/arch/alpha/locore.s":1094]

PROBLEM:  (QAR 46691)		 (Patch ID: OSF400-035)
********
The SVR4 STREAMS documentation is being violated because a valid device id is 
not being passed by the push function when a module is pushed on the stream. 
Instead, a zero value is being set.

PROBLEM:  (HPAQ68777) 		(Patch ID: OSF400-053)
********
This patch fixes a kernel memory fault panic. This panic occurs on systems 
running System V applications or any user process compiled with the System V 
environment, even if System V is not loaded on the system.

A representative stack trace is:

5 panic("kernel memory fault")subr_prf.c:719
6 trap()trap.c:1243
7 _XentMM()locore.s:1307
8 malloc()kern_malloc.c:743
9 osr_alloc()str_scalls.c:232
10 pse_ioctl()str_scalls.c:1498
11 spec_ioctl()spec_vnops.c:1987
12 syioctl()tty_tty.c:210
13 spec_ioctl()spec_vnops.c:1987
14 vn_ioctl()vfs_vnops.c:1109
15 ioctl_base()sys_generic.c:465
16 ioctl()sys_generic.c:344
17 syscall()syscall_trap.c:519

PROBLEM:  (QAR 47488) 		(Patch ID: OSF400-041)
********
A system that has Patch OSF400-035 installed may hang. Patch OSF400-035
corrects a situation in which the SVR4 STREAMS documentation could be violated.
It allows a device number to be pushed on the stream.  The current patch will
set the device number to zero or the actual value to prevent the hang caused
by patch OSF400-035.

PROBLEM:  (QAR 48449)  		(Patch ID: OSF400-067)
********
When reading a streams pipe, if more than one message is in the pipe, a read 
with a message length greater than the first message will result in reading all 
of the messages in the pipe concatenated.

PROBLEM:  (MXOQ10017,HPAQB5D39) (Patch ID: OSF400-085)
********
This problem occurs when unlinking STREAMS Multplexors.  Note that there are no
STREAMS multi-plexors included in the base system but they are used by Layered 
products (e.g., DECnet, PATHworks, SNA Peer Server).  Typically unlinking 
occurs when shutting down a layered product but PATHworks is an exception to 
this.  The panic has the general stack trace below:

trap()
_XentMM()
sq_wrapper()
csq_lateral()
runq_run()
netisr_thread()

PROBLEM:  (TKTR70408, QAR 47306) (Patch ID: OSF400-092)
********
This problem affects only Digital UNIX systems using C-list-type tty's.  If a
user attempts to log into such a system remotely, using either telnet or rlogin,
and kills the remote-access application (telnet or rlogin) during the login
procedure (at the "Password:" prompt) then the rlogind or telnetd process will
be left in a sleep state indefinitely.  This condition can be recognized by the
presense of rlogind or telnetd processes in the process table with no associated
remote user.
            
PROBLEM:  (HPAQ95241, QAR 50022) (Patch ID: OSF400-142)
********
This patch fixes a problem that causes the system to "assert_wait" panic and 
the stack contains streams modules.  A representative stack trace is:

panic(s = "assert_wait")
assert_wait_mesg                sched_prim.c
pts_close                       pty.c
close_wrapper                   str_subr.c
csq_protect                     str_synch.c
osr_pop_subr                    str_osr.c
osr_close_subr                  str_scalls.c
pse_close                       str_scalls.c
speclose                        spec_vnops.c
clearalias                      spec_vnops.c
exit                            kern_exit.c
psig                            kern_sig.c
trap                            trap.c

PROBLEM:  (QARs 49942 & 49814) (Patch ID: OSF400-146)
********
This patch fixes a problem that causes the system to panic with a kernel memory
fault or "malloc_audit: guard space corruption" with osr_run as an entry in the
stack.  At this time no additional stack information is available.

PROBLEM:  (QAR 52041)		 (Patch ID: OSF400-236)
********
A "kernel memory fault" panic will be seen originating from the malloc()
routine.  The top stack entries will be as follows.  Many different kernel
routines may appear in the stack below malloc().

        panic("kernel memory fault")
        trap()
        _XentMM()
        malloc()

This problem is due to malloc() bucket corruption that occurs when there
is a racing close() and fdetach() of a System V fifo.  In the dump the
thread that did the racing close can often be found with the traceback:

        thread_block()
        vfs_busy()
        dounmount()
        sth_update_times()
        osr_close_subr()
        pse_close()
        speclose()
        spec_close()
        vn_close()
        closef()
        close()
        syscall()
        _Xsyscall()

PROBLEM:  (CLD TKTQ42309)		 (Patch ID: OSF400-324)
********
This patch fixes a problem that occurs when running STREAMS.  The system
panics with a kernel memory fault in osr_run().   The kernel memory fault
is a result of a non_cloned STREAMS device closing and not being removed
from the hash table.

A sample stack trace is shown as follows:

   0 thread_block() ["../../../../src/kernel/kern/sched_prim.c":1923,]
   1 thread_preempt()
   2 boot()
   3 panic(s 0xfffffc000074a020 = "kernel memory fault")
   4 trap() ["../../../../src/kernel/arch/alpha/trap.c":1243,]
   5 _XentMM()
   6 osr_run() ["../../../../src/kernel/streams/str_synch.c":161,]
   7 pse_open() ["../../../../src/kernel/streams/str_scalls.c":660,]
   8 spec_open() ["../../../../src/kernel/vfs/spec_vnops.c":1249,]
   9 vn_open() ["../../../../src/kernel/vfs/vfs_vnops.c":568,]
  10 copen() ["../../../../src/kernel/vfs/vfs_syscalls.c":1824,]
  11 open() ["../../../../src/kernel/vfs/vfs_syscalls.c":1781,]

PROBLEM:  (CLD TKTB37284)		 (Patch ID: OSF400-324)
********
This patch fixes a problem that occurs when running STREAMS.  The system panics
with a kernel memory fault in osr_reopen().   The kernel memory fault is a
result of a non_cloned STREAMS device closing and not being removed from the
hash table.

A sample stack trace is shown as follows:

   0 boot()
   1 panic()
   2 trap()
   3 _XentMM()
   4 osr_reopen()
   5 osr_run()
   6 pse_open()
   7 spec_open()
   8 vn_open()
   9 copen()
  10 open()

PROBLEM:  (CLD MGO102730)		 (Patch ID: OSF400-368)
********
This patch fixes the problem of a system hang due to corruption of a STREAM
synchronization queue's forward pointer.  The system hangs in the csq_cleanup()
function.

A sample stack trace is as follows:

       csq_cleanup
       osr_pop_subr
       osr_close_subr
       pse_close
       speclose
       spec_close
       vn_close
       closef
       close
       syscall

PROBLEM:  (CLD MCGM91B24)	 (Patch ID: OSF400-433)
********
This patch fixes a problem that occurs on an SMP system when running STREAMS.
The system panics with the following error message:

  "kernel memory fault"

A sample stack trace is shown as follows:

 0 boot() ["../../../../src/kernel/arch/alpha/machdep.c":1763,]
 1 panic(s = 0xfffffc0000586480 = "kernel memory fault")
 2 trap() ["../../../../src/kernel/arch/alpha/trap.c":1243, 0xfffffc000047c614]
 3 _XentMM() ["../../../../src/kernel/arch/alpha/locore.s":1307,]
 4 ldtty_wsrv() ["../../../../src/kernel/tty/ldtty.c":749,]
 5 sq_wrapper() ["../../../../src/kernel/streams/str_runq.c":]
 6 csq_lateral() ["../../../../src/kernel/streams/str_synch.c":977,]
 7 runq_run() ["../../../../src/kernel/streams/str_runq.c":108,]
 8 netisr_thread() ["../../../../src/kernel/net/netisr.c"]


FILE(s):

/sys/BINARY/bsd_tty.mod			subset OSFBIN400
CHECKSUM: 16278     45
/sys/BINARY/pty.mod                     subset OSFBIN400
CHECKSUM: 09143     20 
/sys/BINARY/streams.mod			subset OSFBIN400
CHECKSUM: 17714    270 
/usr/sys/include/streams/str_stream.h   subset OSFBINCOM400
CHECKSUM: 42195     20     RCSfile: str_stream.h      RCS: 4.2.44.3
