[PATCH] linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace

Helge Deller posted 1 patch 1 year, 4 months ago
Failed in applying to current master (apply log)
[PATCH] linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace
Posted by Helge Deller 1 year, 4 months ago
Add two missing mmap flags.

Signed-off-by: Helge Deller <deller@gmx.de>

diff --git a/linux-user/strace.c b/linux-user/strace.c
index 8fa5c1ec3d..3ea91084fb 100644
--- a/linux-user/strace.c
+++ b/linux-user/strace.c
@@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
 #ifdef TARGET_MAP_UNINITIALIZED
     FLAG_TARGET(MAP_UNINITIALIZED),
 #endif
+    FLAG_TARGET(MAP_HUGETLB),
+    FLAG_TARGET(MAP_STACK),
     FLAG_END,
 };
Re: [PATCH] linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace
Posted by Laurent Vivier 1 year, 3 months ago
Le 13/12/2022 à 17:02, Helge Deller a écrit :
> Add two missing mmap flags.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> 
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index 8fa5c1ec3d..3ea91084fb 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
>   #ifdef TARGET_MAP_UNINITIALIZED
>       FLAG_TARGET(MAP_UNINITIALIZED),
>   #endif
> +    FLAG_TARGET(MAP_HUGETLB),
> +    FLAG_TARGET(MAP_STACK),
>       FLAG_END,
>   };
> 
> 

Applied to my linux-user-for-8.0 branch.

Thanks,
Laurent


Re: [PATCH] linux-user: Add missing MAP_HUGETLB and MAP_STACK flags in strace
Posted by Laurent Vivier 1 year, 3 months ago
Le 13/12/2022 à 17:02, Helge Deller a écrit :
> Add two missing mmap flags.
> 
> Signed-off-by: Helge Deller <deller@gmx.de>
> 
> diff --git a/linux-user/strace.c b/linux-user/strace.c
> index 8fa5c1ec3d..3ea91084fb 100644
> --- a/linux-user/strace.c
> +++ b/linux-user/strace.c
> @@ -1089,6 +1089,8 @@ UNUSED static struct flags mmap_flags[] = {
>   #ifdef TARGET_MAP_UNINITIALIZED
>       FLAG_TARGET(MAP_UNINITIALIZED),
>   #endif
> +    FLAG_TARGET(MAP_HUGETLB),
> +    FLAG_TARGET(MAP_STACK),
>       FLAG_END,
>   };
> 
> 
Reviewed-by: Laurent Vivier <laurent@vivier.eu>