John Crispin
8f0e96ee11
mips: Free memory when load_module fails ( #14453 )
...
The mips reloc patch introduced new allocations which were done before
add_unformed_module but never freed them in case of an error. A new hook in
Linux 3.19 called module_arch_freeing_init can be used for freeing memory
which were allocated during this init phase.
The problem can be seen when trying to load a module (via busybox insmod)
when it was already loaded.
free -m
for i in `seq 1 100`; do
/sbin/insmod /lib/modules/*/ath9k.ko >& /dev/null
done
free -m
This simple loop would leak ~3.2 MB.
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 46247
10 years ago
Felix Fietkau
1a797043e5
kernel: revert section sorting change from r41951
...
It currently does not seem to make a difference anymore, except by
increasing compressed kernel image size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45385
10 years ago
Felix Fietkau
9386d8eb98
kernel: revert a broken chunk in the mips module reloc patch fix
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44592
10 years ago
Felix Fietkau
978830466a
kernel: fix the mips module relocation patch for 3.19+
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44590
10 years ago
Imre Kaloz
f76a752c57
generic/4.0: refresh patches
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 44532
10 years ago
Rafał Miłecki
1c063070cf
generic: early (incomplete!) 4.0 support
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 44511
10 years ago
Felix Fietkau
fe295cd178
kernel: when using --gc-sections, add --sort-section=name to get a more stable sorting order
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41951
10 years ago
Imre Kaloz
6bd1a37001
add initial 3.13 support
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 39348
11 years ago
Imre Kaloz
e72c7e17a4
preliminary 3.12 support
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 38528
11 years ago
Gabor Juhos
043edd8074
kernel: update 3.10 to 3.10.9
...
Also refresh 3.10 patches.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37832
11 years ago
John Crispin
db083a41cf
generic: make the module reloc pacth work on mips64
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37685
11 years ago
Jonas Gorski
c0435a971e
kernel: generic: add 3.10-rc1 support
...
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36663
12 years ago
Florian Fainelli
b2e63b8ea8
kernel: add support for 3.9-rc2
...
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36008
12 years ago
Felix Fietkau
f0d7ba33ef
kernel: use -ffunction-sections, -fdata-sections and --gc-sections on ARM to reduce kernel image size, disable those flags when tracing on MIPS to fix compile errors
...
SVN-Revision: 35936
12 years ago
Felix Fietkau
8933b918cd
kernel: use -ffunction-sections, -fdata-sections and --gc-sections on mips
...
in combination with kernel symbol export stripping this significantly reduces
the kernel image size
SVN-Revision: 35320
12 years ago
Felix Fietkau
b3b04e9fb1
kernel: port 203-kallsyms_uncompressed.patch and 305-mips_module_reloc.patch to 3.8
...
SVN-Revision: 35162
12 years ago
Felix Fietkau
5d55cece6e
kernel: add back the mips module relocation patch
...
SVN-Revision: 35126
12 years ago
Felix Fietkau
41a039f464
mips: use -mno-branch-likely for kernel and userspace, saves ~11k kernel size after lzma and ~12k squashfs size in the default configuration
...
SVN-Revision: 34909
12 years ago
Florian Fainelli
7e856e5a97
make all 3.6 patches apply and build
...
SVN-Revision: 33911
12 years ago
Imre Kaloz
949b46d13d
linux 3.6 support (work in progress)
...
SVN-Revision: 33897
12 years ago
Jonas Gorski
eca9950f63
kernel: add preliminary support for linux 3.3
...
Based on 3.3-rc2
SVN-Revision: 29986
13 years ago
Jonas Gorski
1bc0abb058
kernel: add support for linux 3.2.1
...
SVN-Revision: 29730
13 years ago
Jonas Gorski
cf2070bd5b
linux: generic: add support for 3.1-rc1
...
SVN-Revision: 27940
13 years ago
Felix Fietkau
71d8c66250
kernel: reorganize 2.6.38 patches, clean up block2mtd patches
...
SVN-Revision: 26690
14 years ago
Imre Kaloz
c700e57cc7
preliminary 2.6.38 support
...
SVN-Revision: 25057
14 years ago
Alexandros C. Couloumbis
a2d17ea8cf
target/linux: add preliminary 2.6.37 kernel support
...
SVN-Revision: 23828
14 years ago
Alexandros C. Couloumbis
206e5f313e
linux/generic: add kernel 2.6.36 preliminary support
...
SVN-Revision: 22832
14 years ago
Felix Fietkau
da1bb88a2b
rename target/linux/generic-2.6 to generic
...
SVN-Revision: 21952
15 years ago
Felix Fietkau
6859128d3a
kernel: fix plt fixup related crashes when loading kernel modules on mips, (happened when there was not enough physically contiguous memory available)
...
SVN-Revision: 18858
15 years ago
Mirko Vogt
6e2a58ac3b
add generic patchset levelled up to 2.6.31-rc6
...
SVN-Revision: 17351
15 years ago
Hauke Mehrtens
e59c6a8af2
refresh patches
...
SVN-Revision: 17268
15 years ago
Florian Fainelli
fd666e7c7e
make 64-bits MIPS kernel compile again on arch/mips/kernel/module.c
...
SVN-Revision: 17147
16 years ago
Felix Fietkau
1685ce5f3d
mips: fix another bug in the module relocation change: the wrong base address for 24 bit jump -> long jump fixup table was used
...
SVN-Revision: 16904
16 years ago
Felix Fietkau
df119d5c19
kernel: fix a relative addressing bug in the mips module relocation code change
...
SVN-Revision: 16831
16 years ago
Felix Fietkau
3b3d64743b
mips: replace -mlong-calls with -mno-long-calls to make function calls faster in kernel modules to achieve this, try to load kernel modules to KSEG0 and if that doesn't work, use vmalloc and fix up relocations with a jump table based on code from a kernel patch by MikroTik
...
SVN-Revision: 16772
16 years ago