Bug 77930 - rhPrintOSKernelString can print stack garbage
rhPrintOSKernelString can print stack garbage
Product: Red Hat Linux
Classification: Retired
Component: XFree86 (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Mike A. Harris
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2002-11-15 10:38 EST by S. A. Hutchins
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version: 4.2.1-20
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-05-26 01:07:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description S. A. Hutchins 2002-11-15 10:38:38 EST
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 11:44:04 EST
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 13:31:12 EST
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 08:15:42 EST
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 11:32:45 EST
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 15:31:19 EST
Seems to work ok for me, closing as fixed in RAWHIDE.
Comment 6 Mike A. Harris 2003-05-26 01:07:22 EDT
Reclosing as fixed in ERRATA for upcoming erratum release.

Note You need to log in before you can comment on or make changes to this bug.