aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-3.18/305-mips_module_reloc.patch
Commit message (Collapse)AuthorAgeFilesLines
* kernel: split patches folder up into backport, pending and hack foldersJohn Crispin2017-08-051-356/+0
| | | | | | | | | | | | | | | | | | | | * properly format/comment all patches * merge debloat patches * merge Kconfig patches * merge swconfig patches * merge hotplug patches * drop 200-fix_localversion.patch - upstream * drop 222-arm_zimage_none.patch - unused * drop 252-mv_cesa_depends.patch - no longer required * drop 410-mtd-move-forward-declaration-of-struct-mtd_info.patch - unused * drop 661-fq_codel_keep_dropped_stats.patch - outdated * drop 702-phy_add_aneg_done_function.patch - upstream * drop 840-rtc7301.patch - unused * drop 841-rtc_pt7c4338.patch - upstream * drop 921-use_preinit_as_init.patch - unused * drop spio-gpio-old and gpio-mmc - unused Signed-off-by: John Crispin <john@phrozen.org>
* kernel: fix crashes on MIPS when loading kernel modules under memory pressureFelix Fietkau2017-02-151-1/+4
| | | | | | | | | | | When memory is tight, modules may need to be loaded into vmalloc() space. The code then has to generate jump trampolines which enable relocations between vmalloc space and physical address space. The code had a bug that was freeing these trampolines even when the module was successfully loaded. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mips: Free memory when load_module fails (#14453)John Crispin2015-07-071-5/+6
| | | | | | | | | | | | | | | | | | | | | | 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
* kernel: revert section sorting change from r41951Felix Fietkau2015-04-111-1/+1
| | | | | | | | | 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
* kernel: make the kernel 3.18 patches apply and boot on arm.Hauke Mehrtens2014-10-271-3/+3
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 43095
* kernel: start working on 3.18 supportRafał Miłecki2014-10-271-0/+352
This commit: 1) Copies 3.14 patches 2) Drops mainlined stuff 3) Modifies some patches to apply Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43093