Patch Name: PHKL_25428 Patch Description: s700_800 11.11 system_space.h header file patch Creation Date: 01/10/10 Post Date: 01/10/12 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_25428: OTHER The primary symptom is that the kernel tunable can be set incorrectly. In some cases the tunable may be large and in other cases it may be set to small values. So, in some cases, applications will allocate more swap space than allowed and in other cases, applications may observe memory allocation(malloc) failures. PHKL_23290: PANIC HANG CORRUPTION MEMORY_LEAK Category Tags: defect_repair general_release critical panic halts_system corruption memory_leak Path Name: /hp-ux_patches/s700_800/11.X/PHKL_25428 Symptoms: PHKL_25428: ( SR:8606211358 CR:JAGad80546 ) 64bit systems do not behave as expected based on the values set for the kernel tunables. For example, an application may be allocating more swap space than allowed, based on the maxdsiz_64bit tunable. The symptoms vary, based on the specific tunable involved. The following kernel tunables are affected: maxdsiz, maxssiz, maxtsiz, maxdsiz_64bit, maxssiz_64bit, maxtsiz_64bit PHKL_23290: ( SR:8606174670 CR:JAGad43916 ) Compiling kernel-intrusive programs (such as drivers and programs that access /dev/mem or /dev/kmem) on HP-UX 11.11 may result in compiler warnings or errors due to namespace violations. Executing such programs may cause kernel structure data corruption, resulting in memory leaks, hangs, or panics. Defect Description: PHKL_25428: ( SR:8606211358 CR:JAGad80546 ) The kernel converts the value of a tunable in bytes to pages. For values greater than or equal to 0x80000000(2G), either set directly to a value or through an expression, the resulting number of pages is incorrectly calculated due to a sign extension or truncation error. Resolution: The problem was fixed by casting the constants to 64bit types. This forces the compiler to do 64bit computation. Otherwise, the compiler assumes 32bit values. PHKL_23290: ( SR:8606174670 CR:JAGad43916 ) A number of program header files were delivered in their "debug" forms rather than in their intended "performance" forms. Kernel-intrusive programs (such as drivers and programs that access /dev/mem or /dev/kmem) compiled with these header files may contain internal structures that are not aligned with the actual kernel structures. Resolution: A set of patches redeliver the header files in their intended forms. All kernel-intrusive programs originally compiled using the header files included on the HP-UX 11i Operating Environment OE Install and Recovery media dated December 2000 must be recompiled using the corrected header files. All of the corrected header file patches are included in the BUNDLE11i bundle on on the HP-UX 11i Operating Environment Core OE Install and Recovery media dated February 2001 or later. The complete list of header file patches is: PHNE_23288 /usr/conf/net/netmp.h /usr/include/net/netmp.h /usr/conf/sys/socketvar.h /usr/include/sys/socketvar.h /usr/conf/sys/unpcb.h /usr/include/sys/unpcb.h PHNE_23289 /usr/include/sio/mux4.h PHKL_23290 /usr/conf/space.h.d/system_space.h PHKL_23291 /usr/conf/graf/gpu_data.h PHKL_23292 /usr/conf/io/scsi_surface.h PHKL_23293 /usr/conf/sys/assert.h PHKL_23294 /usr/conf/sys/buf.h /usr/include/sys/buf.h PHKL_23295 /usr/conf/sys/debug.h /usr/include/sys/debug.h PHKL_23296 /usr/conf/sys/dnlc.h /usr/include/sys/dnlc.h PHKL_23297 /usr/conf/sys/io.h /usr/include/sys/io.h PHKL_23298 /usr/include/sys/ki_iface.h PHKL_23299 /usr/conf/sys/pfdat.h /usr/include/sys/pfdat.h PHKL_23300 /usr/include/sys/proc_debug.h PHKL_23301 /usr/conf/sys/proc_iface.h /usr/include/sys/proc_iface.h PHKL_23302 /usr/conf/sys/rw_lock.h /usr/include/sys/rw_lock.h PHKL_23303 /usr/conf/sys/sem_alpha.h /usr/include/sys/sem_alpha.h PHKL_23304 /usr/conf/sys/sem_beta.h /usr/include/sys/sem_beta.h PHKL_23305 /usr/conf/sys/sem_sync.h /usr/include/sys/sem_sync.h PHKL_23306 /usr/conf/sys/sem_utl.h /usr/include/sys/sem_utl.h PHKL_23307 /usr/conf/sys/spinlock.h /usr/include/sys/spinlock.h PHKL_23308 /usr/conf/sys/vas.h /usr/include/sys/vas.h PHKL_23309 /usr/conf/sys/vfd.h /usr/include/sys/vfd.h PHKL_23310 /usr/conf/sys/vnode.h /usr/include/sys/vnode.h PHKL_23311 /usr/conf/ufs/inode.h /usr/include/sys/inode.h PHKL_23312 /usr/conf/wsio/pci.h /usr/include/sys/pci.h PHKL_23313 /usr/include/sys/scsi_ctl.h PHKL_23314 /usr/conf/pa/sync/spinlock.h /usr/include/pa/sync/spinlock.h PHKL_23315 /usr/conf/pa/cpu.h /usr/include/pa/cpu.h PHKL_23316 /usr/conf/pa/sys/map.h SR: 8606174670 8606211358 Patch Files: OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/conf/space.h.d/system_space.h OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/space.h.d/system_space.h what(1) Output: OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/conf/space.h.d/system_space.h: system_space.h $Date: 2001/02/02 16:39:18 $Revision: r11.11/1 PATCH_11.11 (PHKL_23290) OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/space.h.d/system_space.h: system_space.h $Date: 2001/10/03 13:09:54 $Revision: r11.11/2 PATCH_11.11 (PHKL_25428) cksum(1) Output: OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: 2165968869 18472 /usr/conf/space.h.d/system_space.h OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 3171976030 18982 /usr/conf/space.h.d/system_space.h Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHKL_23290 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_25428 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_25428.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_25428. 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_25428.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_25428.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_25428.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None