PROBLEM:	(FNO100098)		(Patch ID: OSF370-350146)
********
A user on a remote host can cause a Digital UNIX host to hang or panic.  

A typical stack trace follows.

 1 panic("thread_block: interrupt level call") 
   ["../../../../src/kernel/bsd/subr_prf.c":673]
 2 thread_block() ["../../../../src/kernel/kern/sched_prim.c":1744]
 3 thread_preempt() ["../../../../src/kernel/kern/sched_prim.c":3456]
 4 boot() ["../../../../src/kernel/arch/alpha/machdep.c":1671]
 5 panic("Processor Machine Check") 
   ["../../../../src/kernel/bsd/subr_prf.c":757]
 6 kn470_machcheck() ["../../../../src/kernel/arch/alpha/hal/kn470.c":833]
 7 mach_error() ["../../../../src/kernel/arch/alpha/hal/cpusw.c":801]
 8 _XentInt() ["../../../../src/kernel/arch/alpha/locore.s":997]
 9 in_checksum() ["../../../../src/kernel/arch/alpha/in_checksum.s":103]
10 in_cksum() ["../../../../src/kernel/arch/alpha/in_cksum.c":112]
11 icmp_input() ["../../../../src/kernel/netinet/ip_icmp.c":335]
12 ipintr() ["../../../../src/kernel/netinet/ip_input.c":715]
13 netisr_thread() ["../../../../src/kernel/net/netisr.c":806]
 _dump_end: 


PROBLEM:   (MCPMC5074, MCPM12C58, MCPM18F82)	(Patch ID: OSF370-350151)
********
An SMP machine running a large number of web server daemons, for example,
"ns-httpd" or "httpd", may experience an SMP race condition that will cause the
system to panic.  These panics occur when the web server daemons all accept
incoming sockets on the same head socket.

The following are examples of potential stack traces that illustrate the
problem addressed by this CLD:

Example of "Unaligned kernel space access from kernel mode" panic:
                                                                                >  0 stop_secondary_cpu() ["../../../../src/kernel/arch/alpha/cpu.c":368 ]
   1 panic("event_timeout: panic request") 
     ["../../../../src/kernel/bsd/subr_prf.c":669 ]
   2 event_timeout() ["../../../../src/kernel/arch/alpha/cpu.c":725 ]
   3 xcpu_puts() ["../../../../src/kernel/bsd/subr_prf.c":810 ]
   4 printf() ["../../../../src/kernel/bsd/subr_prf.c":355 ]
   5 panic("Unaligned kernel space access from kernel mode") 
     ["../../../../src/kernel/bsd/subr_prf.c":719 ]
   6 afault_print() ["../../../../src/kernel/arch/alpha/trap.c":1418 ]
   7 _XentUna() ["../../../../src/kernel/arch/alpha/locore.s":1443 ]
   8 sounlock_ext() ["../../../../src/kernel/bsd/uipc_socket.c":634 ]
   9 sodequeue() ["../../../../src/kernel/bsd/uipc_socket.c":1925 ]
  10 accept1() ["../../../../src/kernel/bsd/uipc_syscalls.c":393 ]
  11 oaccept() ["../../../../src/kernel/bsd/uipc_syscalls.c":319 ]
  12 syscall() ["../../../../src/kernel/arch/alpha/syscall_trap.c":519 ]
  13 _Xsyscall() ["../../../../src/kernel/arch/alpha/locore.s":1094 ]

Example of "kernel memory fault" panic:

>  0 stop_secondary_cpu() ["../../../../src/kernel/arch/alpha/cpu.c":368 ]
   1 panic("event_timeout: panic request") 
     ["../../../../src/kernel/bsd/subr_prf.c":669 ]
   2 event_timeout() ["../../../../src/kernel/arch/alpha/cpu.c":725 ]
   3 xcpu_puts() ["../../../../src/kernel/bsd/subr_prf.c":810 ]
   4 printf() ["../../../../src/kernel/bsd/subr_prf.c":355 ]
   5 panic("kernel memory fault") ["../../../../src/kernel/bsd/subr_prf.c":719 ]
   6 trap() ["../../../../src/kernel/arch/alpha/trap.c":1213 ]
   7 _XentMM() ["../../../../src/kernel/arch/alpha/locore.s":1307 ]
   8 malloc() ["../../../../src/kernel/bsd/kern_malloc.c":662 ]
   9 sonewsock() ["../../../../src/kernel/bsd/uipc_socket2.c":380 ]
  10 tcp_input() ["../../../../src/kernel/netinet/tcp_input.c":611 ]
  11 ipintr() ["../../../../src/kernel/netinet/ip_input.c":715 ]
  12 netisr_thread() ["../../../../src/kernel/net/netisr.c":806 ]

