Patch Name: PHKL_20087 Patch Description: s700 10.26 Return correct value for open() Creation Date: 99/10/08 Post Date: 99/10/22 Hardware Platforms - OS Releases: s700: 10.26 Products: N/A Filesets: OS-Core.CORE-KRN Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_20087: CORRUPTION Path Name: /hp-ux_patches/s700/10.X/PHKL_20087 Symptoms: PHKL_20087: Ported 10.20 patch PHKL_18748 to TOS. (PHKL_18748) ( SR: 5003425678 CR: JAGaa12820 ) When an open() system call is made on an NFS mount, it occasionally returns errno=0 and r_val1=0. Subsequent use of the file descriptor (FD) will return EBADF or unintentionally send data to STDIN (FD 0). Defect Description: PHKL_20087: Ported 10.20 patch PHKL_18748 to TOS. ( SR: 5003425678 CR: JAGaa12820 ) The variable containing the return value for the open() system call (the file descriptor) can be incorrectly overwritten when the file being accessed is on NFS. Resolution: The return value is now saved and restored by copen() (called by open()) before returning. SR: 5003425678 Patch Files: /usr/conf/lib/libhp-ux.a(vfs_scalls.o) what(1) Output: /usr/conf/lib/libhp-ux.a(vfs_scalls.o): 99/10/05 kern/sys/vfs_scalls.c, hpux, hpux_10.26, ic 5dm Revision 1.4 PATCH_10.26 (PHKL_20087) cksum(1) Output: 2795496361 29904 /usr/conf/lib/libhp-ux.a(vfs_scalls.o) Patch Conflicts: None Patch Dependencies: s700: 10.26: PHKL_17282 Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHKL_20088: s800: 10.26 PHKL_18748: s700: 10.20 PHKL_18749: s800: 10.20 Patch Package Size: 90 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 PHKL_20087 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHKL_20087.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHKL_20087. 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 PHKL_20087.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/PHKL_20087.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: This patch depends on base patch PHKL_17282 . For successful installation please insure that PHKL_17282 is in the same depot with this patch, or PHKL_17282 is already installed.