Patch Name: PHCO_18133 Patch Description: s700_800 10.10 restore(1M) core dump Creation Date: 99/04/15 Post Date: 99/04/29 Hardware Platforms - OS Releases: s700: 10.10 s800: 10.10 Products: N/A Filesets: OS-Core.SYS-ADMIN Automatic Reboot?: No Status: General Release Critical: No Path Name: /hp-ux_patches/s700_800/10.X/PHCO_18133 Symptoms: PHCO_18133: The restore command core dumps when restoring a dump of a file system with a large number of inodes. Defect Description: PHCO_18133: When restoring a dump of a file system with a very large number of inodes, the restore command core dumps while attempting to extract the inode map. The software defect begins to be a problem when the maximum number of inodes for a file system is approximately 4 million, though it does not core dump and may not have any other visible adverse affects. When the maximum number of inodes for a file system reaches approximately 8 million, the command dumps core. Resolution: When extracting the inode map, the code was using the s_spcl.c_addr[] array when reading in blocks of the map. The s_spcl.c_addr[] array has a size of 512. If the map was larger than 512 blocks, restore would write beyond s_spcl.c_addr[512]. The new code defines a new "c_addr" variable which is dynamically allocated for the map extraction. SR: 1653284430 Patch Files: /sbin/restore /usr/lbin/fs/hfs/restore what(1) Output: /sbin/restore: $Revision: 74.1.1.2 $ PATCH/10_10 PHCO_13917 $Revision: 76.162.1.14.1.60 $ PATCH_10_10: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt.o opendir.o 99/04/15 /usr/lbin/fs/hfs/restore: $Revision: 74.1.1.2 $ PATCH_10_10: main.o restore.o dirs.o symtab.o tape.o utilities.o hpux_rel.o interactive.o telldi r.o dumprmt.o opendir.o 99/04/15 cksum(1) Output: 2467595505 299008 /sbin/restore 1027154582 65536 /usr/lbin/fs/hfs/restore Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: None Patch Package Size: 410 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 PHCO_18133 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHCO_18133.depot 5b. For a homogeneous NFS Diskless cluster run swcluster on the server to install the patch on the server and the clients: swcluster -i -b This will invoke swcluster in the interactive mode and force all clients to be shut down. WARNING: All cluster clients must be shut down prior to the patch installation. Installing the patch while the clients are booted is unsupported and can lead to serious problems. The swcluster command will invoke an swinstall session in which you must specify: alternate root path - default is /export/shared_root/OS_700 source depot path - /tmp/PHCO_18133.depot To complete the installation, select the patch by choosing "Actions -> Match What Target Has" and then "Actions -> Install" from the Menubar. 5c. For a heterogeneous NFS Diskless cluster: - run swinstall on the server as in step 5a to install the patch on the cluster server. - run swcluster on the server as in step 5b to install the patch on the cluster clients. By default swinstall will archive the original software in /var/adm/sw/patch/PHCO_18133. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. Warning: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHCO_18133.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHCO_18133.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None