Patch Name: PHNE_13835 Patch Description: s700_800 10.20 NFS/NIS cumulative megapatch Creation Date: 97/01/27 Post Date: 98/04/17 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: OS-Core.CORE-ENG-A-MAN OS-Core.UX-CORE NFS.NFS-CORE NFS.NFS-SERVER NFS.NFS-CLIENT NFS.NIS-CLIENT NFS.NIS-SERVER NFS.NFS-ENG-A-MAN Automatic Reboot?: Yes Status: General Superseded Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHNE_13835 Symptoms: PHNE_13835: This patch is part of the 10.20 ACE 2 bundle which adds networking enhancements to 10.20. New networking features supported in ACE 2 include NFS Version 3.0, AutoFS, and CacheFS. PHNE_10894: 1. automount: automount does not correctly support the "nodevs" mount option. 1653218305/INDaa27653 2. rpc.lockd: Enhancement to rpc.lockd to fix problem of forwarding unlocks to kernel contained a bug that caused rpc.lockd to send incorrect unlock range to the kernel. Applications failed with unexpected results due to this problem. INDaa26432/INDaa26633 3. rpc.mountd: Rpc.mountd does not handle requests from an IBM machine. 1653207654 4. rpc.rquotad: rpc.rquotad has memory leak. 5003373092 5. pcnfsd.1m: Man page for PCNFSD not correct. The man page does not list the entry for /etc/shells. 5003332296/INDaa26031 PHNE_10515: 1. rpc.lockd: rpc.lockd forwards unlock to kernel when no match exists in queue. Cause was Unlock range passed into kernel by rpc.lockd via nfs_fcntl() call was incorrect. Read Locks are now examined for overlapping regions and non-overlapping regions are deleted selectively in the kernel. When a unlock rqst with range offset=0 and len=0 from a client is received at LOCKD ,LOCKD will now examine if the client had any NFS locks on the file and selectively delete kernel locks held by that client. 5003355784/INDaa26432 Ksh hangs when $HOME is nfs mounted and HISTFILE is under $HOME. This defect is discussed in an earlier patch,but an additional problem due to too frequent retransmits has been fixed. This caused rpc.lockd to invalidate cache entries more often than required. A timestamp has been added to struct reclock which keeps track of the time the request got queued up in the retransmit queue. This timestamp is used in nlm_call() to prevent retransmits of that request from occurring more frequently than 10 secs. INDaa25087 2. rpc.yppasswdd Rpc.yppasswdd when started from the command line with Sun options (nogecos, nosh, nosingle,nopw) did not handle these properly. Since HP does not support these options they were never activated. However, Sun systems do use them and if they are given to an HP machine they should handle them correctly. The options now give the correct response but are still not yet supported fully. PHNE_9465: exports.4: 1. Exports man page comments cause exportfs to use them as illegal hostnames. Also has incorrect aononymous information. exportfs.1m: 1. Exportfs man page has wrong information for anonymous access defaults. secure_rpc.3c: 1. Get_myaddress() call has wrong information on man page on what it acually does. rpc.lockd: 1. Enhance lockd logging of duplicate messages and correct hang problem. pcnfsd: 1. Doesn't work correctly with wlogin() changes ypxfr: 1. Ypxfr doesn't tell user that it is retrying ypxfr if ypxfrd is not found. PHNE_8310: automount: 1. Automount cannot correlate entries in log file to entries in syslog.log because of missing timestamps. rpc.rquotad: 1. rquotad doesn't support JFS rpc.lockd: 1.Logging of unnecessary messages to log file rpc.statd: 1. Possible mem leak problem. rpc.yppasswdd: 1. rpc.yppasswdd fails to rename mnttab if /tmp is on a seperate partition. rpc.mountd: 1. mount daemon runs from non-priveleged ports. exportfs: 1. Hostname containing the string "rw" is erroneously flagged as a mutually exclusive error when the host is also tagged as -ro. rpc.pcnfsd: 1. Enhanced pcnfsd logging in wtmp file to include ip and system name of caller. makedbm: 1. Makedbm now issues an error if the hash algorithm is exceeded. ypserv: 1. NIS returns wrong nextkey when concurrent access is allowed to maps. ypwhich: 1. ypwhich fails connection on X.25 interface. PHCO_9543: If a file system is mounted on system over NFS, and the file system goes down, doing a bdf will report and error of "Stale NFS File handler". The current NFS umount will not allow this file system to be unmounted, even if the file system comes back on the original Defect Description: PHNE_13835: New functionality to support networking features in 10.20 PHNE_10894: 1. Enhancement to rpc.lockd to fix problem of forwarding unlocks to kernel contained a bug that caused rpc.lockd to send incorrect unlock range to the kernel. Applications failed with unexpected results due to this problem. 2. Rpc.mountd does not handle requests from an IBM machine. 3. The man page for pcnfsd does not list the entry for /etc/shells 4. Automount does not correctly support the "nodevs" mount option. 5. Rpc.rquotad has memory leak. PHNE_10515: 1. rpc.lockd forwards unlock to kernel when no match exists in queue 2. Rcp.yppasswdd doesn't handle unsupported functions properly. PHNE_9465: 1. Exports file allows comments which are causing exportfs to parse as hotnames. 2. Get_myaddress man page has wrong information 3. Exportfs man page does not reflect uid changes to user nobody and anonymous access. if ypxfrd is not available. 5. Rpc.pcnfsd has problem with wlogin() when the server cannot resolve the client hostname. PHNE_8310: 1. Get_myaddress routine in ypwhich fails if X.25 is the only interface configured. 2. Enhancement request to log authentication info to wtmp file. 3. Makedbm wouldn't run on certain S800's due to compilation error. 4. rpc.rquotad doesn't do JFS systems. 5. rpc.mountd default was to run from non-priveledged ports. 6. rpc.yppasswdd daemon would return errors if temp file was on seperate partition from root rile. PHCO_9543: The problem is caused by a bug in /sbin/fs/nfs/umount. If a file system is mounted on over NFS, and the file system goes away for some reason, the file system will be reported as Stale, and there is no way to get rid of this without a reboot. To recreate the problem, make a directory on system A and export it. On system B (must be 10.20), mount the file system. Remove the directory on system A. Do a bdf on system B, and it should report "Stale NFS file handler" for the mounted file system. Doing a umount of the file system also reports this error, and the umount is not done. Even if the directory is recreated on system A, and exported, it cannot be umounted. The system would have to be rebooted. SR: 1653218305 1653207654 5003373092 5003332296 5003373092 5003287649 5003323980 1653155622 1653153593 5003306993 1653146357 4701314765 5003283846 5003273565 5003282038 5003291245 1653154476 5003299255 5003293001 5003290833 5003301564 4701314765 1653159087 1653183277 5003335984 5003349878 5003355784 Patch Files: /sbin/fs/nfs/mount /sbin/fs/nfs/umount /sbin/fs/cachefs/mount /sbin/fs/cachefs/umount /sbin/fs/cachefs/fsck /sbin/fs/autofs/mount /sbin/fs/autofs/umount /usr/sbin/onccompat /usr/sbin/cfsadmin /usr/sbin/cachefsstat /sbin/lib/mfsconfig.d/cachefs /usr/bin/nfsstat /usr/sbin/rpc.lockd /usr/sbin/rpc.mountd /sbin/init.d/nfs.client /sbin/init.d/autofs /sbin/init.d/autofs_setup /usr/sbin/automount /usr/sbin/automountd /usr/share/man/man1m.Z/mount_nfs.1m /usr/share/man/man1m.Z/cfsadmin.1m /usr/share/man/man1m.Z/fsck_cachefs.1m /usr/share/man/man1m.Z/mount_cachefs.1m /usr/share/man/man1m.Z/cachefsstat.1m /usr/share/man/man1m.Z/automount.1m /usr/share/man/man1m.Z/automountd.1m /usr/share/man/man1m.Z/onccompat.1m /usr/sbin/rpc.statd /usr/sbin/exportfs /usr/sbin/ypxfr /usr/lib/netsvc/yp/ypserv /usr/lib/netsvc/yp/rpc.yppasswdd /usr/sbin/rpc.rexd /usr/sbin/rpc.rquotad /usr/sbin/rpc.pcnfsd /usr/sbin/makedbm /usr/bin/ypwhich /usr/share/man/man1m.Z/exportfs.1m /usr/share/man/man1m.Z/pcnfsd.1m /usr/share/man/man4.Z/exports.4 /usr/share/man/man3.Z/secure_rpc.3c what(1) Output: /sbin/fs/nfs/mount: mount PHNE_13835 $Date: 98/02/09 14:58:17 $ $Revisio n: 1.1.114.8 $PATCH_10.20 $ PATCH-PHCO_13775 for 10.20; for 10.30, 11.x compatib ility libc.a_ID@@/main/r10dav/libc_dav/libc_ dav_cpe/7 /ux/core/libs/libc/archive_pa1/libc.a_ID Jan 15 1998 20:23:04 /sbin/fs/nfs/umount: $Revision: 78.6 $ PATCH/10.20:PHCO_8764 libc.a_ID@@/main/r10dav/libc_d av/libc_dav_cpe/2 /ux/libc/libs/libc/archive_pa1/libc.a_ID Oct 2 1996 10:35:25 PATCH_10_20: /opt/langtools/lib/crt0.o umount.o 96/1 2/12 /sbin/fs/cachefs/mount: HP92453-02A.10.00 HP-UX SYMBOLIC DEBUGGER (END.O) $R evision: 74.03 $ mount: PHNE_13835 $Revision: 1.1.114.7 $ $Date : 98/02/18 09:38:10 $ /sbin/fs/cachefs/umount: HP92453-02A.10.00 HP-UX SYMBOLIC DEBUGGER (END.O) $R evision: 74.03 $ umount: PHNE_13835 $Revision: 1.1.114.4 $ $Date : 98/02/09 15:41:09 $ /sbin/fs/cachefs/fsck: HP92453-02A.10.00 HP-UX SYMBOLIC DEBUGGER (END.O) $R evision: 74.03 $ fsck: PHNE_13835 $Revision: 1.1.114.7 $ $Date : 98/02/09 15:40:51 $ /sbin/fs/autofs/mount: mount: PHNE_13835 $Revision: 1.1.114.4 $ $Date : 98/02/06 10:14:06 $ /sbin/fs/autofs/umount: umount: PHNE_13835 $Revision: 1.1.114.2 $ /usr/sbin/onccompat: onccompat: PHNE_13835 $Revision: 1.1.114.7 $ $Date : 98/02/09 15:40:51 $ /usr/sbin/cfsadmin: HP92453-02A.10.00 HP-UX SYMBOLIC DEBUGGER (END.O) $R evision: 74.03 $ cfsadmin: PHNE_13835 $Revision: 1.1.114.6 $ $Date : 98/02/09 15:40:05 $ /usr/sbin/cachefsstat: HP92453-02A.10.00 HP-UX SYMBOLIC DEBUGGER (END.O) $R evision: 74.03 $ cachefsstat: PHNE_13835 $Revision: 1.1.114.2 $ $Date : 98/02/09 15:40:26 $ /sbin/lib/mfsconfig.d/cachefs: $Revision: 78.3 $ /usr/bin/nfsstat: PHNE_13835 $Revision: 1.1.114.4 $ $Date: 98/02/ 05 10:58:53 $ /usr/sbin/rpc.lockd: rpc.lockd: PHNE_13835 $Revision: 1.1.114.6 $ $Date : 98/02/05 10:48:51 $ /usr/sbin/rpc.mountd: PHNE_13835 10.2 rpc.mountd: $Revision: 1.1.114.7 $ $ Date: 98/02/05 10:53:58 $ issubdir.c 1.2 90/07/23 4.1NFSSRC Copyr 1990 Su n Micro /sbin/init.d/nfs.client: nfs.client $Revision: 1.1.114.5 $ $Date: 98/02/09 17 :15:26 $ /sbin/init.d/autofs: autofs: PHNE_99025 $Revision:1 /sbin/init.d/autofs_setup: None /usr/sbin/automount: automount: PHNE_13835 $Revision: 1.1.114.5 $ $ Date: 98/02/06 10:12:38 $ /usr/sbin/automountd: automountd: PHNE_13835 $Revision: 1.1.114.4 $ $Dat e: 98/02/06 10:11:24 $ /usr/share/man/man1m.Z/mount_nfs.1m: None /usr/share/man/man1m.Z/cfsadmin.1m: None /usr/share/man/man1m.Z/fsck_cachefs.1m: None /usr/share/man/man1m.Z/mount_cachefs.1m: None /usr/share/man/man1m.Z/cachefsstat.1m: None /usr/share/man/man1m.Z/automount.1m: None /usr/share/man/man1m.Z/automountd.1m: None /usr/share/man/man1m.Z/onccompat.1m: None /usr/share/man/man1m.Z/exportfs.1m: None /usr/share/man/man1m.Z/pcnfsd.1m: None /usr/share/man/man4.Z/exports.4: None /usr/share/man/man3.Z/secure_rpc.3c: None /usr/sbin/rpc.statd: PATCH_10.X rpc.statd: $Revision: 1.19.114.2 $ $Date: 96/02/15 17:17:41 $ PHNE_8310 sm_proc.c : $Revision: 1.11.114.3 $ $Date: 96/03/28 17:25:46 $ PHNE_6444 sm_statd.c: $Revision: 1.21.114.2 $ $Date: 96/02/15 17:03:52 $ PHNE_6444 RB2 /usr/sbin/exportfs: PHNE_8310 10.2 exportfs.c: $Revision: 1.3.114.3 $ $Date: 96/01/16 12:49:22 $ issubdir.c 1.2 90/07/23 4.1NFSSRC Copyr 1990 Su n Micro /usr/sbin/ypxfr: PHNE_9465 ypxfr: $Revision: 1.46.114.3 $ $Dat e: 96/12/09 14:47:1 8 $ /usr/lib/netsvc/yp/ypserv: ypserv.c 1.4 92/06/05 4.1NFSSRC Copyr 1990 Su n Micro ypserv_ancil.c 1.4 90/07/23 4.1NFSSRC Copyr 1990 Su n Micro ypserv_map.c 1.3 92/06/05 4.1NFSSRC Copyr 1990 Su n Micro ypserv_proc.c 1.3 90/07/23 4.1NFSSRC Copyr 1990 Su n Micro yp_cache.c: $Revision: 1.3.114.1 $ $Date: 95/10 /02 18:23:56 $ PHNE_8310 10.20 ypserv_dbmtrak.c 1.1 90/07/24 4.1NFSSRC Copyr 1990 SMI ypserv_net_secure.c 1.2 92/06/05 4.1NFSSRC Copyr 1990 Sun Micro ngethostbyname.c 1.2 92/04/08 4.1NFSSRC /usr/lib/netsvc/yp/rpc.yppasswdd: PHNE_10515 10.2 rpc.yppasswdd: $Revision: 1.50.114. 3 $ $Date: 96/09/23 15:52:17 $ /usr/sbin/rpc.rexd: PHNE_8310 10.20 rexd.c 1.5 92/04/20 4.1NFSSRC Copyr 1990 Sun Micro publickey.c 1.3 90/07/19 4.1NFSSRC Copyr 1990 Su n Micro /usr/sbin/rpc.rquotad: PHNE_10894 $Revision: 1.9.114.3 $ /usr/sbin/rpc.pcnfsd: rpc.pcnfsd: $Revision: 1.3.114.4 $ $Date: 97/01 /06 15:43:02 $ PHNE_9465 pcnfsd_v2.c 1.6 - rpc.pcnfsd V2.0 (c) 1991 Sun T echnology Enterprises, Inc. /usr/sbin/makedbm: PHNE_8310 10.2 makedbm: $Revision: 1.35.114.2 $ $Dat e: 95/11/20 17:14:58 $ /usr/bin/ypwhich: PHNE_8310 10.20 ypwhich: $Revision: 1.37.114. 1 $ $Date: 95/10/02 18:18:11 $ cksum(1) Output: 1140136896 208896 /sbin/fs/nfs/mount 2453477347 200704 /sbin/fs/nfs/umount 1911629031 175972 /sbin/fs/cachefs/mount 2693312472 155252 /sbin/fs/cachefs/umount 4187593876 221472 /sbin/fs/cachefs/fsck 347635653 16384 /sbin/fs/autofs/mount 315639114 16384 /sbin/fs/autofs/umount 2922132449 20480 /usr/sbin/onccompat 2933938316 181084 /usr/sbin/cfsadmin 3414139120 67964 /usr/sbin/cachefsstat 2663171612 685 /sbin/lib/mfsconfig.d/cachefs 2446583780 32768 /usr/bin/nfsstat 786854057 118784 /usr/sbin/rpc.lockd 2514561578 36864 /usr/sbin/rpc.mountd 1239255947 8033 /sbin/init.d/nfs.client 850158427 1046 /sbin/init.d/autofs 1747626295 1798 /sbin/init.d/autofs_setup 229958173 32768 /usr/sbin/automount 2498566063 61440 /usr/sbin/automountd 2347246332 5288 /usr/share/man/man1m.Z/mount_nfs.1m 2879173239 3869 /usr/share/man/man1m.Z/cfsadmin.1m 2044996720 915 /usr/share/man/man1m.Z/fsck_cachefs.1m 2021764642 3278 /usr/share/man/man1m.Z/mount_cachefs.1m 3217179419 1161 /usr/share/man/man1m.Z/cachefsstat.1m 3650396958 6856 /usr/share/man/man1m.Z/automount.1m 2119062518 1206 /usr/share/man/man1m.Z/automountd.1m 1109082091 589 /usr/share/man/man1m.Z/onccompat.1m 1542914344 53248 /usr/sbin/rpc.statd 1004299442 24576 /usr/sbin/exportfs 821998992 49152 /usr/sbin/ypxfr 1002821467 94208 /usr/lib/netsvc/yp/ypserv 2488008112 32768 /usr/lib/netsvc/yp/rpc.yppasswdd 1093860294 86016 /usr/sbin/rpc.rexd 141635557 20480 /usr/sbin/rpc.rquotad 720388176 53248 /usr/sbin/rpc.pcnfsd 676784799 20480 /usr/sbin/makedbm 4221851490 20480 /usr/bin/ypwhich 4245156863 3425 /usr/share/man/man1m.Z/exportfs.1m 2288025224 7371 /usr/share/man/man1m.Z/pcnfsd.1m 1318220241 3266 /usr/share/man/man4.Z/exports.4 257139511 5514 /usr/share/man/man3.Z/secure_rpc.3c Patch Conflicts: None Patch Dependencies: s700: 10.20: PHNE_13833 s800: 10.20: PHNE_13834 Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_9543 PHNE_8310 PHNE_9465 PHNE_10515 PHNE_10894 Equivalent Patches: None Patch Package Size: 2110 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHNE_13835 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHNE_13835.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHNE_13835.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHNE_13835. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHNE_13835.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHNE_13835.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None