Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759884AbdLRStY (ORCPT ); Mon, 18 Dec 2017 13:49:24 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35714 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759731AbdLRStV (ORCPT ); Mon, 18 Dec 2017 13:49:21 -0500 X-Google-Smtp-Source: ACJfBosvgg2Kbx6x/OtClUPXdOuKt9efv5IxYo7YyzKo7QGKooESLiWZXidAVRku0weIThP4HfWg2A== From: Andrei Vagin To: linux-kernel@vger.kernel.org Cc: Andrew Morton , linux-mm@kvack.org, Andrei Vagin , Michal Hocko Subject: [PATCH] mm: don't use the same value for MAP_FIXED_SAFE and MAP_SYNC Date: Mon, 18 Dec 2017 10:49:16 -0800 Message-Id: <20171218184916.24445-1-avagin@openvz.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171218091302.GL16951@dhcp22.suse.cz> References: <20171218091302.GL16951@dhcp22.suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 840 Lines: 24 Cc: Michal Hocko Fixes: ("fs, elf: drop MAP_FIXED usage from elf_map") Signed-off-by: Andrei Vagin --- include/uapi/asm-generic/mman-common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h index b37502cbbef7..2db3fa287274 100644 --- a/include/uapi/asm-generic/mman-common.h +++ b/include/uapi/asm-generic/mman-common.h @@ -26,7 +26,9 @@ #else # define MAP_UNINITIALIZED 0x0 /* Don't support this flag */ #endif -#define MAP_FIXED_SAFE 0x80000 /* MAP_FIXED which doesn't unmap underlying mapping */ + +/* 0x0100 - 0x80000 flags are defined in asm-generic/mman.h */ +#define MAP_FIXED_SAFE 0x100000 /* MAP_FIXED which doesn't unmap underlying mapping */ /* * Flags for mlock -- 2.13.6