Patch Name: PHKL_25030 Patch Description: s700_800 11.04 (VVOS) Fix for panic in kernel profiling Creation Date: 01/08/30 Post Date: 01/09/24 Hardware Platforms - OS Releases: s700: 11.04 s800: 11.04 Products: N/A Filesets: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_25030: PANIC HANG Based on HP-UX Patch PHKL_21681: PANIC HANG Category Tags: defect_repair general_release critical panic halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHKL_25030 Symptoms: PHKL_25030: Ported HP-UX patch PHKL_21681 to VVOS Based on HP-UX patch PHKL_21681: (SR: 8606128587 CR: JAGac86134) Turning on kernel profiling may cause the system to hang. (SR: 8606162544 CR: JAGad31860) Turning on kernel profiling may cause a spinlock deadlock panic. The stack trace may be similar to: profiling_set_it+0x94 set_it+0x190 clock_int+0x98 mp_ext_interrupt+0x144 ivti_patch_to_nop3+0x0 mp_ext_interrupt+0x10c ivti_patch_to_nop3+0x0 read16_pdc_iodc+0x88 core_create_child+0x5c core_scan+0x2b0 gio_scan_subtree+0x188 gio_scan_subtree+0x1c4 gio_scan_subtree+0x1c4 io_scan+0x9c do_io_scan+0x48 dev_config_ioctl+0xd8 spubind_cdev_ioctl+0x94 spec_ioctl+0xac vno_ioctl+0x90 ioctl+0x1d8 syscall+0x480 $syscallrtn+0x0 Defect Description: PHKL_25030: Ported HP-UX patch PHKL_21681 to VVOS Based on HP-UX patch PHKL_21681: (SR: 8606128587 CR: JAGac86134) When the time until the next clock tick is calculated as a negative number, we can infinitely loop with interrupts disabled in the kernel profiling routine that schedules the next sampling time. Resolution: The kernel profiling code was changed to allow proper exit from a loop when the time until the next clock tick is negative. (SR: 8606162544 CR: JAGad31860) Spinlock held too long in kernel profiling routines. Resolution: The kernel profiling code was changed to ensure the spinlock was properly released. SR: 8606128587 8606162544 Patch Files: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: /usr/conf/lib/libhp-ux.a(subr_mcnt.o) OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: /usr/conf/lib/libhp-ux.a(subr_mcnt.o) what(1) Output: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: /usr/conf/lib/libhp-ux.a(subr_mcnt.o): subr_mcnt.c $Date: 2000/09/28 13:24:44 $Revision: r1 1ros/5 PATCH_11.00 (PHKL_21681) OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: /usr/conf/lib/libhp-ux.a(subr_mcnt.o): subr_mcnt.c $Date: 2000/09/28 13:24:44 $Revision: r1 1ros/5 PATCH_11.00 (PHKL_21681) cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: 2066335023 9940 /usr/conf/lib/libhp-ux.a(subr_mcnt.o) OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: 3115277028 21152 /usr/conf/lib/libhp-ux.a(subr_mcnt.o) Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHKL_21681: s700: 11.00 s800: 11.00 Patch Package Size: 60 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_25030 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_25030.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_25030. If you do not wish to retain a copy of the original software, use the patch_save_files option: swinstall -x autoreboot=true -x patch_match_target=true \ -x patch_save_files=false -s /tmp/PHKL_25030.depot 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_25030.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_25030.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_25030.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None