openwrtv4/target/linux/generic/patches-4.0
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
2015-07-07 13:48:27 +00:00
..
000-keep_initrafs_the_default.patch
020-ssb_update.patch kernel: backport ssb fix for WRT350N v1 (BCM4705) reboots 2015-06-01 06:11:26 +00:00
021-bcma-from-4.1.patch kernel: backport rest of bcma patches 2015-03-24 10:39:10 +00:00
021-ssb_sprom.patch kernel: backport struct ssb_sprom changes submitted by MIPS tree 2015-05-13 07:52:43 +00:00
022-bcma-from-4.2.patch kernel: backport config-related bcma patches from 4.2 2015-06-08 12:49:54 +00:00
050-backport_netfilter_rtcache.patch kernel: fix ipsec related regression in the netfilter rtcache patch 2015-03-20 22:13:34 +00:00
060-mips_decompressor_memmove.patch
070-bgmac-register-fixed-PHY-for-ARM-BCM470X-BCM5301X-ch.patch generic/4.0: upgrade to 4.0-rc5 2015-03-26 14:06:42 +00:00
071-bgmac-allow-enabling-on-ARCH_BCM_5301X.patch generic/4.0: upgrade to 4.0-rc5 2015-03-26 14:06:42 +00:00
072-01-bgmac-fix-descriptor-frame-start-end-definitions.patch kernel: backport few bgmac patches to 4.0 2015-04-23 12:30:51 +00:00
072-02-bgmac-implement-GRO-and-use-build_skb.patch kernel: backport few bgmac patches to 4.0 2015-04-23 12:30:51 +00:00
072-03-bgmac-implement-scatter-gather-support.patch kernel: backport few bgmac patches to 4.0 2015-04-23 12:30:51 +00:00
072-04-bgmac-simplify-tx-ring-index-handling.patch kernel: backport few bgmac patches to 4.0 2015-04-23 12:30:51 +00:00
072-05-bgmac-leave-interrupts-disabled-as-long-as-there-is-.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-06-bgmac-set-received-skb-headroom-to-NET_SKB_PAD.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-07-bgmac-simplify-rx-DMA-error-handling.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-08-bgmac-add-check-for-oversized-packets.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-09-bgmac-increase-rx-ring-size-from-511-to-512.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-10-bgmac-simplify-dma-init-cleanup.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-11-bgmac-fix-DMA-rx-corruption.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-12-bgmac-drop-ring-num_slots.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-13-bgmac-fix-MAC-soft-reset-bit-for-corerev-4.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-14-bgmac-reset-all-4-GMAC-cores-on-init.patch kernel: backport rest of bgmac patches to 4.0 2015-04-23 19:11:11 +00:00
072-15-bgmac-fix-requests-for-extra-polling-calls-from-NAPI.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
073-pppoe-Use-workqueue-to-die-properly-when-a-PADT-is-r.patch kernel: fix pppoe disconnect issues 2015-05-09 21:14:41 +00:00
091-mtd-spi-nor-add-support-Spansion_S25FL164K generic: mtd backport for Spansion S25FL164K 2015-07-07 13:47:08 +00:00
095-api-fix-compatibility-of-linux-in.h-with-netinet-in..patch kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
100-pppoe-drop-pppoe-device-in-pppoe_unbind_sock_work.patch kernel: fix pppoe disconnect issues 2015-05-09 21:14:41 +00:00
102-ehci_hcd_ignore_oc.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
110-jffs2-use-.rename2-and-add-RENAME_WHITEOUT-support.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
111-jffs2-add-RENAME_EXCHANGE-support.patch kernel: implement RENAME_EXCHANGE support for jffs2 - overlayfs requires it 2015-04-25 10:47:18 +00:00
120-bridge_allow_receiption_on_disabled_port.patch
132-mips_inline_dma_ops.patch
140-overlayfs_readdir_locking_fix.patch kernel: add linux 4.0 overlayfs locking fix by Miklos Szeredi 2015-06-17 12:55:20 +00:00
180-usb-xhci-make-USB_XHCI_PLATFORM-selectable.patch kernel: update 4.0 to 4.0.7 2015-06-30 23:26:13 +00:00
200-fix_localversion.patch
201-extra_optimization.patch
202-reduce_module_size.patch
203-kallsyms_uncompressed.patch
204-module_strip.patch generic/4.0: bump to final version 2015-04-22 09:35:36 +00:00
205-backtrace_module_info.patch kernel: fix regression in backtrace module info change (#19631) 2015-05-10 13:16:40 +00:00
210-darwin_scripts_include.patch
212-byteshift_portability.patch
214-spidev_h_portability.patch kernel: fix linux/spi/spidev.h portability issues with musl 2015-03-29 04:28:24 +00:00
220-gc_sections.patch kernel: revert section sorting change from r41951 2015-04-11 21:21:03 +00:00
221-module_exports.patch
230-openwrt_lzma_options.patch
250-netfilter_depends.patch
251-sound_kconfig.patch
252-mv_cesa_depends.patch
253-ssb_b43_default_on.patch
254-textsearch_kconfig_hacks.patch
255-lib80211_kconfig_hacks.patch
256-crypto_add_kconfig_prompts.patch
257-wireless_ext_kconfig_hack.patch
258-netfilter_netlink_kconfig_hack.patch
259-regmap_dynamic.patch generic/4.0: upgrade to 4.0-rc6 2015-03-31 19:22:28 +00:00
260-crypto_test_dependencies.patch
262-compressor_kconfig_hack.patch
270-uapi-kernel.h-glibc-specific-inclusion-of-sysinfo.h.patch kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
271-uapi-libc-compat.h-do-not-rely-on-__GLIBC__.patch kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
272-uapi-if_ether.h-prevent-redefinition-of-struct-ethhd.patch kernel: improve uapi headers coexistence with musl 2015-07-03 11:48:45 +00:00
300-mips_expose_boot_raw.patch
301-mips_image_cmdline_hack.patch
302-mips_no_branch_likely.patch kernel: revert section sorting change from r41951 2015-04-11 21:21:03 +00:00
304-mips_disable_fpu.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
305-mips_module_reloc.patch mips: Free memory when load_module fails (#14453) 2015-07-07 13:48:27 +00:00
306-mips_mem_functions_performance.patch
307-mips_highmem_offset.patch kernel: adjust mips highmem offset to avoid the need for -mlong-calls on systems with >256M RAM 2015-06-05 08:07:35 +00:00
309-mips_fuse_workaround.patch
310-arm_module_unresolved_weak_sym.patch
320-ppc4xx_optimization.patch
321-powerpc_crtsavres_prereq.patch
330-MIPS-kexec-Accept-command-line-parameters-from-users.patch
400-mtd-add-rootfs-split-support.patch
401-mtd-add-support-for-different-partition-parser-types.patch
402-mtd-use-typed-mtd-parsers-for-rootfs-and-firmware-split.patch
403-mtd-hook-mtdsplit-to-Kbuild.patch
404-mtd-add-more-helper-functions.patch
405-mtd-old-firmware-uimage-splitter.patch
406-mtd-old-rootfs-squashfs-splitter.patch
410-mtd-move-forward-declaration-of-struct-mtd_info.patch
411-mtd-partial_eraseblock_write.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
412-mtd-partial_eraseblock_unlock.patch
420-mtd-redboot_space.patch
430-mtd-add-myloader-partition-parser.patch kernel: remove ATHEROS_AR{231X,71XX} config symbols from the patches 2015-04-08 16:21:04 +00:00
431-mtd-bcm47xxpart-support-for-Xiaomi-specific-board_da.patch
432-mtd-bcm47xxpart-detect-T_Meter-partition.patch
440-block2mtd_init.patch
441-block2mtd_probe.patch
450-mtd-nand-allow-to-use-platform-specific-chip-fixup.patch
451-mtd-nand-fix-return-code-of-nand_correct_data-function.patch
460-mtd-cfi_cmdset_0002-no-erase_suspend.patch
461-mtd-cfi_cmdset_0002-add-buffer-write-cmd-timeout.patch
472-mtd-m25p80-add-support-for-Winbond-W25X05-flash.patch
473-mtd-spi-nor-add-support-for-the-Macronix-MX25L512E-S.patch kernel: add support for the MX25L512E and SI25CD512 SPI flash chips 2015-04-07 20:03:15 +00:00
474-mtd-spi-nor-add-support-for-the-ISSI-SI25CD512-SPI-f.patch kernel: add support for the MX25L512E and SI25CD512 SPI flash chips 2015-04-07 20:03:15 +00:00
480-mtd-set-rootfs-to-be-root-dev.patch
490-ubi-auto-attach-mtd-device-named-ubi-or-data-on-boot.patch generic/4.0: the ubi patches has been fixed in the 3.19 patchset already 2015-02-24 18:27:49 +00:00
491-ubi-auto-create-ubiblock-device-for-rootfs.patch kernel: update 4.0 to 4.0.5 2015-06-19 11:12:43 +00:00
492-try-auto-mounting-ubi0-rootfs-in-init-do_mounts.c.patch
493-ubi-set-ROOT_DEV-to-ubiblock-rootfs-if-unset.patch kernel: update 4.0 to 4.0.5 2015-06-19 11:12:43 +00:00
494-mtd-ubi-add-EOF-marker-support.patch generic/4.0: fix ubi EOF marker patch 2015-03-19 10:13:21 +00:00
500-yaffs-Kbuild-integration.patch
501-yaffs-add-missing-flush-arguments.patch kernel: update yaffs code to the latest version 2015-03-31 15:31:57 +00:00
502-yaffs-fix-compat-tags-handling.patch kernel: update yaffs code to the latest version 2015-03-31 15:31:57 +00:00
503-yaffs-add-tags-9bytes-mount-option.patch kernel: update yaffs code to the latest version 2015-03-31 15:31:57 +00:00
504-yaffs-3.16-new-fops.patch kernel: update yaffs code to the latest version 2015-03-31 15:31:57 +00:00
520-squashfs_update_xz_comp_opts.patch
530-jffs2_make_lzma_available.patch
531-debloat_lzma.patch
532-jffs2_eofdetect.patch
540-crypto-xz-decompression-support.patch
541-ubifs-xz-decompression-support.patch
551-ubifs-fix-default-compression-selection.patch
600-netfilter_conntrack_flush.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
610-netfilter_match_bypass_default_checks.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
611-netfilter_match_bypass_default_table.patch
612-netfilter_match_reduce_memory_access.patch
613-netfilter_optional_tcp_window_check.patch
615-netfilter_add_xt_id_match.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
616-net_optimize_xfrm_calls.patch
620-sched_esfq.patch
630-packet_socket_type.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
640-bridge_no_eap_forward.patch
641-bridge_always_accept_eap.patch
642-bridge_port_isolate.patch
643-bridge_remove_ipv6_dependency.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
644-bridge_optimize_netfilter_hooks.patch
645-bridge_multicast_to_unicast.patch kernel: update 4.0 to 4.0.7 2015-06-30 23:26:13 +00:00
650-pppoe_header_pad.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
651-wireless_mesh_header.patch
652-atm_header_changes.patch
653-disable_netlink_trim.patch kernel: update 4.0 to 4.0.7 2015-06-30 23:26:13 +00:00
655-increase_skb_pad.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
656-skb_reduce_truesize-helper.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
657-qdisc_reduce_truesize.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
660-fq_codel_defaults.patch
661-fq_codel_keep_dropped_stats.patch
662-use_fq_codel_by_default.patch
663-remove_pfifo_fast.patch
664-codel_fix_3_12.patch kernel: update 4.0 to 4.0.7 2015-06-30 23:26:13 +00:00
666-Add-support-for-MAP-E-FMRs-mesh-mode.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
667-ipv6-Fixed-source-specific-default-route-handling.patch generic/4.0: fix error during kernel patch application 2015-05-20 19:23:33 +00:00
670-ipv6-allow-rejecting-with-source-address-failed-policy.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
671-net-provide-defines-for-_POLICY_FAILED-until-all-cod.patch
680-NET-skip-GRO-for-foreign-MAC-addresses.patch generic/4.0: upgrade to 4.0-rc7 2015-04-07 21:34:38 +00:00
681-NET-add-of_get_mac_address_mtd.patch generic: Allow configuring an increment with mtd-mac-address 2015-07-07 13:44:27 +00:00
700-swconfig.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
701-phy_extension.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
702-phy_add_aneg_done_function.patch
703-phy-add-detach-callback-to-struct-phy_driver.patch
704-phy-no-genphy-soft-reset.patch
710-phy-add-mdio_register_board_info.patch
720-phy_adm6996.patch
721-phy_packets.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
722-phy_mvswitch.patch
723-phy_ip175c.patch
724-phy_ar8216.patch
725-phy_rtl8306.patch
726-phy_rtl8366.patch
727-phy-rtl8367.patch
728-phy-rtl8367b.patch
729-phy-tantos.patch
730-phy_b53.patch
731-phy_mvswitch_3.10_compilation.patch
732-phy-ar8216-led-support.patch
733-phy_mvsw61xx.patch
750-hostap_txpower.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
773-bgmac-add-srab-switch.patch generic/4.0: update to 4.0.1 2015-05-03 18:04:46 +00:00
780-igb-Fix-Null-pointer-dereference-in-igb_reset_q_vect.patch
785-hso-support-0af0-9300.patch kernel: update 4.0 to 4.0.5 2015-06-19 11:12:43 +00:00
810-pci_disable_common_quirks.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
811-pci_disable_usb_common_quirks.patch
820-usb_add_usb_find_device_by_name.patch generic/4.0: update to 4.0.4 2015-05-26 09:31:16 +00:00
830-ledtrig_morse.patch
831-ledtrig_netdev.patch
832-ledtrig_usbdev.patch
834-ledtrig-libata.patch kernel: update 4.0 to 4.0.5 2015-06-19 11:12:43 +00:00
840-rtc7301.patch
841-rtc_pt7c4338.patch
861-04_spi_gpio_implement_spi_delay.patch
862-gpio_spi_driver.patch generic/4.0: refresh patches 2015-02-24 18:53:14 +00:00
863-gpiommc.patch generic/4.0: upgrade to 4.0-rc7 2015-04-07 21:34:38 +00:00
864-gpiommc_configfs_locking.patch
870-hifn795x_byteswap.patch
880-gateworks_system_controller.patch
890-8250_optional_sysrq.patch
900-slab_maxsize.patch
901-debloat_sock_diag.patch
902-debloat_proc.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
903-debloat_direct_io.patch generic/4.0: upgrade to 4.0-rc7 2015-04-07 21:34:38 +00:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
921-use_preinit_as_init.patch
922-always-create-console-node-in-initramfs.patch
930-crashlog.patch kernel: bump to 3.14.35, 3.18.9, 3.19.1 and 4.0-rc4 2015-03-18 18:21:08 +00:00
940-ocf_kbuild_integration.patch
941-ocf_20120127.patch kernel: refresh generic patches 2015-04-19 11:38:46 +00:00
960-decompress_unlzo_fix.patch
970-remove-unsane-filenames-from-deps_initramfs-list.patch
980-arm_openwrt_machtypes.patch kernel: generic: add missing arm machtypes 2015-07-05 21:32:49 +00:00
990-gpio_wdt.patch
995-mangle_bootargs.patch generic: make sure we only try to mangle bootargs we do have 2015-04-12 14:46:19 +00:00
997-device_tree_cmdline.patch
998-enable_wilink_platform_without_drivers.patch