[#4627] showing cplbinfo crashes with buffer overflow with cplb-nompu
Submitted By: Graf Yang
Open Date
2008-11-10 04:52:09 Close Date
2008-11-20 18:39:54
Priority:
Medium Assignee:
Mike Frysinger
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
EZKIT Lite
Processor:
BF561 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
App binary format:
N/A
Summary: showing cplbinfo crashes with buffer overflow with cplb-nompu
Details:
cat /proc/cplbinfo
...
...
------------- CPLB Information on CPU1--------------
Instruction CPLB entry:
Address Data Size Valid Locked Swapin iCount oCount
0x00000000 0x00083 1K Y Y 0 0 0
0xff600000 0x30007 4M Y Y 1 0 0
0x00000000 0x31287 4M Y Y 3 0 0
0x00400000 0x31287 4M Y Y 4 0 0
0x00800000 0x31287 4M Y Y 5 0 0
0x00c00000 0x31205 4p YrN o6 0 c
_x0f00i00l 0e31_05r4MeYaN d: Apparent buffer overflow!
cat: read error: Bad address
Follow-ups
--- Graf Yang 2008-11-11 05:22:53
Now is fixed.
--- Mike Frysinger 2008-11-20 14:50:47
your change doesnt actually fix the issue, it just avoids it in the common case.
any system with more than 64megs of memory will still overflow and crash.
--- Mike Frysinger 2008-11-20 18:39:54
ive rewritten it to use seq files
works fine for me now ... tested with 512megs of cplbs
--- Graf Yang 2008-11-20 21:21:33
Great!
--- Mike Frysinger 2008-11-20 21:27:05
i dont have a BF561 board handy ... can you verify things work under SMP ?
cat /proc/cplbinfo/cpu0/icplb
cat /proc/cplbinfo/cpu0/dcplb
cat /proc/cplbinfo/cpu1/icplb
cat /proc/cplbinfo/cpu1/dcplb
--- Graf Yang 2008-11-21 00:26:08
I tried it on BF561 with SMP, it works.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found