linux-stable/arch/ia64
chenzefeng 87bc43e2a7 ia64:unwind: fix double free for mod->arch.init_unw_table
[ Upstream commit c5e5c48c16 ]

The function free_module in file kernel/module.c as follow:

void free_module(struct module *mod) {
	......
	module_arch_cleanup(mod);
	......
	module_arch_freeing_init(mod);
	......
}

Both module_arch_cleanup and module_arch_freeing_init function
would free the mod->arch.init_unw_table, which cause double free.

Here, set mod->arch.init_unw_table = NULL after remove the unwind
table to avoid double free.

Signed-off-by: chenzefeng <chenzefeng2@huawei.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 13:09:38 +02:00
..
configs [IA64] refresh arch/ia64/configs/* using "make savedefconfig" 2014-09-23 11:09:29 -07:00
dig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hp ia64: Fix allnoconfig section mismatch for ioc_init/ioc_iommu_info 2018-08-22 14:12:47 -07:00
include ia64: Fix kernel BUG at lib/ioremap.c:72! 2018-08-20 12:22:48 -07:00
kernel ia64:unwind: fix double free for mod->arch.init_unw_table 2019-10-05 13:09:38 +02:00
lib License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm ia64: fix build errors by exporting paddr_to_nid() 2019-06-22 08:15:19 +02:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci PCI/MSI: Don't set up INTx if MSI or MSI-X is enabled 2018-03-13 15:03:36 -05:00
scripts ia64: convert unwcheck.py to python3 2018-03-05 14:35:01 -08:00
sn treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
uv
install.sh
Kconfig Mike Rapoport kindly fixed up ia64 to work with NO_BOOTMEM 2018-08-20 19:37:09 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile kbuild: add machine size to CHECKFLAGS 2018-06-01 11:36:58 +09:00
module.lds License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00