Bug 5074

Summary: /sys/module/*/parameters/* not working
Product: Other Reporter: Andre Draszik (ad)
Component: ModulesAssignee: other_modules
Status: RESOLVED CODE_FIX    
Severity: normal CC: bunk, greg
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.11.11 Subsystem:
Regression: --- Bisected commit-id:

Description Andre Draszik 2005-08-16 09:03:09 UTC
Problem Description:
when loadable module support is disabled in the kernel's config, accessing
/sys/module/*/parameters/* is not possible, files in there are neither read- nor
writable.

e.g. (as root):
# cat /sys/module/dvb_core/parameters/dvbdev_debug
cat: /sys/module/dvb_core/parameters/dvbdev_debug: Permission denied
# echo 0 > /sys/module/dvb_core/parameters/dvbdev_debug
-sh: cannot create /sys/module/dvb_core/parameters/dvbdev_debug: Permission denied

# ls -lA /sys/module/dvb_core/parameters/dvbdev_debug
-rw-r--r--    1 root     root         4096 Jan  1 00:03
/sys/module/dvb_core/parameters/dvbdev_debug

(this is not particular to the smc91x driver, this works with no driver)

after adding module support to the kernel (CONFIG_MODULE=y), everything works as
expected:

# cat /sys/module/dvb_core/parameters/dvbdev_debug
0
# echo 1 > /sys/module/dvb_core/parameters/dvbdev_debug
# cat /sys/module/dvb_core/parameters/dvbdev_debug
1



Steps to reproduce:
disable module support from kernel config
Comment 1 Andre Draszik 2005-08-16 09:05:19 UTC
ups, replace smc91x by dvb_core in the text, of course (copy/paste error...) sorry!
Comment 2 Adrian Bunk 2006-03-24 07:13:25 UTC
This sounds like a bug that was fixed in 2.6.15.

Can you confirm that it is fixed?
Comment 3 Greg Kroah-Hartman 2006-03-24 18:33:52 UTC
Yeah, this was fixed a while ago.

If it's still a problem for you, please reopen.