summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.kcsan
diff options
context:
space:
mode:
authorMiaohe Lin <linmiaohe@huawei.com>2022-03-24 00:07:18 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-24 03:00:35 +0100
commit0cbcc92917c5de80f15c24d033566539ad696892 (patch)
tree380d8f619508d02bf01eeeaf818fc3a9c208a531 /lib/Kconfig.kcsan
parentkcov: properly handle subsequent mmap calls (diff)
downloadlinux-0cbcc92917c5de80f15c24d033566539ad696892.tar.xz
linux-0cbcc92917c5de80f15c24d033566539ad696892.zip
kernel/resource: fix kfree() of bootmem memory again
Since commit ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory"), we could get a resource allocated during boot via alloc_resource(). And it's required to release the resource using free_resource(). Howerver, many people use kfree directly which will result in kernel BUG. In order to fix this without fixing every call site, just leak a couple of bytes in such corner case. Link: https://lkml.kernel.org/r/20220217083619.19305-1-linmiaohe@huawei.com Fixes: ebff7d8f270d ("mem hotunplug: fix kfree() of bootmem memory") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Suggested-by: David Hildenbrand <david@redhat.com> Cc: Dan Williams <dan.j.williams@intel.com> Cc: Alistair Popple <apopple@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/Kconfig.kcsan')
0 files changed, 0 insertions, 0 deletions