Commit 0f56df14 authored by He Chuyue's avatar He Chuyue Committed by guzitao
Browse files

sw64: fix VM_DATA_DEFAULT_FLAGS

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I645T3



--------------------------------

SW64 is designed to be have non-executable data by default. However,
VM_EXEC was set in VM_DATA_DEFAULT_FLAGS, which makes stack executable
and increases security risk. In particular, it causes some tests to
fail.

Redefine VM_DATA_DEFAULT_FLAGS with VM_DATA_FLAGS_NON_EXEC to fix this
problem.

Signed-off-by: default avatarHe Chuyue <hechuyue@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent b20b8f9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment