forked from Minki/linux
e4dca7b7aa
Several function prototypes for the set/get functions defined by module_param_call() have a slightly wrong argument types. This fixes those in an effort to clean up the calls when running under type-enforced compiler instrumentation for CFI. This is the result of running the following semantic patch: @match_module_param_call_function@ declarer name module_param_call; identifier _name, _set_func, _get_func; expression _arg, _mode; @@ module_param_call(_name, _set_func, _get_func, _arg, _mode); @fix_set_prototype depends on match_module_param_call_function@ identifier match_module_param_call_function._set_func; identifier _val, _param; type _val_type, _param_type; @@ int _set_func( -_val_type _val +const char * _val , -_param_type _param +const struct kernel_param * _param ) { ... } @fix_get_prototype depends on match_module_param_call_function@ identifier match_module_param_call_function._get_func; identifier _val, _param; type _val_type, _param_type; @@ int _get_func( -_val_type _val +char * _val , -_param_type _param +const struct kernel_param * _param ) { ... } Two additional by-hand changes are included for places where the above Coccinelle script didn't notice them: drivers/platform/x86/thinkpad_acpi.c fs/lockd/svc.c Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jessica Yu <jeyu@kernel.org> |
||
---|---|---|
.. | ||
aec62xx.c | ||
ali14xx.c | ||
alim15x3.c | ||
amd74xx.c | ||
atiixp.c | ||
au1xxx-ide.c | ||
buddha.c | ||
cmd64x.c | ||
cmd640.c | ||
cs5520.c | ||
cs5530.c | ||
cs5535.c | ||
cs5536.c | ||
cy82c693.c | ||
delkin_cb.c | ||
dtc2278.c | ||
falconide.c | ||
gayle.c | ||
hpt366.c | ||
ht6560b.c | ||
icside.c | ||
ide_platform.c | ||
ide-4drives.c | ||
ide-acpi.c | ||
ide-atapi.c | ||
ide-cd_ioctl.c | ||
ide-cd_verbose.c | ||
ide-cd.c | ||
ide-cd.h | ||
ide-cs.c | ||
ide-devsets.c | ||
ide-disk_ioctl.c | ||
ide-disk_proc.c | ||
ide-disk.c | ||
ide-disk.h | ||
ide-dma-sff.c | ||
ide-dma.c | ||
ide-eh.c | ||
ide-floppy_ioctl.c | ||
ide-floppy_proc.c | ||
ide-floppy.c | ||
ide-floppy.h | ||
ide-gd.c | ||
ide-gd.h | ||
ide-generic.c | ||
ide-io-std.c | ||
ide-io.c | ||
ide-ioctls.c | ||
ide-iops.c | ||
ide-legacy.c | ||
ide-lib.c | ||
ide-park.c | ||
ide-pci-generic.c | ||
ide-pio-blacklist.c | ||
ide-pm.c | ||
ide-pnp.c | ||
ide-probe.c | ||
ide-proc.c | ||
ide-scan-pci.c | ||
ide-sysfs.c | ||
ide-tape.c | ||
ide-taskfile.c | ||
ide-timings.c | ||
ide-xfer-mode.c | ||
ide.c | ||
it821x.c | ||
it8172.c | ||
it8213.c | ||
jmicron.c | ||
Kconfig | ||
macide.c | ||
Makefile | ||
ns87415.c | ||
opti621.c | ||
palm_bk3710.c | ||
pdc202xx_new.c | ||
pdc202xx_old.c | ||
piix.c | ||
pmac.c | ||
q40ide.c | ||
qd65xx.c | ||
qd65xx.h | ||
rapide.c | ||
rz1000.c | ||
sc1200.c | ||
serverworks.c | ||
setup-pci.c | ||
sgiioc4.c | ||
siimage.c | ||
sis5513.c | ||
sl82c105.c | ||
slc90e66.c | ||
tc86c001.c | ||
triflex.c | ||
trm290.c | ||
tx4938ide.c | ||
tx4939ide.c | ||
umc8672.c | ||
via82cxxx.c |