PROBLEM:  (TKTR21634) (Patch ID: OSF360-043)
********
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: OSF360-043)
********
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:  ( TKTR70408 ) (Patch ID: OSF360-350284)
********
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.


FILE(s):

/usr/sys/BINARY/tty.o			subset OSFBIN360
CHECKSUM: 35343     34     RCS: 	tty.c      Revision: 4.4.69.2
/usr/sys/BINARY/tty_pty.o           subset OSFBIN350
CHECKSUM: 62973     18     RCS: tty_pty.c      Revision: 4.6.66.3
/usr/sys/BINARY/str_tty.o		subset OSFBIN360
CHECKSUM: 46981      9     RCS: 	str_tty.c      Revision: 4.2.44.2
