You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mike Frysinger
3a5dd791ab
modpost: fix segfault in sym_is() with prefixed arches
...
The sym_is() compares a symbol in an attempt to automatically skip symbol
prefixes. It does this first by searching the real symbol with the normal
unprefixed symbol. But then it uses the length of the original symbol to
check the end of the substring instead of the length of the symbol it is
looking for. On non-prefixed arches, this is effectively the same thing,
so there is no problem. On prefixed-arches, since this is exceeds by just
one byte, a crash is rare and it is usually a NUL byte anyways. But every
once in a blue moon, you get the right page alignment and it segfaults.
For example, on the Blackfin arch, sym_is() will be called with the real
symbol "___mod_usb_device_table" as "symbol" when looking for the normal
symbol "__mod_usb_device_table" as "name". The substring will thus return
one byte into "symbol" and store it into "match". But then "match" will
be indexed with the length of "symbol" instead of "name" and so we will
exceed the storage. i.e. the code ends up doing:
char foo[] = "abc"; return foo[strlen(foo)+1] == '\0';
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
15 years ago
..
basic
kbuild: move autoconf.h to include/generated
15 years ago
dtc
dtc: Mark various internal functions static
15 years ago
genksyms
genksyms: properly consider EXPORT_UNUSED_SYMBOL{,_GPL}()
15 years ago
kconfig
kbuild: generate modules.builtin
15 years ago
ksymoops
…
mod
modpost: fix segfault in sym_is() with prefixed arches
15 years ago
package
scripts/package: deb-pkg: use fakeroot if available
15 years ago
rt-tester
…
selinux
SELinux: header generation may hit infinite loop
15 years ago
tracing
tracing, perf: Convert the power tracer into an event tracer
16 years ago
.gitignore
gitignore: ignore scripts/ihex2fw
16 years ago
Kbuild.include
kbuild: generate modules.builtin
15 years ago
Lindent
…
Makefile
sparc: Kill PROM console driver.
16 years ago
Makefile.build
MIPS: Tracing: Add an endian argument to scripts/recordmcount.pl
15 years ago
Makefile.clean
…
Makefile.fwinst
…
Makefile.headersinst
kbuild: fix "Argument list too long" error for "make headers_check",
16 years ago
Makefile.host
…
Makefile.lib
kbuild: really fix bzImage build with non-bash sh
15 years ago
Makefile.modbuiltin
kbuild: generate modules.builtin
15 years ago
Makefile.modinst
…
Makefile.modpost
tracing: Remove markers
16 years ago
bin2c.c
…
binoffset.c
…
bloat-o-meter
…
bootgraph.pl
…
checkincludes.pl
checkincludes.pl: add option to remove duplicates in place
16 years ago
checkkconfigsymbols.sh
kbuild,scripts: use non-builtin echo for '-e'
16 years ago
checkpatch.pl
remove my email address from checkpatch.
15 years ago
checkstack.pl
…
checksyscalls.sh
asm-generic: add a generic unistd.h
16 years ago
checkversion.pl
…
cleanfile
…
cleanpatch
…
config
kbuild: add generic --set-str option to scripts/config
16 years ago
conmakehash.c
Fix all -Wmissing-prototypes warnings in x86 defconfig
16 years ago
decodecode
…
diffconfig
…
export_report.pl
…
extract-ikconfig
kconfig: have extract-ikconfig read ELF files
16 years ago
gcc-version.sh
Remove bashisms from scripts
16 years ago
gcc-x86_32-has-stack-protector.sh
…
gcc-x86_64-has-stack-protector.sh
…
gen_initramfs_list.sh
kbuild: fix spurious initramfs rebuild
16 years ago
get_maintainer.pl
scripts/get_maintainer.pl: fix file exclusion X: logic
15 years ago
gfp-translate
mm: add a gfp-translate script to help understand page allocation failure reports
16 years ago
headerdep.pl
kbuild: fix option processing for -I in headerdep
16 years ago
headers.sh
kbuild: do not check for include/asm-$ARCH
15 years ago
headers_check.pl
kbuild/headers_check: refine extern check
16 years ago
headers_install.pl
warn about use of uninstalled kernel headers
16 years ago
kallsyms.c
kallsyms: fix segfault in prefix_underscores_count()
16 years ago
kernel-doc
tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook
15 years ago
makelst
…
markup_oops.pl
markup_oops.pl: fix error with x86
15 years ago
mkcompile_h
kbuild: move autoconf.h to include/generated
15 years ago
mkmakefile
…
mksysmap
…
mkuboot.sh
…
mkversion
…
module-common.lds
linker script: throw away .discard section
16 years ago
namespace.pl
…
patch-kernel
…
pnmtologo.c
fbdev: work around old compiler bug
16 years ago
profile2linkerlist.pl
…
recordmcount.pl
tracing/x86: Derive arch from bits argument in recordmcount.pl
15 years ago
setlocalversion
kbuild: fix delay in setlocalversion on readonly source
16 years ago
show_delta
…
tags.sh
kbuild: specify absolute paths for cscope
15 years ago
unifdef.c
unifdef: update to upstream revision 1.190
15 years ago
ver_linux
Remove bashisms from scripts
16 years ago