diff options
author | Roberto Sassu <roberto.sassu@huawei.com> | 2023-06-07 16:24:27 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-19 23:19:31 +0300 |
commit | 935d44acf621aa0688fef8312dec3e5940f38f4e (patch) | |
tree | eef706b0b5d6eb69ca354954d96c52119c34d232 /arch/um/os-Linux/drivers/tuntap.h | |
parent | 95a301eefa82057571207edd06ea36218985a75e (diff) | |
download | linux-935d44acf621aa0688fef8312dec3e5940f38f4e.tar.xz |
memfd: check for non-NULL file_seals in memfd_create() syscall
Ensure that file_seals is non-NULL before using it in the memfd_create()
syscall. One situation in which memfd_file_seals_ptr() could return a
NULL pointer when CONFIG_SHMEM=n, oopsing the kernel.
Link: https://lkml.kernel.org/r/20230607132427.2867435-1-roberto.sassu@huaweicloud.com
Fixes: 47b9012ecdc7 ("shmem: add sealing support to hugetlb-backed memfd")
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Cc: Marc-Andr Lureau <marcandre.lureau@redhat.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/um/os-Linux/drivers/tuntap.h')
0 files changed, 0 insertions, 0 deletions