NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/54737: modstat(8) reports misleading data for module size



>Number:         54737
>Category:       kern
>Synopsis:       modstat(8) reports misleading data for module size
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 04 23:10:00 +0000 2019
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.18
>Organization:
+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+
>Environment:
	
	
System: NetBSD speedy.whooppee.com 9.99.18 NetBSD 9.99.18 (SPEEDY 2019-11-30 14:42:39 UTC) #0: Sat Nov 30 16:43:09 UTC 2019 paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
	The value displayed by modstat(8) (returned from kernel via
	modctl(2) syscall) for a module's size is a bit misleading, as it
	includes only the size of the .text segment.
	
>How-To-Repeat:
	Try to modload the pciverbose module.  On my system (amd64),
	modstat will show a size of only 218 bytes, even though the
	module contains more that 128,000 bytes of data!
	
>Fix:
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index