parisc: Avoid function pointers for kernel exception routines
commit e3893027a300927049efc1572f852201eb785142 upstream. We want to avoid the kernel module loader to create function pointers for the kernel fixup routines of get_user() and put_user(). Changing the external reference from function type to int type fixes this. This unbreaks exception handling for get_user() and put_user() when called from a kernel module. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
19c1764a19
commit
7cdf5d71b4
1 changed files with 5 additions and 5 deletions
|
@ -47,11 +47,11 @@ EXPORT_SYMBOL(__cmpxchg_u64);
|
||||||
EXPORT_SYMBOL(lclear_user);
|
EXPORT_SYMBOL(lclear_user);
|
||||||
EXPORT_SYMBOL(lstrnlen_user);
|
EXPORT_SYMBOL(lstrnlen_user);
|
||||||
|
|
||||||
/* Global fixups */
|
/* Global fixups - defined as int to avoid creation of function pointers */
|
||||||
extern void fixup_get_user_skip_1(void);
|
extern int fixup_get_user_skip_1;
|
||||||
extern void fixup_get_user_skip_2(void);
|
extern int fixup_get_user_skip_2;
|
||||||
extern void fixup_put_user_skip_1(void);
|
extern int fixup_put_user_skip_1;
|
||||||
extern void fixup_put_user_skip_2(void);
|
extern int fixup_put_user_skip_2;
|
||||||
EXPORT_SYMBOL(fixup_get_user_skip_1);
|
EXPORT_SYMBOL(fixup_get_user_skip_1);
|
||||||
EXPORT_SYMBOL(fixup_get_user_skip_2);
|
EXPORT_SYMBOL(fixup_get_user_skip_2);
|
||||||
EXPORT_SYMBOL(fixup_put_user_skip_1);
|
EXPORT_SYMBOL(fixup_put_user_skip_1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue