Patch Name: PHKL_30708 Patch Description: s700_800 11.00 JFS3.3 vx_trunc_typed error Creation Date: 04/05/09 Post Date: 04/06/07 Hardware Platforms - OS Releases: s700: 11.00 s800: 11.00 Products: JFS 3.3; Filesets: JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_32,v=HP JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_30708: HANG umount process hangs intermittently waiting for a buffer to be free. PHKL_24013: PANIC Category Tags: defect_repair general_release critical panic halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHKL_30708 Symptoms: PHKL_30708: ( SR:8606349607 CR:JAGaf10424 ) Umount of a vxfs filesystem hangs intermittently showing the following kernel stack trace. 0) _swtch+0xd4 1) _sleep+0x154 2) vx_blkinval+0x15c 3) vx_freeze_flush+0x198 4) vx_freeze_level+0x2b0 5) vx_freeze+0x3c 6) vx_detach_fset+0x74 7) vx_unmount+0x8c 8) umount_vfs+0x64 9) umount_root+0x24 10) umount+0x104 11) syscall+0x6f8 12) syscallinit+0x54c Syslog shows error "vx_trunc_typed - file system inode XXX marked bad" PHKL_24013: ( SR: 8606193738 DTS: JAGad62950 ) Data Page Fault in vx_do_extfree due to a corrupted VxFS file system. VxFS may display a lot of error messages on the console before panicking. Some of them are listed below: vxfs: mesg 001: vx_nospace - /dev/vx/dsk/srtdg1/lfs_004 file system full (1 block extent) vxfs: mesg 003: vx_mapbad - /dev/vx/dsk/srtdg1/lfs_003 file system free extent bitmap in au 37 marked bad vxfs: mesg 008: vx_direrr: vx_dirscan_2 - /var/opt/sst/work/ srtdg1_lfs_003 file system inode 2 block 37 error 6 Stack of the panic thread may look like, panic+0x14 report_trap_or_int_and_panic+0x94 trap+0x1288 nokgdb+0x8 vx_do_extfree+0x204 vx_extfree+0x128 vx_trunc_typed+0xa0c vx_trunc_typed+0x564 vx_trunc+0xb8c vx_inactive_tran+0x30c vx_inactive_list+0x164 vx_worklist_process+0xe0 vx_worklist_thread+0x50 kthread_daemon_startup+0x2c kthread_daemon_startup+0x0 vx_do_extfree+0x204vx_trunc_typed+0xa0c vx_trunc_typed+0x564 vx_trunc+0xb8c vx_inactive_tran+0x30c vx_inactive_list+0x164 vx_worklist_process+0xe0 vx_worklist_thread+0x50 kthread_daemon_startup+0x2c kthread_daemon_startup+0x0 vx_do_extfree+0x204 Defect Description: PHKL_30708: ( SR:8606349607 CR:JAGaf10424 ) Earlier in the umount process, an inode with typed extents fails validation. The inode is marked bad but the buffer used to read the inode is not properly released. The umount process is stuck waiting for this buffer to be released. Resolution: Code changes were done to release the buffer when the validation routine returns an error. PHKL_24013: ( SR: 8606193738 DTS: JAGad62950 ) Return value from a function was not validated since that function is not supposed to fail unless there is data corruption in the file system. Dereferencing the return value when this function failed would result in a panic. Resolution: Make sure that the file system is not corrupted before invoking the above mentioned function. Enhancement: No SR: 8606193738 8606349607 Patch Files: JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_32,v=HP: /usr/conf/lib/libvxfs.a(vx33_alloc.o) /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o) JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_64,v=HP: /usr/conf/lib/libvxfs.a(vx33_alloc.o) /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o) what(1) Output: JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_32,v=HP: /usr/conf/lib/libvxfs.a(vx33_alloc.o): vx33_alloc.c $Date: 2001/05/01 05:36:08 $Revision: r 11ros/2 PATCH_11.00 (PHKL_24013) /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o): vx33_bmaptyped.c $Date: 2004/05/05 12:16:14 $Revisio n: r11ros/4 PATCH_11.00 (PHKL_30708) JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_64,v=HP: /usr/conf/lib/libvxfs.a(vx33_alloc.o): vx33_alloc.c $Date: 2001/05/01 05:36:08 $Revision: r 11ros/2 PATCH_11.00 (PHKL_24013) /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o): vx33_bmaptyped.c $Date: 2004/05/05 12:16:14 $Revisio n: r11ros/4 PATCH_11.00 (PHKL_30708) cksum(1) Output: JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_32,v=HP: 867761697 30552 /usr/conf/lib/libvxfs.a(vx33_alloc.o) 2908521538 21936 /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o) JFS.JFS-BASE2-KRN,fr=3.3,fa=HP-UX_B.11.00_64,v=HP: 3588177321 57784 /usr/conf/lib/libvxfs.a(vx33_alloc.o) 1847891360 34976 /usr/conf/lib/libvxfs.a(vx33_bmaptyped.o) Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHKL_24013 Equivalent Patches: PHKL_30582: s700: 11.11 s800: 11.11 Patch Package Size: 100 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_30708 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_30708.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_30708. 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_30708.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_30708.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_30708.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None