Bug 77930

Summary: rhPrintOSKernelString can print stack garbage
Product: [Retired] Red Hat Linux Reporter: S. A. Hutchins <sh4d0wstr1f3>
Component: XFree86Assignee: Mike A. Harris <mharris>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 4.2.1-20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-05-26 05:07:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description S. A. Hutchins 2002-11-15 15:38:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021029

Description of problem:
buf[] is never initialized; if for whatever reason, XFree86 is unable to open
/proc/version, the read (which does initialize buf) will fail. While the "OS
Kernel: " string does check to see if buf[] is NULL, buf[0] will only be 0 by

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Mess with the kernel so that /proc/version doesn't exist/isn't readable
2. Run XFree86.
3. Notice the output of "OS Kernel:" is garbage.

Actual Results:  OS Kernel: (heart) PF

Expected Results:  OS Kernel: 2.4.18-14

Additional info:

Comment 1 Mike A. Harris 2002-12-09 16:44:04 UTC
I've created a fix for this which will be in rawhide CVS build 20021208.1
and later.  Once it is confirmed to work correctly, I'll put it into
the erratum branch also.

Would you willing to test the rawhide build?

Comment 2 S. A. Hutchins 2002-12-11 18:31:12 UTC
I'd certainly be willing to test it if I can find the time. It'd be easiest if I
could take a patch to 4.2.0; if not, could you tip me towards where I need to
get the version you'd like me to test? I've never retrieved anything from
RawHide before.

Comment 3 Mike A. Harris 2002-12-21 13:15:42 UTC
Sure, rawhide is available from:


Also, I put up XFree86 snapshots, and beta test packages at:

ftp://people.redhat.com/mharris/testing   for different releases of
Red Hat Linux.  The extremely-unstable-blah-blah dir is the developmental
stuff that ends up going into rawhide.  (The directory name is named
as such to discourage people from upgrading to these packages and expecting
rock solid support).

I haven't seen any problems yet being reported since I put this patch
in, so I might generate one for 4.2.1 soon as well.

Comment 4 Mike A. Harris 2002-12-21 16:32:45 UTC
XFree86-4.2.1-10.3 has the backported fix.  Please test and let me know
if it works for you ok.


Comment 5 Mike A. Harris 2002-12-22 20:31:19 UTC
Seems to work ok for me, closing as fixed in RAWHIDE.

Comment 6 Mike A. Harris 2003-05-26 05:07:22 UTC
Reclosing as fixed in ERRATA for upcoming erratum release.