Revision d46ef750ed58cbeeba2d9a55c99231c30a172764 authored by Evgeny Novikov on 01 June 2021, 16:38:01 UTC, committed by Jiri Kosina on 16 September 2021, 07:14:33 UTC
devm_add_action_or_reset() can suddenly invoke amd_mp2_pci_remove() at registration that will cause NULL pointer dereference since corresponding data is not initialized yet. The patch moves initialization of data before devm_add_action_or_reset(). Found by Linux Driver Verification project (linuxtesting.org). [jkosina@suse.cz: rebase] Signed-off-by: Evgeny Novikov <novikov@ispras.ru> Acked-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
1 parent 0c8fbaa
File | Mode | Size |
---|---|---|
apparmor | ||
bpf | ||
integrity | ||
keys | ||
landlock | ||
loadpin | ||
lockdown | ||
safesetid | ||
selinux | ||
smack | ||
tomoyo | ||
yama | ||
Kconfig | -rw-r--r-- | 10.8 KB |
Kconfig.hardening | -rw-r--r-- | 10.4 KB |
Makefile | -rw-r--r-- | 1.4 KB |
commoncap.c | -rw-r--r-- | 42.8 KB |
device_cgroup.c | -rw-r--r-- | 21.1 KB |
inode.c | -rw-r--r-- | 10.6 KB |
lsm_audit.c | -rw-r--r-- | 10.9 KB |
min_addr.c | -rw-r--r-- | 1.3 KB |
security.c | -rw-r--r-- | 65.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...