]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/util.c: add warning if __vm_enough_memory fails
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 26 Jul 2022 14:54:28 +0000 (22:54 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:02:53 +0000 (22:02 -0700)
commit5741b4ae0c62f005d519286dcd12b641c8766fac
tree0d9da699e555e54a153a1ec6dfbdda51ddb9bf7a
parenta1c8a06dd712ca6c4a7f4581ab376a4bf7fd0571
mm/util.c: add warning if __vm_enough_memory fails

If a process has not enough memory to allocate a new virtual mapping, we
may meet verious kinds of error, eg, fork cannot allocate memory, SIGBUS
error in shmem, but it is difficult to confirm them, let's add some debug
information to easily to check this scenario if __vm_enough_memory fails.

Link: https://lkml.kernel.org/r/20220726145428.8030-1-wangkefeng.wang@huawei.com
Reported-by: Yongqiang Liu <liuyongqiang13@huawei.com>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/util.c