Patch Name: PHKL_28401 Patch Description: s700_800 11.04 (VVOS) HFS cumulative Creation Date: 02/12/13 Post Date: 03/02/04 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: No (superseded patches were critical) PHKL_25050: HANG Based on HP-UX Patch PHKL_24117: HANG PHKL_23014: PANIC Based on HP-UX Patch PHKL_18798: PANIC Category Tags: defect_repair general_release critical panic halts_system Path Name: /hp-ux_patches/s700_800/11.X/PHKL_28401 Symptoms: PHKL_28401: ( SR: 8606289446 Chart: JAGae53377 ) HFS directory sticky-bit not functioning according to specification and man pages. PHKL_25050: Ported HP-UX patch PHKL_24117 to VVOS Based on HP-UX patch PHKL_24117: ( SR: 8606195337 Chart: JAGad64541 ) A hang can occur in HFS due to a deadlock between two threads operating in the same directory. Following are possible stack traces of the threads in deadlock: Trace of thread 1 ----------------- real_sleep+0x234 _sleep+0x14 dvp_sleep+0x58 use_dev_dvp+0x90 ufs_inactive+0 vn_rele+0x1e8 dnlc_rm+0x90 dnlc_purge1+0xec ieget+0x30c in_get+0x34 iget+0x14 dirlook_loop+0x3ac dirlook+0xc4 sdo_lookup+0x64 ufs_lookup+0x24 locallookuppn+0x864 ufs_lookup+0x24 locallookuppn+0x864 lookuppn+0xdc lookupname+0x30 vn_open+0x5c copen+0xc8 open+0x20 syscall+0x75c $syscallrtn+0x0 Trace of thread 2 ---------------- _swtch+0x138 real_sleep+0x234 _sleep_one+0x14 ilock+0x80 direnter+0xa8 ufs_rename+0xec vn_rename+0x234 rename+0x28 syscall+0x75c $syscallrtn+0x0 PHKL_23014: Ported HP-UX patch PHKL_18798 to VVOS Based on HP-UX patch PHKL_18798: SR: 4701403725 DTS: JAGaa40424 Getting Data Page Fault when moving a subdirectory to another sub-directory. stack trace: trap type 15, pcsq.pcoq = 0.179d08, isr.ior = 0.c savestate ptr = 0x7ffe73b8, savestate return ptr = 0x179d0c panic: (display==0xb800, flags==0x0) Data page fault q4> trace event 0 stack trace for event 0 crash event was a panic panic+0x10 report_trap_or_int_and_panic+0xe8 trap+0xa48 $call_trap+0x20 dircheckpath+0x368 direnter+0x3c0 ufs_rename+0xec rfs_rename+0x270 rfs_dispatch+0x464 svc_getreqset+0x1f4 svc_run+0x128 nfs_svc+0x18c syscall+0x1a4 Defect Description: PHKL_28401: ( SR: 8606289446 Chart: JAGae53377 ) HFS directory sticky-bit not functioning according to specification and man pages. Resolution: Make HFS directory sticky-bit functionality conform to specification and man pages. PHKL_25050: Ported HP-UX patch PHKL_24117 to VVOS Based on HP-UX patch PHKL_24117: ( SR: 8606195337 Chart: JAGad64541 ) The thread deadlock results when two threads perform the following actions: The first thread is in open() and has locked the directory inode in dirlook_loop(). Then it calls dnlc_purge1() because there are no inodes on the inode free list which subsequently causes the first thread to sleep waiting to lock the device vnode. The second thread is doing a mv of a file in the same directory as the first thread and is in a rename() system call. It locks the device vnode in ufs_rename() and proceeds to sleep waiting for the directory inode held by the first thread. Resolution: Avoid calling dnlc_purge1() in the open() path by verifying the status of inode freelist as soon as we lock the directory inode. If the free list is empty, purge and recover inodes at this point. This will avoid calling dnlc_purge1() further down the open() path. PHKL_23014: Ported HP-UX patch PHKL_18798 to VVOS Based on HP-UX patch PHKL_18798: SR: 4701403725 DTS: JAGaa40424 The problem will only occur on HFS filesystems using short filenames. Instead of using the short filename pointer, the code was incorrectly using the long file name pointer which at this point had not yet been properly initialized. Dereferencing this uninitialized pointer caused a data page fault. Resolution: Treat the long and short filenames differently. Enhancement: No SR: 1653182501 4701334839 4701403725 8606195337 4701403725 8606289446 Patch Files: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: /usr/conf/lib/libufs.a(ufs_dir.o) OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: /usr/conf/lib/libufs.a(ufs_dir.o) what(1) Output: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: /usr/conf/lib/libufs.a(ufs_dir.o): $Source: kern/ufs/ufs_dir.c, hpuxsysufs, vvos_rose, rose0292 $ $Date: 03/01/02 05:21:38 $ $Revis ion: 1.33.1.8 PATCH_11.04 (PHKL_28401) $ OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: /usr/conf/lib/libufs.a(ufs_dir.o): $Source: kern/ufs/ufs_dir.c, hpuxsysufs, vvos_rose, rose0292 $ $Date: 03/01/02 05:21:38 $ $Revis ion: 1.33.1.8 PATCH_11.04 (PHKL_28401) $ cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_32,v=HP: 1756102822 21972 /usr/conf/lib/libufs.a(ufs_dir.o) OS-Core.CORE2-KRN,fr=B.11.04,fa=HP-UX_B.11.04_64,v=HP: 2350690981 44008 /usr/conf/lib/libufs.a(ufs_dir.o) Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHKL_23014 PHKL_25050 Equivalent Patches: None Patch Package Size: 90 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_28401 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_28401.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_28401. 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_28401.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_28401.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_28401.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None