Bug 89176

Summary: procinfo -m fails with more than 32 character devices
Product: [Retired] Red Hat Linux Reporter: dellaric
Component: procinfoAssignee: Karel Zak <kzak>
Status: CLOSED RAWHIDE QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: paulm, srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-17 10:51:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 136451    

Description dellaric 2003-04-19 08:01:01 UTC
Description of problem:

procinfo -m gives 'Segmentation fault' when there are more than 32 character
devices in /proc/devices

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

procinfo-18-8

How reproducible:

always, when there are more than 32 character devices in /proc/devices

Steps to Reproduce:

> procinfo -a

or

> procinfo -m
    
Actual results:

Segmantation fault

Expected results:

it should work ...

Additional info:

I suggest to increase the values of MAX_CHRDEV (and maybe MAX_BLKDEV) in
procinfo.h from the current value of 32 to (for example) 64 (or more).

Comment 1 Mike A. Harris 2003-04-19 10:46:15 UTC
Arjan, what are the kernel defined limits for this?

Comment 2 Arjan van de Ven 2003-04-19 10:48:49 UTC
For 2.4 kernels there is a maximum of 256 character major numbers

Comment 3 Mike A. Harris 2004-01-13 16:47:40 UTC
*** Bug 112533 has been marked as a duplicate of this bug. ***

Comment 4 Karel Zak 2004-12-17 10:53:00 UTC
Fixed for FC-4.