Patch-ID# 100496-02
Keywords: ptrace sparc PTRACE_READTEXT core panic
Synopsis: SunOS 4.1.1, 4.1.2, 4.1.3: ptrace panic with a memory fault
Date: Jan/20/93

SunOS release: 4.1.1, 4.1.2, 4.1.3, 4.1.3C

Unbundled Product: 

Unbundled Release: 

Topic: ptrace called with address = 3mod4 causes memory address

BugId's fixed with this patch: 1077163

Changes incorporated in this version: 4.1.3 compatibility added.

Relevant Architecture: sparc
    NOTE: sun4, sun4c, sun4m 

Patches which may conflict with this patch: 

Obsoleted by: 
	NOTE:4.1.3_U1

Files included with this patch: sys_process.o

Problem Description: When using ptrace() system call with the PTRACE_READTEXT
	command, if the start address is mod 3 and a certain length, it is
	possible to panic with a memory fault.  This probably will happen
	with PTRACE_WRITETEXT as well.

Install Instructions: 

	As root:

	mv /sys/`arch -k`/OBJ/sys_process.o /sys/`arch -k`/OBJ/sys_process.o_orig
	cp `arch -k`/{OS Version}/sys_process.o /sys/`arch -k`/OBJ
	chmod 444 /sys/`arch -k`/OBJ/sys_process.o

	Then a new kernel will need to be made and installed.
	Please refer to the system and networking administration manual
	of creating and installing a custom kernel.
