summaryrefslogtreecommitdiffstats
path: root/kernel/params.c
diff options
context:
space:
mode:
authorChen Gang <gang.chen@asianux.com>2013-08-20 08:04:21 +0200
committerRusty Russell <rusty@rustcorp.com.au>2013-08-20 08:07:46 +0200
commitcc56ded3fdd365e07e03315379ee6612a68fd817 (patch)
tree0335af371e340556297fc4ac041f537e8ff2e5de /kernel/params.c
parentmodule/lsm: Have apparmor module parameters work with no args (diff)
downloadlinux-cc56ded3fdd365e07e03315379ee6612a68fd817.tar.xz
linux-cc56ded3fdd365e07e03315379ee6612a68fd817.zip
kernel/module.c: use scnprintf() instead of sprintf()
For some strings, they are permitted to be larger than PAGE_SIZE, so need use scnprintf() instead of sprintf(), or it will cause issue. One case is: if a module version is crazy defined (length more than PAGE_SIZE), 'modinfo' command is still OK (print full contents), but for "cat /sys/modules/'modname'/version", will cause issue in kernel. Signed-off-by: Chen Gang <gang.chen@asianux.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/params.c')
0 files changed, 0 insertions, 0 deletions