Patch Name: PHCO_29329 Patch Description: s700_800 11.22 libc cumulative patch Creation Date: 03/08/07 Post Date: 03/08/13 Hardware Platforms - OS Releases: s700: 11.22 s800: 11.22 Products: N/A Filesets: OS-Core.C-MIN,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP OS-Core.C-MIN-64ALIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP OS-Core.CORE2-64SLIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP OS-Core.CORE2-SHLIBS,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP ProgSupport.PROG2-AUX,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP Automatic Reboot?: No Status: General Release Critical: Yes PHCO_29329: OTHER getcwd(3C) is not thread safe. PHCO_29236: CORRUPTION Category Tags: defect_repair general_release critical corruption Path Name: /hp-ux_patches/s700_800/11.X/PHCO_29329 Symptoms: PHCO_29329: ( SR:8606317544 CR:JAGae80105 ) memcpy(3C) does not support overlapped copy. ( SR:8606313554 CR:JAGae76352 ) Failure of APIs using relative path names when getcwd is called concurrently. PHCO_29236: ( SR:8606296004 CR:JAGae59640 ) strcpy() and strcat() corrupts data when destination is not 8 byte aligned. Defect Description: PHCO_29329: ( SR:8606317544 CR:JAGae80105 ) memcpy(3C) does not support overlapped copy. Resolution: memcpy(3C) has been changed to support overlapped copy. ( SR:8606313554 CR:JAGae76352 ) In a multi-threaded application, calling getcwd(3C) in one thread, may cause API's that do operations on files using a relative path in another thread, to fail. Resolution: Modified the getcwd algorithm so that this problem does not occur. PHCO_29236: ( SR:8606296004 CR:JAGae59640 ) Using the strcpy() or strcat() function with a destination address that is not word aligned may result in some corrupted characters. Resolution: strcpy() and strcat() are changed in such a way that it can handle unaligned addresses. NOTE: The defect manifests itself only when the parameter to the destination string points to an unaligned buffer and an unusual combination of residual data occurs in the registers used by these functions. These two conditions rarely occur. In this scenario strcpy and strcat APIs do not function as documented. This defect is fixed in the C library in this patch, PHCO_29236. Applications that are affected by this defect must be relinked with the patched library to function correctly. Enhancement: No SR: 8606296004 8606313554 8606317544 Patch Files: OS-Core.C-MIN,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/unix95.o /usr/lib/hpux32/unix98.o OS-Core.C-MIN-64ALIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux64/unix95.o /usr/lib/hpux64/unix98.o OS-Core.CORE2-64SLIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux64/libc.so.1 OS-Core.CORE2-SHLIBS,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/libc.so.1 /usr/lib/hpux32/libcres.a /usr/lib/hpux64/libcres.a ProgSupport.PROG2-AUX,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/libp/libc.so.1 /usr/lib/hpux32/libp/libcres.a /usr/lib/hpux64/libp/libc.so.1 /usr/lib/hpux64/libp/libcres.a what(1) Output: OS-Core.C-MIN,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/unix95.o: None /usr/lib/hpux32/unix98.o: None OS-Core.C-MIN-64ALIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux64/unix95.o: None /usr/lib/hpux64/unix98.o: None OS-Core.CORE2-64SLIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux64/libc.so.1: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:33:28 $ HP-UX/General Millicode B.11.20.00 (IPF TOT): (MILLI - 05/01/01) OS-Core.CORE2-SHLIBS,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/libc.so.1: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:28:52 $ HP-UX/General Millicode B.11.20.00 (IPF TOT): (MILLI - 05/01/01) /usr/lib/hpux32/libcres.a: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:38:27 $ /usr/lib/hpux64/libcres.a: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:38:35 $ ProgSupport.PROG2-AUX,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: /usr/lib/hpux32/libp/libc.so.1: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:35:50 $ HP-UX/General Millicode B.11.20.00 (IPF TOT): (MILLI - 05/01/01) /usr/lib/hpux32/libp/libcres.a: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:38:42 $ /usr/lib/hpux64/libp/libc.so.1: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:37:58 $ HP-UX/General Millicode B.11.20.00 (IPF TOT): (MILLI - 05/01/01) /usr/lib/hpux64/libp/libcres.a: $ PATCH_11.22/PHCO_29329 Aug 7 2003 05:38:49 $ cksum(1) Output: OS-Core.C-MIN,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: 227069456 1312 /usr/lib/hpux32/unix95.o 3026525948 1312 /usr/lib/hpux32/unix98.o OS-Core.C-MIN-64ALIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: 3328448689 1632 /usr/lib/hpux64/unix95.o 2365888115 1632 /usr/lib/hpux64/unix98.o OS-Core.CORE2-64SLIB,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: 1289189918 3835592 /usr/lib/hpux64/libc.so.1 OS-Core.CORE2-SHLIBS,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: 1947660589 4101000 /usr/lib/hpux32/libc.so.1 1340991101 64418 /usr/lib/hpux32/libcres.a 811286516 73746 /usr/lib/hpux64/libcres.a ProgSupport.PROG2-AUX,fr=B.11.22,fa=HP-UX_B.11.22_IA,v=HP: 2496187435 4410160 /usr/lib/hpux32/libp/libc.so.1 2229141042 70250 /usr/lib/hpux32/libp/libcres.a 2721312568 3885800 /usr/lib/hpux64/libp/libc.so.1 1548122233 81370 /usr/lib/hpux64/libp/libcres.a Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHCO_29236 Equivalent Patches: None Patch Package Size: 5690 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 PHCO_29329 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHCO_29329.depot By default swinstall will archive the original software in /var/adm/sw/save/PHCO_29329. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHCO_29329.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHCO_29329.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_29329.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: If libc patches are installed without rebooting, applications currently running which are linked shared against libc will still continue using the former version of libc. If this presents a problem to any applications, you should reboot.