NetBSD-Bugs archive

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

kern/55088: SYSCTL_SETUP seems not to work for built-in modules in rump



>Number:         55088
>Category:       kern
>Synopsis:       SYSCTL_SETUP seems not to work for built-in modules in rump
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 19 19:20:00 +0000 2020
>Originator:     Paul Goyette
>Release:        NetBSD 9.99.46
>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.46 NetBSD 9.99.46 (SPEEDY 2020-02-07 16:26:35 UTC) #1: Fri Feb 7 19:37:58 UTC 2020 paul%speedy.whooppee.com@localhost:/build/netbsd-local/obj/amd64/sys/arch/amd64/compile/SPEEDY amd64
Architecture: x86_64
Machine: amd64
>Description:
Rump kernels appear not to properly process SYSCTL_SETUP functions for
built-in modules.  (Presumably this is a result of the way rump processes
link sets, and is expected to also affect link_set_evcnts.)  As a result,
the ATF tests for dev/swsensor fail.
	
>How-To-Repeat:
Insert printf()s in swsensor's modcmd to confirm that the module is
initialized.  Similarly, add printf()s to swsensor's SYSCTL_SETUP func
to confirm if the set-up function is called.  Build a complete rump
set-up (or, do a ``build.sh release'') and install it.

Now, invoke rump with something similar to

	export RUMP_SERVER=unix://test_socket_name
	rump_allserver -l rumpvfs -l rumpdev -l rumpdev_sysmon ${RUMP_SERVER}

You should see that the module is loaded and its modcmd() is called,
yet you will not see that the SYSCTL_SETUP function has executed.

Execute rump.modstat to confirm that the swsensor module exists as a
built-in module.


	
>Fix:
Unknown.
	

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index