| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | #ifndef _ASM_POWERPC_PAGE_64_H |
|---|
| 2 | 3 | #define _ASM_POWERPC_PAGE_64_H |
|---|
| 3 | 4 | |
|---|
| 4 | 5 | /* |
|---|
| 5 | 6 | * Copyright (C) 2001 PPC64 Team, IBM Corp |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or |
|---|
| 8 | | - * modify it under the terms of the GNU General Public License |
|---|
| 9 | | - * as published by the Free Software Foundation; either version |
|---|
| 10 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <asm/asm-const.h> |
|---|
| .. | .. |
|---|
| 98 | 94 | * stack by default, so in the absence of a PT_GNU_STACK program header |
|---|
| 99 | 95 | * we turn execute permission off. |
|---|
| 100 | 96 | */ |
|---|
| 101 | | -#define VM_STACK_DEFAULT_FLAGS32 (VM_READ | VM_WRITE | VM_EXEC | \ |
|---|
| 102 | | - VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
|---|
| 103 | | - |
|---|
| 104 | | -#define VM_STACK_DEFAULT_FLAGS64 (VM_READ | VM_WRITE | \ |
|---|
| 105 | | - VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC) |
|---|
| 97 | +#define VM_STACK_DEFAULT_FLAGS32 VM_DATA_FLAGS_EXEC |
|---|
| 98 | +#define VM_STACK_DEFAULT_FLAGS64 VM_DATA_FLAGS_NON_EXEC |
|---|
| 106 | 99 | |
|---|
| 107 | 100 | #define VM_STACK_DEFAULT_FLAGS \ |
|---|
| 108 | 101 | (is_32bit_task() ? \ |
|---|