Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 64838 - /proc/ksyms is truncated with cat, dd works
/proc/ksyms is truncated with cat, dd works
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Ben LaHaise
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-05-13 07:10 EDT by Steffen Persvold
Modified: 2007-04-18 12:42 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-05-17 15:58:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2002:110 normal SHIPPED_LIVE Updated kernel with bugfixes available 2002-06-10 00:00:00 EDT

  None (edit)
Description Steffen Persvold 2002-05-13 07:10:28 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.9-13win4lin i686)

Description of problem:
When using cat on /proc/ksyms, the output is truncated. However using 'dd
if=/proc/ksyms' gives the full output. Further found that reading more than 4095
bytes from /proc/ksyms in one read leads to truncation of the output.

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

How reproducible:

Steps to Reproduce:
1. cat /proc/ksyms >cat_ksyms
2. ls -l cat_ksyms
3. dd if=/proc/ksyms >dd_ksyms
4. ls -l dd_ksyms

Actual Results:  [root@gbe2 root]# ls -l cat_ksyms 
-rw-r--r--    1 root     root        73424 May  5 12:38 cat_ksyms
[root@gbe2 root]# ls -l dd_ksyms 
-rw-r--r--    1 root     root        87452 May  5 12:39 dd_ksyms

Expected Results:  [root@gbe2 root]# ls -l cat_ksyms 
-rw-r--r--    1 root     root        87452 May  5 12:38 cat_ksyms
[root@gbe2 root]# ls -l dd_ksyms 
-rw-r--r--    1 root     root        87452 May  5 12:39 dd_ksyms

Additional info:
Comment 1 Michael Schwendt 2002-05-13 08:27:05 EDT
$ cat /proc/ksyms > cat_ksyms
$ dd if=/proc/ksyms > dd_ksyms
$ diff --brief cat_ksyms dd_ksyms

Works for me (2.4.18-4.athlon). Both files are 72155 bytes long.
Comment 2 Steffen Persvold 2002-05-13 08:57:50 EDT
Ok, so could it be glibc then ? I just tried this kernel on a RedHat 7.2 machine
(glibc-2.2.4-19.3) and everything seems to work just fine except this. Also the
machines I'm testing this on is dual Xeons (so I'm running kernel-smp-2.4.18-4).
Comment 3 Ben LaHaise 2002-05-16 15:47:08 EDT
Confirmed.  I'll post a patch in a while.
Comment 4 Ben LaHaise 2002-05-17 15:58:10 EDT
This is strange, I'm not able to reproduce it with a self built test kernel. 
Still investigating...
Comment 5 Ben LaHaise 2002-05-27 18:21:41 EDT
Fix is committed for the next kernel erratum.

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