Cedric Hombourger
99e3a1eb3c
kbuild: fix Module.markers permission error under cygwin
...
While building the kernel, we end-up calling modpost with -K and -M
options for the same file (Modules.markers). This is resulting in
modpost's main function calling read_markers() and then write_markers() on
the same file.
We then have read_markers() mmap'ing the file, and writer_markers()
opening that same file for writing.
The issue is that read_markers() exits without munmap'ing the file and is
as a matter holding a reference on Modules.markers. When write_markers()
is opening that very same file for writing, we still have a reference on
it and cygwin (Windows?) is then making fopen() fail with EPERM.
Calling release_file() before exiting read_markers() clears that reference
(and memory leak) and fopen() then succeeds.
Tested on both cygwin (1.3.22) and Linux. Also ran modpost within
valgrind on Linux to make sure that the munmap'ed file was not accessed
after read_markers()
Signed-off-by: Cedric Hombourger <chombourger@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2009-05-01 10:54:03 +02:00
..
basic
Update .gitignore files for generated targets
2008-10-20 11:24:31 -07:00
genksyms
Revert "kbuild: strip generated symbols from *.ko"
2009-01-14 21:38:20 +01:00
kconfig
kconfig: fix update-po-config to accect backslash in input
2009-04-11 08:18:07 +02:00
ksymoops
mod
kbuild: fix Module.markers permission error under cygwin
2009-05-01 10:54:03 +02:00
package
parisc: fix "make tar-pkg"
2009-04-02 01:22:24 +00:00
rt-tester
selinux
SELinux: add gitignore file for mdp script
2008-09-05 21:43:38 +10:00
tracing
tracing: move scripts/trace/power.pl to scripts/tracing/power.pl
2009-04-01 11:30:35 +02:00
.gitignore
Revert "fix modules_install via NFS"
2009-04-06 14:27:17 -07:00
bin2c.c
bin_size
bzip2/lzma: library support for gzip, bzip2 and lzma decompression
2009-01-04 15:53:34 -08:00
binoffset.c
bloat-o-meter
bootgraph.pl
bootgraph: fix for use with dot symbols
2009-02-15 12:50:08 +01:00
checkincludes.pl
checkkconfigsymbols.sh
checkpatch.pl
checkpatch: version 0.28
2009-02-27 16:26:22 -08:00
checkstack.pl
sparc: Add checkstack support
2008-10-22 21:53:49 -07:00
checksyscalls.sh
scripts/checksyscalls.sh: fix for non-gnu sed
2008-10-29 22:02:08 +01:00
checkversion.pl
cleanfile
cleanpatch
config
kbuild: print usage with no arguments in scripts/config
2009-01-14 21:40:49 +01:00
conmakehash.c
decodecode
scripts: improve the decodecode script
2008-12-03 22:36:39 +01:00
diffconfig
kconfig: add diffconfig utility
2008-07-25 22:12:41 +02:00
export_report.pl
extract-ikconfig
remove bashisms from scripts/extract-ikconfig
2008-12-03 21:32:02 +01:00
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
stackprotector: fix multi-word cross-builds
2009-02-11 12:17:29 +01:00
gcc-x86_64-has-stack-protector.sh
stackprotector: fix multi-word cross-builds
2009-02-11 12:17:29 +01:00
gen_initramfs_list.sh
kbuild: fix spurious initramfs rebuild
2009-04-11 08:18:12 +02:00
get_maintainer.pl
scripts/get_maintainer.pl - Allow multiple files on command line
2009-04-10 13:10:54 -07:00
headerdep.pl
kbuild: fix option processing for -I in headerdep
2009-04-11 08:18:07 +02:00
headers.sh
kbuild: prepare headers_* for arch/$ARCH/include
2008-07-25 22:12:33 +02:00
headers_check.pl
kbuild: drop check for CONFIG_ in headers_check
2009-01-31 00:36:15 +01:00
headers_install.pl
kbuild: in headers_install autoconvert asm/inline/volatile to __xxx__
2009-01-02 20:43:24 +01:00
kallsyms.c
kallsyms, tracing: output more proper symbol name
2009-03-14 09:55:04 +01:00
Kbuild.include
kbuild: use KECHO convenience echo
2008-12-03 21:32:01 +01:00
kernel-doc
kernel-doc: fix syscall wrapper processing
2009-02-11 14:25:36 -08:00
Lindent
Makefile
Revert "fix modules_install via NFS"
2009-04-06 14:27:17 -07:00
Makefile.build
kbuild: introduce subdir-ccflags-y
2009-04-19 11:12:12 +02:00
Makefile.clean
Makefile.fwinst
firmware: silence __fw_modbuild and __fw_modinst 'Nothing to be done' messages
2008-08-02 07:52:29 +01:00
Makefile.headersinst
kbuild: introduce destination-y for exported headers
2009-04-11 08:18:08 +02:00
Makefile.host
Makefile.lib
kbuild: introduce subdir-ccflags-y
2009-04-19 11:12:12 +02:00
Makefile.modinst
Revert "kbuild: strip generated symbols from *.ko"
2009-01-14 21:38:20 +01:00
Makefile.modpost
kbuild: fix KBUILD_EXTRA_SYMBOLS
2008-10-29 22:02:09 +01:00
makelst
markup_oops.pl
scripts: add x86 64 bit support to the markup_oops.pl script
2009-02-15 12:50:10 +01:00
mkcompile_h
kbuild: kill output in silent mode of mkcompile_h
2008-12-03 21:32:00 +01:00
mkmakefile
kbuild: teach mkmakfile to be silent
2008-12-03 21:32:02 +01:00
mksysmap
Revert "kbuild: strip generated symbols from *.ko"
2009-01-14 21:38:20 +01:00
mkuboot.sh
mkversion
namespace.pl
patch-kernel
bugfix for scripts/patch-kernel in 2.6 sublevel stepping
2008-08-06 22:11:33 +02:00
pnmtologo.c
profile2linkerlist.pl
recordmcount.pl
ftrace: test for running of recordmcount.pl twice on an object
2009-01-18 20:15:26 +01:00
setlocalversion
kbuild: use git svn instead of git-svn in setlocalversion
2009-04-11 08:18:08 +02:00
show_delta
tags.sh
kbuild: remove a tag file before it is regenerated
2009-05-01 10:54:02 +02:00
unifdef.c
kbuild: fix C libary confusion in unifdef.c due to getline()
2009-03-07 13:31:29 +01:00
ver_linux
kbuild: scripts/ver_linux: don't set PATH
2008-07-31 23:36:54 +02:00