projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
module: fix validate_section_offset() overflow bug on 64-bit
[linux-2.6-microblaze.git]
/
kernel
/
module.c
diff --git
a/kernel/module.c
b/kernel/module.c
index
5c26a76
..
c7ad738
100644
(file)
--- a/
kernel/module.c
+++ b/
kernel/module.c
@@
-2942,7
+2942,11
@@
static int module_sig_check(struct load_info *info, int flags)
static int validate_section_offset(struct load_info *info, Elf_Shdr *shdr)
{
+#if defined(CONFIG_64BIT)
+ unsigned long long secend;
+#else
unsigned long secend;
+#endif
/*
* Check for both overflow and offset/size being