Example of "simple_lock: minimum spl violation" panic (when lockmode = 4):

>  0 stop_secondary_cpu() ["../../../../src/kernel/arch/alpha/cpu.c":368 ]
   1 panic("event_timeout: panic request") 
     ["../../../../src/kernel/bsd/subr_prf.c":669 ]
   2 event_timeout() ["../../../../src/kernel/arch/alpha/cpu.c":725 ]
   3 xcpu_puts() ["../../../../src/kernel/bsd/subr_prf.c":810 ]
   4 printf() ["../../../../src/kernel/bsd/subr_prf.c":355 ]
   5 panic("simple_lock: minimum spl violation") 
     ["../../../../src/kernel/bsd/subr_prf.c":719 ]
   6 simple_lock_fault() ["../../../../src/kernel/kern/lock.c":1794 ]
   7 simple_lock_minspl_violation() ["../../../../src/kernel/kern/lock.c":1841 ]
   8 lock_write() ["../../../../src/kernel/kern/lock.c":473 ]
   9 solock_ext() ["../../../../src/kernel/bsd/uipc_socket.c":616 ]
  10 sodequeue() ["../../../../src/kernel/bsd/uipc_socket.c":1922 ]
  11 accept1() ["../../../../src/kernel/bsd/uipc_syscalls.c":393 ]
  12 oaccept() ["../../../../src/kernel/bsd/uipc_syscalls.c":319 ]
  13 syscall() ["../../../../src/kernel/arch/alpha/syscall_trap.c":534 ]
  14 _Xsyscall() ["../../../../src/kernel/arch/alpha/locore.s":1094 ]


PROBLEM:	(QAR 45094)		(Patch ID: OSF370-350158)
********
This set of files improves the performance of the network subsystem on a system
being used as a web server.  

There are additional tunable parameters included here, to be used cautiously by 
an informed system administrator.

CAUTION: Only experienced network system administrators should be using 
         these parameters to modify their system. Adverse effects may result.
	
TUNING

To tune the web server one has to take into account several parameters the 1st 
being the number of simultaneous connection requests. If the expected number 
is too low for the actual number the connections will be dropped even though 
the bandwidth is available. 

The two parameters used for adjusting this are:

To tune the web server, the number of simultaneous socket connection requests 
are limited by:

  somaxconnx	Sets the maximum number of pending requests allowed to wait 
		on a listening socket.  

		The default value in Digital UNIX V3.2 is 8.

		This patch kit increases the default to 1024, which matches 
		the value in Digital UNIX V4.0.

  sominconn	Sets the minimum number of pending connections allowed on 
		a listening socket.  When a user process calls listen with 
		a backlog less than sominconn, the backlog will be set to
                sominconn.  sominconn overrides somaxconn.  

		The default value is 1.


The effectiveness of tuning these parameters can be monitored by the sobacklog
variables available in the kernel

  sobacklog_hiwat  Tracks the maximum pending requests to any socket 
		through out the life of the system.  The initial value is 0.

  sobacklog_drops  Tracks the number of drops resulting from exceeding 
		the socket set backlog limit.  The initial value is 0.

  somaxconn_drops  Tracks the number of drops due to exceeding the somaxconn 
		limit.  When sominconn is larger than somaxconn, tracks the 
		number of drops exceeding sominconn.  The initial value is 0.


