Patch Name: PHKL_26705 Patch Description: s700_800 11.11 syslog/console handling,printf panic fix Creation Date: 02/03/20 Post Date: 02/03/28 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_26705: PANIC PHKL_25888: PANIC Category Tags: defect_repair general_release critical panic Path Name: /hp-ux_patches/s700_800/11.X/PHKL_26705 Symptoms: PHKL_26705: ( SR:8606241614 CR:JAGae08872 ) Fast CPU machines such as V class, N class and Superdomes may panic with "spinlock deadlock" Panic stack trace: LVL FUNC 0) panic+0x14 1) too_much_time+0x2e0 2) wait_for_lock+0x14c 3) slu_retry+0x1c 4) hpstreams_option1+0x2dc 5) prf_putchar+0x364 6) prf+0xdb0 7) uprintf+0x50 8) vx_umsgprint2+0x5c 9) vx_nospace+0xd0 10) vx_zero_alloc+0x320 11) vx_alloc_clear+0x34c 12) vx_write1+0xca0 13) vx_rdwr+0x170 14) vno_rw+0x78 15) write+0x104 16) syscall+0x480 17) $syscallrtn+0x0 PHKL_25888: ( SR:8606220722 CR:JAGad89859 ) A system may panic because of an instruction page fault when a device that has been inadvertently closed tries to put a character. Trap Type 6 (Instruction page fault): Instruction Address (pcsq.pcoq) = 0x0.0x0 Instruction (iir) = 0x43ffff80 (load/store) Savestate Ptr (ssp) = 0x93bd000.0x7fff1630 Savestate Return Pointer (ss_rp) = 0x292cec LVL FUNC 0) panic+0x14 1) report_trap_or_int_and_panic+0x4c 2) trap+0xefc 3) thandler+0xbe0 4) prf_putchar+0x308 5) prf+0xd4c 6) uprintf+0x30 7) rfscall+0x4b8 8) rfs3call+0x78 9) nfs3lookup+0x2d0 10) nfs3_lookup+0xf4 11) locallookuppn+0xdc 12) lookuppn+0x100 13) vn_remove+0x70 14) unlink+0x24 15) syscall+0x750 16) syscallinit+0x5b0 PHKL_25493: ( SR:8606196155 CR:JAGad65359 ) Missing console and/or syslog data when vmunix tries to print more than 4 kilobytes of information at boot time. Possible side effects include: * The console repeats 4k worth of data -- up to 16 times * The "dmesg" command returns information that was printed prior to the first vmunix entry in syslog.log * Important boot time messages may be lost. Defect Description: PHKL_26705: ( SR:8606241614 CR:JAGae08872 ) This defect is a race condition where the stream head has been closed with the process containing hpstreams_option1 still sleeping. When the process wakes up the address of the stream head has been freed. Resolution: The resolution is to increase the device's dt_opencount before calling STREAM interface, and decrease it later. PHKL_25888: ( SR:8606220722 CR:JAGad89859 ) An attempt was made to put a character to a NODEV device. This resulted in a system panic because the device driver function table is not valid for a NODEV device. Resolution: Added a guard that prevents NODEV devices from putting characters. PHKL_25493: ( SR:8606196155 CR:JAGad65359 ) The old system message buffer was too small, and several defects appeared when it overflowed. (Having a large number of IO devices could trigger a buffer overflow.) Resolution: 1) Increased the size of the system message buffer. 2) Solved the defects by using a cleaner implementation. 3) Maintained full compatibility with dmesg. SR: 8606196155 8606220722 8606241614 Patch Files: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/conf/lib/libpseudo_drivers.a(klog.o) /usr/conf/lib/libshutdown-pdk.a(panic.o) /usr/conf/lib/libutil.a(subr_prf.o) OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/lib/libpseudo_drivers.a(klog.o) /usr/conf/lib/libshutdown-pdk.a(panic.o) /usr/conf/lib/libutil.a(subr_prf.o) what(1) Output: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: /usr/conf/lib/libpseudo_drivers.a(klog.o): klog.c $Date: 2001/10/12 10:17:20 $Revision: r11.11/ 1 PATCH_11.11 (PHKL_25493) /usr/conf/lib/libshutdown-pdk.a(panic.o): panic.c $Date: 2001/10/12 10:17:20 $Revision: r11.11 /1 PATCH_11.11 (PHKL_25493) /usr/conf/lib/libutil.a(subr_prf.o): subr_prf.c $Date: 2002/03/15 00:34:47 $Revision: r11 .11/3 PATCH_11.11 (PHKL_26705) OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/lib/libpseudo_drivers.a(klog.o): klog.c $Date: 2001/10/12 10:17:20 $Revision: r11.11/ 1 PATCH_11.11 (PHKL_25493) /usr/conf/lib/libshutdown-pdk.a(panic.o): panic.c $Date: 2001/10/12 10:17:20 $Revision: r11.11 /1 PATCH_11.11 (PHKL_25493) /usr/conf/lib/libutil.a(subr_prf.o): subr_prf.c $Date: 2002/03/15 00:34:47 $Revision: r11 .11/3 PATCH_11.11 (PHKL_26705) cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_32,v=HP: 3822604481 3812 /usr/conf/lib/libpseudo_drivers.a(klog.o) 1095090875 4356 /usr/conf/lib/libshutdown-pdk.a(panic.o) 314899783 16996 /usr/conf/lib/libutil.a(subr_prf.o) OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 2335847537 11048 /usr/conf/lib/libpseudo_drivers.a(klog.o) 2528107538 9416 /usr/conf/lib/libshutdown-pdk.a(panic.o) 634886764 42072 /usr/conf/lib/libutil.a(subr_prf.o) Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHKL_25888 PHKL_25493 Equivalent Patches: PHKL_26337: s700: 11.00 s800: 11.00 Patch Package Size: 120 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_26705 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_26705.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_26705. 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_26705.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_26705.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_26705.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None