Bug 104114

Summary: memccpy has readahead issues on IA64
Product: Red Hat Enterprise Linux 3 Reporter: Richard Offer <offer>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: glibc-2.3.2-86 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-09-15 04:56:49 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 101028    
Attachments:
Description Flags
memccpy patch
none
patch to spec file to apply memccpy patch none

Description Richard Offer 2003-09-09 21:08:02 EDT
Description of problem:

memccpy can get segfaults during readahead on unmapped files.

Changes have been accepted into CVS today.

RCS file: /cvs/glibc/libc/ChangeLog,v
retrieving revision 1.7916
retrieving revision 1.7917
diff -u -r1.7916 -r1.7917
--- libc/ChangeLog	2003/09/09 20:10:35	1.7916
+++ libc/ChangeLog	2003/09/09 20:18:53	1.7917
@@ -1,3 +1,20 @@
+2003-09-09  Ulrich Drepper  <drepper@redhat.com>
+
+	* string/stratcliff.c (main): Check memccpy.
+
+2003-04-11  Jes Sorensen  <jes@wildopensource.com>
+
+	* sysdeps/ia64/memccpy.S: When recovering for src_aligned and the
+	character is found during recovery, use correct register when
+	determining the position of the found character.
+
+2003-04-01  Jes Sorensen  <jes@wildopensource.com>
+
+	* sysdeps/ia64/memccpy.S: Use speculatively loads for readahead to
+	avoid segfaults when reading from unmapped pages. For aligned
+	reload and continue, for misaligned, roll back and use byte copy.
+	Save ar.ec on entry and restore on exit.
+
Comment 1 Richard Offer 2003-09-09 21:09:33 EDT
Created attachment 94357 [details]
memccpy patch

backported from CVS to 2.3.2-63
Comment 2 Richard Offer 2003-09-09 21:10:35 EDT
Created attachment 94358 [details]
patch to spec file to apply memccpy patch

Adds patch and bumps release to -64