Tcp timer parameters also effect performance. Tuning the following require
some knowledge of the characteristics of the network.

  tcp_msl	Sets the tcp maximum segment lifetime.

                This is the maximum lifetime in half seconds that a packet 
		can be in transit on the network.  This value, when doubled,
                is the length of time a connection remains in the TIME_WAIT 
		state after a incoming close request is processed.  

		The unit is specified in 1/2 seconds, the initial value is 60.

  tcp_rexmit_interval_min	Sets the minimum TCP retransmit interval.

                For some WAN networks the default value may be too short, 
		causing unnecessary duplicate packets to be sent.  

		The unit is specified in 1/2 seconds, the initial value is 1.

  tcp_keepinit	This is the amount of time a partially established connection 
		will sit on the listen queue before timing out 
		(e.g. if a client sends a SYN but never answers our SYN/ACK).
                Partially established connections tie up slots on the listen 
		queue.  If the queue starts to fill with connections in 
		SYN_RCVD state, tcp_keepinit can be decreased to make those
                partial connects time out sooner.  This should be used with 
		caution, since there might be legitimate clients that are 
		taking a while to respond to SYN/ACK.  The unit is specified
                in 1/2 seconds, the default value is 150 (ie. 75 seconds).

The hashlist size for the TCP inpcb lookup table is regulated by:

  tcbhashsize   The number of hash buckets used for the TCP connection table 
		used in the kernel.  The initial value is 32.  

		For best results, should be specified as a power of 2.

The hashlist size for the interface alias table is regulated by:

  inifaddr_hsize  The number of hash buckets used for the interface alias 
		table used in the kernel.  

		The initial value is 32.  

		For best results, should be specified as a power of 2.


The maximum system assigned user port number is limited by:

   ipport_userreserved   The largest port number given to a user process 
		requesting a system-assigned port (INADDR_ANY).  

		The default is 5000, which allows 3975 ports to be assigned 
		in the range 1025-5000.  The maximum is value is 65535.


PROBLEM:	(QAR 37825)		(Patch ID: OSF370-350192)
********
This patch fixes a problem in which the system panics when an interface is 
deleted. 

The following is an example of a typical stack trace:

   1 panic( "in_delmulti" )
   2 in_delmulti() netinet/in.c"1409
   3 ip_freemoptions() netinet/ip_output.c":1423
   4 in_pcbfree() netinet/in_pcb.c":590
   5 in_pcbdetach() netinet/in_pcb.c":561
   6 udp_usrreq() netinet/udp_usrreq.c":1039
   7 soclose() bsd/uipc_socket.c":799
   8 soo_close() bsd/sys_socket.c":401
   9 closef() bsd/kern_descrip.c":1468
  10 close() bsd/kern_descrip.c":1146
  11 syscall()


PROBLEM:	(38134)			(Patch ID: OSF370-350193)
********
This patch provides a new tcp level socket option called TCP_NODELACK. This 
socket option allows a user to force an ack (acknowledge) after each received 
packet. 


PROBLEM:				(Patch ID: OSF370-350195)
********
This patch fixes a problem in which broadcast packets are received by a daemon 
listening to a port that is using both the INP_RECVDSTADDR and SO_REUSEPORT 
socket options. The packets were not being delivered to the listening daemon.


PROBLEM:	(USG-03327)		 (Patch ID: OSF370-350248)
********
Fixes a kernel memory fault panic that occurs on SMP platforms when running
the Unicenter product from Computer Associates in conjunction with Oracle
software.

This panic will show a variety of stack traces due to memory corruption
caused by the inadvertant freeing of a memory block.

The panic string will always be "kernel memory fault".

1 panic(s = "kernel memory fault") subr_prf.c:757
2 trap() trap.c:1223
3 _XentMM() locore.s:1307
4 obj_entry_find() ipc_prims.c:112
5 port_dealloc() ipc_kport.c:331
6 ipc_task_terminate() ipc_tt.c:373
7 task_terminate() task.c:648
8 exit() kern_exit.c:922
9 rexit() kern_exit.c:635
10 Enf_exit() enfk_exit.c:121
11 syscall() syscall_trap.c:519
 
