[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/6] qemu/osdep: Remove fallback for MAP_FIXED_NOREPLACE
From: |
Richard Henderson |
Subject: |
[PULL 1/6] qemu/osdep: Remove fallback for MAP_FIXED_NOREPLACE |
Date: |
Wed, 9 Aug 2023 10:50:01 -0700 |
In order for our emulation of MAP_FIXED_NOREPLACE to succeed within
linux-user target_mmap, we require a non-zero value. This does not
require host kernel support, merely the bit being defined.
MAP_FIXED_NOREPLACE was added with glibc 2.28. From repology.org:
Fedora 36: 2.35
CentOS 8 (RHEL-8): 2.28
Debian 11: 2.31
OpenSUSE Leap 15.4: 2.31
Ubuntu LTS 20.04: 2.31
Reported-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230808164418.69989-1-richard.henderson@linaro.org>
---
include/qemu/osdep.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index cc61b00ba9..21ef8f1699 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -289,9 +289,6 @@ void QEMU_ERROR("code path is reachable")
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif
-#ifndef MAP_FIXED_NOREPLACE
-#define MAP_FIXED_NOREPLACE 0
-#endif
#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0
#endif
--
2.34.1
- [PULL 0/6] linux-user late fixes, Richard Henderson, 2023/08/09
- [PULL 3/6] linux-user: Use ARRAY_SIZE with bitmask_transtbl, Richard Henderson, 2023/08/09
- [PULL 1/6] qemu/osdep: Remove fallback for MAP_FIXED_NOREPLACE,
Richard Henderson <=
- [PULL 2/6] linux-user: Split out do_mmap, Richard Henderson, 2023/08/09
- [PULL 4/6] tests/tcg: Disable filename test for info proc mappings, Richard Henderson, 2023/08/09
- [PULL 5/6] util/interval-tree: Check root for null in interval_tree_iter_first, Richard Henderson, 2023/08/09
- [PULL 6/6] linux-user: Fix openat() emulation to correctly detect accesses to /proc, Richard Henderson, 2023/08/09
- Re: [PULL 0/6] linux-user late fixes, Richard Henderson, 2023/08/09