diff options
author | Konstantin Khlebnikov <khlebnikov@openvz.org> | 2012-12-14 12:03:10 +0100 |
---|---|---|
committer | Borislav Petkov <bpetkov@suse.de> | 2013-01-07 17:42:58 +0100 |
commit | 311bd84247ee0bedae6cdfbfc5e2c3450f9decd1 (patch) | |
tree | 23e7218b9e23c33ca9e8534ddbb05664f896fab3 /drivers/edac/Kconfig | |
parent | Linux 3.8-rc2 (diff) | |
download | linux-311bd84247ee0bedae6cdfbfc5e2c3450f9decd1.tar.xz linux-311bd84247ee0bedae6cdfbfc5e2c3450f9decd1.zip |
EDAC: Fix kernel panic on module unloading
This patch fixes use-after-free and double-free bugs in
edac_mc_sysfs_exit(). mci_pdev has single reference and put_device()
calls mc_attr_release() which calls kfree(). The following
device_del() works with already released memory. An another kfree() in
edac_mc_sysfs_exit() releses the same memory again. Great.
Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: stable@vger.kernel.org # 3.[67]
Cc: Denis Kirjanov <kirjanov@gmail.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Link: http://lkml.kernel.org/r/20121214110310.11019.21098.stgit@zurg
Signed-off-by: Borislav Petkov <bp@alien8.de>
Diffstat (limited to 'drivers/edac/Kconfig')
0 files changed, 0 insertions, 0 deletions