9 panic(s = "kernel memory fault") subr_prf.c:757
10 trap() trap.c:1223
11 _XentMM()locore.s:1307
12 malloc() kern_malloc.c:747
13 msg_copyin() ipc_copyin.c:414
14 msg_rpc_trap() ipc_basics.c:1405
15 _Xsyscall() locore.s:1249

7 panic(s = "kernel memory fault") subr_prf.c:757
8 trap() trap.c:1223
9 _XentMM()locore.s:1307
10 ubc_flush_dirty() vfs_ubc.c:2978
11 ufs_fsync_int() ufs_vnops.c:2007
12 ufs_fsync() ufs_vnops.c:2105
13 ufs_sync() ufs_vfsops.c:1600
14 sync() vfs_syscalls.c:1395
15 syscall() syscall_trap.c:519


PROBLEM:	(FNO100128)		 (Patch ID: OSF370-350294)
********
This patch fixes a system panic caused by a Windows95 or WindowsNT system
sending an illegal length ping ( ICMP ) packet.  


PROBLEM:	(MCPMA986D)		 (Patch ID: OSF370-350319)
********
This patch is a kernel fix for network sockets left in FIN_WAIT_1 state forever.

This patch contains a "tunable" kernel parameter.  It is recommended that
only experienced system administrators attempt to set this parameter from
the default value.  

How to recognize this problem.

This is an example of the problem with tcpdump running in the background
listening on the destination ip address shown in the netstat output.

# netstat -An | grep 203.232.10.221
Active Internet connections
PCB      Proto Recv-Q Send-Q  Local Address      Foreign Address    (state)
94276c00 tcp        0    759  192.86.154.82.80   203.232.10.221.162
FIN_WAIT_1
9418ef00 tcp        0    759  192.86.154.82.80   203.232.10.221.162
FIN_WAIT_1

13:28:03.472384 www-2.us.oracle.com.80 > 203.232.10.221.1626: . 0:1(1) ack 1
win 33232
13:28:12.973072 www-2.us.oracle.com.80 > 203.232.10.221.1623: . 0:1(1) ack 1
win 33232

What is observed here is the destination is clearly dead.  The source is
sending an ACK to the destination looking for his ACK of our FIN.
This is commonly refered to as "persist mode".  A socket in this state will
never timeout and system resources associated with it will not be released.

The new kernel modification to tcp_timer.o can be "tuned" by dbx'ing the
tcp_keepidle parameter on the system.  By default, this is set to 14400
1/2 seconds (2 hours).  It can be easily set to any value appropriate for
the system to "balance" the number of sockets in FIN_WAIT_1 state at any
time.  The system may always have some sockets in FIN_WAIT_1 as well as
CLOSE_WAIT, this is NORMAL.  What you don't want is a large number of sockets
in FIN_WAIT_1 forever.  It is not recommended that tcp_keepidle be set to
less than 5 minutes on the system.

Reference the man page to dbx for guidelines when using the dbx command.


PROBLEM:	(ZUO101015/QAR 49750)	(Patch ID: OSF370-350338)
********
This patch fixes ICMP REDIRECTS.

When an ICMP REDIRECT is received, the routing table was updated properly,
but the IP layer didn't use the new route information.


PROBLEM:        (CA7Q10994)             (Patch ID: OSF370-350342-1)
********
This patch fixes a problem that occurs on all systems that use
networking services.

The problem can be seen when a system attempts to ping a Digital UNIX system
connected to a token ring network and the ping uses a message size that
requires fragmentation.  The Digital UNIX system receiving the ping cannot
respond.  The token ring driver displays the following error message
to the console and resets the token ring adapter:

    List Error in transmit


PROBLEM:	(QAR 49023)		 (Patch ID: OSF370-350305)
********
A "panic: lock_read: hierarchy violation in del_dealloc_stg" error occurs when 
a socket lock is held by a UNIX domain while calling vrele().


PROBLEM:        (CLD MCPM3028N)         (Patch ID: OSF370-365055)
********
This patch fixes a problem in which network applications communicating to
one of the host's own addresses, may hang, or receive the error message:

  no buffer space available

The problem occurs due to a queue full condition on the interface.

In an Available Server (ASE) or TruCluster environment, the daemons will
no longer be able to communicate with each other, and the asemgr utility
will appear to hang.


