Patch Name: PHKL_24251 Patch Description: s700_800 11.00 copy is unsafe to or near I/O space Creation Date: 01/06/05 Post Date: 01/06/12 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: N/A Filesets: OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_32,v=HP OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_24251: MEMORY_LEAK Category Tags: defect_repair general_release critical memory_leak Path Name: /hp-ux_patches/s700_800/11.X/PHKL_24251 Symptoms: PHKL_24251: ( SR: 8606165818 CR: JAGad35109) bcopy, lbcopy, and ulbcopy are unsafe in or near I/O space. Defect Description: PHKL_24251: ( SR: 8606165818 CR: JAGad35109) Prefetching is allowed to roam past the end of the source or destination region. Normally overprefetching is fine, but if the prefetch touches more than it should in I/O space, then it may inadvertantly read a CSR or other critical data and change the state of a card. This could cause I/O errors, hangs, or HPMCs. Resolution: Modify bcopy.s, lbcopy.c, and ulbcopy.s to not prefetch the next cacheline if the sum of the current address and three cache lines is greater than the destination address. SR: 8606165818 Patch Files: OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_32,v=HP: /usr/conf/lib/libhp-ux.a(bcopy.o) /usr/conf/lib/libhp-ux.a(lbcopy.o) /usr/conf/lib/libhp-ux.a(ulbcopy.o) OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_64,v=HP: /usr/conf/lib/libhp-ux.a(bcopy.o) /usr/conf/lib/libhp-ux.a(lbcopy.o) /usr/conf/lib/libhp-ux.a(ulbcopy.o) what(1) Output: OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_32,v=HP: /usr/conf/lib/libhp-ux.a(bcopy.o): bcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11ros /3 PATCH_11.00 (PHKL_24251) /usr/conf/lib/libhp-ux.a(lbcopy.o): lbcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11ro s/4 PATCH_11.00 (PHKL_24251) /usr/conf/lib/libhp-ux.a(ulbcopy.o): ulbcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11r os/9 PATCH_11.00 (PHKL_24251) OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_64,v=HP: /usr/conf/lib/libhp-ux.a(bcopy.o): bcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11ros /3 PATCH_11.00 (PHKL_24251) /usr/conf/lib/libhp-ux.a(lbcopy.o): lbcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11ro s/4 PATCH_11.00 (PHKL_24251) /usr/conf/lib/libhp-ux.a(ulbcopy.o): ulbcopy.s $Date: 2001/05/31 06:39:58 $Revision: r11r os/9 PATCH_11.00 (PHKL_24251) cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_32,v=HP: 770906888 4712 /usr/conf/lib/libhp-ux.a(bcopy.o) 2857116386 6188 /usr/conf/lib/libhp-ux.a(lbcopy.o) 2379668577 6544 /usr/conf/lib/libhp-ux.a(ulbcopy.o) OS-Core.CORE2-KRN,fr=B.11.00,fa=HP-UX_B.11.00_64,v=HP: 1242742906 4192 /usr/conf/lib/libhp-ux.a(bcopy.o) 238244922 5624 /usr/conf/lib/libhp-ux.a(lbcopy.o) 2421466378 7440 /usr/conf/lib/libhp-ux.a(ulbcopy.o) Patch Conflicts: None Patch Dependencies: s700: 11.00: PHKL_18543 s800: 11.00: PHKL_18543 Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 70 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_24251 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_24251.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_24251. 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 PHKL_24251.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_24251.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_24251.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: This patch depends on base patch PHKL_18543. For successful installation please insure that PHKL_18543 is already installed, or that PHKL_18543 is included in the same depot with this patch and PHKL_18543 is selected for installation.