kpatch/kpatch-build
Martin Carroll 145d1289dc kpatch-build: do not assume that TEMPDIR is unexported on entry to script
The user's environment might have TEMPDIR exported.  If so, then kpatch-build
dies with a bogus "invalid ancestor" error. If you turn those bogus errors into
warnings, then the script goes on to incorrectly put into the generated .ko file
every single function that was compiled in the *original* kernel build, thereby
producing an immense .ko file with more than 64k sections that the linux kernel
cannot load.  This fix makes sure that TEMPDIR is unexported on the build of the
original kernel.  Actually, this fix uses a separate KPATCH_GCC_TEMPDIR variable,
so that if the kernel build is interrupted, the cleanup function in the kpatch-kbuild
script will still have TEMPDIR set correctly.

Signed-off-by: Martin Carroll <martin.carroll@alcatel-lucent.com>
2016-07-25 11:02:37 -04:00
..
insn
create-diff-object.c create-diff-object: fix WARN*_ONCE detection on newer kernels 2016-07-13 16:53:02 -05:00
kpatch-build kpatch-build: do not assume that TEMPDIR is unexported on entry to script 2016-07-25 11:02:37 -04:00
kpatch-elf.c kpatch-elf: make is_bundleable() a static function 2016-07-12 14:45:18 -07:00
kpatch-elf.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
kpatch-gcc kpatch-build: do not assume that TEMPDIR is unexported on entry to script 2016-07-25 11:02:37 -04:00
list.h new .fixup group size algorithm 2014-09-15 14:54:57 -05:00
log.h kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00
lookup.c livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
lookup.h livepatch-patch-hook: add support for livepatch sympos 2016-02-16 10:31:44 -06:00
Makefile kpatch-elf: introduce a common kpatch-elf and logging interface 2016-07-12 14:45:16 -07:00