PROBLEM:        (CLD UVO105250)         (Patch ID: OSF370-365057)
********
This patch fixes a problem in which packet filter programs do not receive
packets when the source is sending multicast packets on an Ethernet
network.


PROBLEM:        (MGO102810/QAR 49847)   (Patch ID: OSF370-350384)
********
This patch is an enhanced fix to the solockpair() routine.

This fix was needed because the routine was freeing a socket lock structure
that was concurrently spun upon in lock_write().  Typical problem symptoms
include kernel memory faults with sockets, mbufs and mblocks as well as hangs.
Applications using sockets in a multi-threaded, multi-cpu environment can
experience a number of lock violations with the socket structures.

This patch is MANDATORY to install on all systems.  It will be effective
on Uniprocessor systems when lockmode debugging is invoked.


FILE(s):

/usr/sys/BINARY/if_ether.o 		subset OSFBIN370
CHECKSUM: 39292     89	RCSfile: if_ether.c	RCS: 4.3.42.2
/usr/sys/BINARY/in.o	 		subset OSFBIN350
CHECKSUM: 64576     20	RCSfile: in.c		RCS: 4.3.38.3
/usr/sys/BINARY/in_pcb.o 		subset OSFBIN350
CHECKSUM: 46028     15  RCSfile: in_pcb.c       RCS: 4.3.47.3
/usr/sys/BINARY/if_ethersubr.o          subset OSFBIN370
CHECKSUM: 65046     17	RCSfile: if_ethersubr.c RCS: 4.4.94.3
/usr/sys/BINARY/ip_input.o 		subset OSFBIN350
CHECKSUM: 57326     23	RCSfile: ip_input.c	RCS: 4.4.49.5
/usr/sys/BINARY/ip_output.o     	subset OSFBIN350
CHECKSUM: 38786     17  RCSfile: ip_output.c 	RCS: 4.4.43.3
/usr/sys/BINARY/lockprim.o              subset OSFBIN350
CHECKSUM: 25258     15  RCSfile: lockprim.s     RCS: 1.1.40.3
/usr/sys/BINARY/tcp_input.o 		subset OSFBIN350
CHECKSUM: 62123     22	RCSfile: tcp_input.c	RCS: 4.3.54.3
/usr/sys/BINARY/tcp_subr.o 		subset OSFBIN350
CHECKSUM: 44081     11  RCSfile: tcp_subr.c     RCS: 4.3.40.3
/usr/sys/BINARY/tcp_timer.o 		subset OSFBIN350
CHECKSUM: 34077      9  RCSfile: tcp_timer.c    RCS: 4.2.15.3
/usr/sys/BINARY/tcp_usrreq.o 		subset OSFBIN350
CHECKSUM: 42449     10	RCSfile: tcp_usrreq.c	RCS: 4.3.25.3
/usr/sys/BINARY/udp_usrreq.o            subset  OSFBIN350
CHECKSUM: 04665     89  RCSfile: udp_usrreq.c   RCS: 4.3.44.4
/usr/sys/BINARY/uipc_socket.o           subset OSFBIN350
CHECKSUM: 12501     26  RCSfile: uipc_socket.c  RCS: 4.3.63.5
/usr/sys/BINARY/uipc_socket2.o          subset	OSFBIN350
CHECKSUM: 45083     15  RCSfile: uipc_socket2.c RCS: 4.4.37.2
/usr/sys/BINARY/uipc_usrreq.o           subset OSFBIN350
CHECKSUM: 22105     17	RCSfile: uipc_usrreq.c	RCS: 4.3.44.3
/usr/sys/include/net/proto_uipc.h       subset OSFBINCOM350
CHECKSUM: 01040     10	RCSfile: proto_uipc.h	RCS: 4.2.21.3
/usr/sys/include/sys/socket.h           subset OSFBINCOM350
CHECKSUM: 03175     12	RCSfile: socket.h	RCS: 4.2.24.3
/usr/sys/include/sys/socketvar.h        subset OSFBINCOM350
CHECKSUM: 01361     15	RCSfile: socketvar.h	RCS: 4.2.26.3
